meta data for this page
  •  

Xenomai on a NSLU2

This documentation shows howto install Xenomai on an deprecated device and needs rework.

Compile gdb from sources for the development PC (amd64) with target arm-linux-gnueabi

First get the sources of gdb in a local directory.

apt-get source gdb
cd gdb-7.9
cat arm-linux-gnueabi > debian/target
debuild -rfakeroot -uc -us
THIS FAILS!!

As of a broken build of a debian package by debuild, gdb must be build on the classic way.

./configure --target=arm-linux-gnueabi
make

The resulting executable resides in gdb/gdb. This is the path which must be referenced by the eclipse debugger settings. Check if gdb is compiled for target arm-linux-gnueabi:

gdb/gdb --config
Could not load the Python gdb module from `/usr/local/share/gdb/python'.
Limited Python support is available from the _gdb module.
Suggest passing --data-directory=/path/to/gdb/data-directory.

This GDB was configured as follows:
   configure --host=x86_64-unknown-linux-gnu --target=arm-linux-gnueabi
             --with-auto-load-dir=$debugdir:$datadir/auto-load
             --with-auto-load-safe-path=$debugdir:$datadir/auto-load
             --with-expat
             --with-gdb-datadir=/usr/local/share/gdb (relocatable)
             --with-jit-reader-dir=/usr/local/lib/gdb (relocatable)
             --without-libunwind-ia64
             --with-lzma
             --with-python=/usr
             --without-guile
             --with-separate-debug-dir=/usr/local/lib/debug (relocatable)
             --with-zlib
             --with-babeltrace

("Relocatable" means the directory can be moved with the GDB installation
tree, and GDB will still find it.)