billium wrote:
Mike Frysinger wrote:
On Tuesday 05 August 2008, billium wrote:
Has anybody got a usb jtag working in Gentoo, who could give me some
handy tips.
The device I have is an Amotec JTAGkey-Tiny which is based on a FTDI
FT2232 USB device.
I have tried to follow the Amotec documentation, but is oldish and not
completely logical.
It all works on WinXP (using VirtualBox) but as it uses gdb I would like
to use Gentoo only.
i havent used that particular device, but the "urjtag" package (with
"libftdi") works just fine with another FT2232 USB device (the
gnICE). no need for kernel drivers.
-mike
Thanks for the replies.
Jason & James you are writing about the normal ftdi usb-serial drivers,
which I already use for other things.
Mike is correct.
Just in case anybody else searches here is what I did to get it working.
get driver, libftd2xx0.4.13.tar.gz and extract.
get openocd from respository, svn checkout
svn://svn.berlios.de/openocd/trunk/openocd and extract
copy ftd2xx.h & WinTypes.h from driver tar to trunk/src/jtag
copy libftd2xx.so.0.13 to /usr/local/lib & sym link to libftd2xx.so &
libftd2xx.so.0 also create sym links in /usr/lib
in trunk directory
./bootstrap
./configure --enable-ft2232-ftd2xx
make then su to make install
get insight and untar (cannot emerge for arm debugging)
create directory to configure into then
../insight-6.8/configure --target=arm-elf --prefix=/opt/insight-arm
make then su to make install
to run:
openocd -f/pathtoconfigfile
it returns the jtag device found
now run /opt/insight-arm/bin/arm-elf-insight and connect to target on
localhost:3333
I am now able to debug ADuC chips, have not tried loading flash with
this yet.
Billy
Thanks for the info, Billy. Maybe this little bit of prose could be
added to the gentoo documentation? I think it would be great to list
JTAG devices/boards/processors that folks have gotten to work with
embedded Gentoo....
just a thought,
James