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