Elektor Internet Radio

Installing OpenOCD on Linux

The OpenOCD source code can be retrieved from the SVN repository at
link developer.berlios.de/svn with the following command:

$ svn co -r 520 svn://svn.berlios.de/openocd/trunk openocd-r520

The included README file contains a detailed description. A few essential tools are required to create the binaries. The following commands can be used on Debian to make sure, that all tools are available:

$ sudo apt-get install build-essential
$ sudo apt-get install automake
$ sudo apt-get install autoconf
$ sudo apt-get install texinfo

In the next step we can build OpenOCD, using

$ cd openocd-r520/
$ ./bootstrap
$ ./configure  --enable-ft2232_ftd2xx
$ make
$ sudo make install

When using a JTAG adapter based on the FT2232 chip, you further need the FTDI support library. There are two variants, an open source version and the one supplied by FTDI. We chose the latter:

$ wget http://www.ftdichip.com/Drivers/D2XX/Linux/libftd2xx0.4.13.tar.gz
$ tar -zxf libftd2xx0.4.13.tar.gz
$ sudo cp *.h /usr/local/include/
$ sudo cp libftd2xx.so.0.4.13 /usr/local/lib/
$ cd /usr/local/lib/
$ sudo ln -s libftd2xx.so.0.4.13 libftd2xx.so
$ sudo ln -s libftd2xx.so.0.4.13 libftd2xx.so.0
$ cd /usr/lib/
$ sudo ln -s /usr/local/lib/libftd2xx.so.0.4.13 libftd2xx.so.0
$ sudo mount -a

When using a different JTAG adapter, please refer to the information provided by its manufacturer.

Copyright 2008 egnite GmbH