Gentoo Archives: gentoo-embedded

From: Mike Frysinger <vapier@g.o>
To: gentoo-embedded@l.g.o
Cc: wireless <wireless@×××××××××××.com>
Subject: Re: [gentoo-embedded] FTDI jtag
Date: Sun, 26 Oct 2008 07:51:58
Message-Id: 200810260351.54816.vapier@gentoo.org
In Reply to: Re: [gentoo-embedded] FTDI jtag by wireless
1 On Friday 12 September 2008, wireless wrote:
2 > billium wrote:
3 > > Mike Frysinger wrote:
4 > >> On Tuesday 05 August 2008, billium wrote:
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
15 > >>> like to use Gentoo only.
16 > >>
17 > >> i havent used that particular device, but the "urjtag" package (with
18 > >> "libftdi") works just fine with another FT2232 USB device (the
19 > >> gnICE). 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 > Thanks for the info, Billy. Maybe this little bit of prose could be
56 > added to the gentoo documentation? I think it would be great to list
57 > JTAG devices/boards/processors that folks have gotten to work with
58 > embedded Gentoo....
59
60 meh ... it'd be duplicating the lists available at the respective upstream
61 projects (openocd and urjtag) ...
62 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature