Revision as of 11:20, 10 October 2015 by Craig Peacock (Talk | contribs)

Cross Compiling wpan-tools (IEEE 802.15.4) User Space Tools

The following contains instructions for cross-compiling the ARM wpan-tools User Space Tools on Ubuntu 15.04. It requires the gcc cross-compiler, bison, flex, autoconf and libtool to be installed. If these prerequisites have not been installed, please install them:

sudo apt-get install gcc-arm-linux-gnueabi
sudo apt-get install bison
sudo apt-get install flex

Netlink Protocol Library Suite (libnl)

Download, cross compile and install the Netlink Protocol libraries.

wget http://www.carisma.slowglass.com/~tgr/libnl/files/libnl-3.2.25.tar.gz
tar -xzf libnl-3.2.25.tar.gz
cd libnl-3.2.25
./configure --prefix=/home/cpeacock/export/rootfs --host=arm-linux-gnueabi
make 
make install

Linux WPAN User Space Tools

With the dependencies above cross compiled for ARM and installed, download the wpan-tools and cross compile.

http://wpan.cakelab.org/releases/wpan-tools-0.5.tar.gz
tar -xzf wpan-tools-0.5.tar.gz
cd wpan-tools-0.5
./configure --prefix=/home/cpeacock/export/rootfs --host=arm-linux-gnueabi PKG_CONFIG_PATH=/home/cpeacock/export/rootfs/lib/pkgconfig
make 
make install