1 |
billium wrote: |
2 |
> Mike Frysinger wrote: |
3 |
>> On Tuesday 05 August 2008, billium wrote: |
4 |
>> |
5 |
>>> Has anybody got a usb jtag working in Gentoo, who could give me some |
6 |
>>> handy tips. |
7 |
>>> |
8 |
>>> The device I have is an Amotec JTAGkey-Tiny which is based on a FTDI |
9 |
>>> FT2232 USB device. |
10 |
>>> |
11 |
>>> I have tried to follow the Amotec documentation, but is oldish and not |
12 |
>>> completely logical. |
13 |
>>> |
14 |
>>> It all works on WinXP (using VirtualBox) but as it uses gdb I would like |
15 |
>>> to use Gentoo only. |
16 |
>>> |
17 |
>> |
18 |
>> i havent used that particular device, but the "urjtag" package (with |
19 |
>> "libftdi") works just fine with another FT2232 USB device (the |
20 |
>> gnICE). no need for kernel drivers. |
21 |
>> -mike |
22 |
>> |
23 |
> Thanks for the replies. |
24 |
> |
25 |
> Jason & James you are writing about the normal ftdi usb-serial drivers, |
26 |
> which I already use for other things. |
27 |
> Mike is correct. |
28 |
> |
29 |
> Just in case anybody else searches here is what I did to get it working. |
30 |
> |
31 |
> get driver, libftd2xx0.4.13.tar.gz and extract. |
32 |
> get openocd from respository, svn checkout |
33 |
> svn://svn.berlios.de/openocd/trunk/openocd and extract |
34 |
> copy ftd2xx.h & WinTypes.h from driver tar to trunk/src/jtag |
35 |
> copy libftd2xx.so.0.13 to /usr/local/lib & sym link to libftd2xx.so & |
36 |
> libftd2xx.so.0 also create sym links in /usr/lib |
37 |
> in trunk directory |
38 |
> ./bootstrap |
39 |
> ./configure --enable-ft2232-ftd2xx |
40 |
> make then su to make install |
41 |
> get insight and untar (cannot emerge for arm debugging) |
42 |
> create directory to configure into then |
43 |
> ../insight-6.8/configure --target=arm-elf --prefix=/opt/insight-arm |
44 |
> make then su to make install |
45 |
> |
46 |
> to run: |
47 |
> openocd -f/pathtoconfigfile |
48 |
> it returns the jtag device found |
49 |
> |
50 |
> now run /opt/insight-arm/bin/arm-elf-insight and connect to target on |
51 |
> localhost:3333 |
52 |
> |
53 |
> I am now able to debug ADuC chips, have not tried loading flash with |
54 |
> this yet. |
55 |
> |
56 |
> Billy |
57 |
|
58 |
|
59 |
Thanks for the info, Billy. Maybe this little bit of prose could be |
60 |
added to the gentoo documentation? I think it would be great to list |
61 |
JTAG devices/boards/processors that folks have gotten to work with |
62 |
embedded Gentoo.... |
63 |
|
64 |
|
65 |
just a thought, |
66 |
|
67 |
James |