Difference between revisions of "Hammer How to use Jtag"

From eLinux.org
Jump to: navigation, search
Line 1: Line 1:
Place holder
 
  
 +
1) rmmod fdti_sio since the normal ubuntu driver grabs the hardware on plugin
  
7) the path to a successful apex reflash was a long and hard one.
+
2) ubuntu also needs usbfs turned on: mount -t usbfs usbfs /proc/bus/usb (as root)
  
8) started by needing to compile openocd from source.
+
3) extract the openocd tarball using the command: tar zxvf openocd.tar.gz
  
9) also needed to rmmod fdti_sio since the normal ubuntu driver grabs the hardware on plugin.
+
4) you must extract fd2xx.h and WinTypes.h (from libftd2xx0.4.13.tar.gz) to the openocd/src/jtag/ directory
  
9a) ubuntu also needs usbfs turned on: mount -t usbfs usbfs /proc/bus/usb (as root)
+
5) to recompile openocd, one must first run the command: ./bootstrap
  
10) to recompile openocd, one must first run ./bootstrap
+
6) then configure the build using the command: ./configure  --enable-ft2232-ftd2xx
  
10a) then ./configure  --enable-ft2232-ftd2xx
+
7) start the build using the command: make
  
10b) then make
+
8) put the resulting openocd executable in a dir with hammer.cfg, hammer.ocd, apex.bin (the orig from the cd)
  
11) but before that you must extract fd2xx.h and WinTypes.h (from libftd2xx0.4.10.tar.gz) to the /openocd/src/jtag/ directory..
+
9) ./openocd -f hammer.cfg (as root if you are on ubuntu 6.06 LTS)
  
12) put the resulting openocd executable in a dir with hammer.cfg, hammer.ocd, apex.bin (the orig from the cd)
+
10) This will load apex into ram & run it. then you can flash the original apex.bin back.
  
13) ./openocd -f hammer.cfg (as root if you are on ubuntu 6.06 LTS)
 
  
14) This will load apex into ram & run it. then you can flash the original apex.bin back.
+
note: it seems that openocd likes to be run as root.  
 
+
15) it seems that openocd likes to be run as root. This may be ubuntu specific, or I may not know my a$$ from a hole in the ground.
+
 
+
16) rebuilding apex from source you need to make menuconfig (generates lots of wierd errors if there is no .config)
+
 
+
17) then select the Samsung S3C2410 platform
+
 
+
18) then the Tin Can Tools Hammer implementation
+
 
+
19) Change other stuff as req'd (ie Environment > Regions > 256k+1024k ==> kernel source 1280k+1024k ==> ramdisk image
+
 
+
20) save changes & make
+
  
  
 
[[Category:TCT-Hammer]]
 
[[Category:TCT-Hammer]]
 
[[Category:TinCanTools]]
 
[[Category:TinCanTools]]

Revision as of 23:42, 8 November 2007

1) rmmod fdti_sio since the normal ubuntu driver grabs the hardware on plugin

2) ubuntu also needs usbfs turned on: mount -t usbfs usbfs /proc/bus/usb (as root)

3) extract the openocd tarball using the command: tar zxvf openocd.tar.gz

4) you must extract fd2xx.h and WinTypes.h (from libftd2xx0.4.13.tar.gz) to the openocd/src/jtag/ directory

5) to recompile openocd, one must first run the command: ./bootstrap

6) then configure the build using the command: ./configure --enable-ft2232-ftd2xx

7) start the build using the command: make

8) put the resulting openocd executable in a dir with hammer.cfg, hammer.ocd, apex.bin (the orig from the cd)

9) ./openocd -f hammer.cfg (as root if you are on ubuntu 6.06 LTS)

10) This will load apex into ram & run it. then you can flash the original apex.bin back.


note: it seems that openocd likes to be run as root.