(Initial write-up)
(Upgraded to libnl-3.2.24)
 
(8 intermediate revisions by one user not shown)
Line 1: Line 1:
  
 
== Cross Compiling Linux-Zigbee (IEEE 802.15.4) User Space Tools ==
 
== Cross Compiling Linux-Zigbee (IEEE 802.15.4) User Space Tools ==
 +
 +
The following contains instructions for cross-compiling the ARM Linux-Zigbee User Space Tools on Ubuntu 13.10. It requires the gcc cross-compiler, bison, flex, autoconf and libtool to be installed. If these prerequisites have not been installed, please install them:
 +
 +
<PRE>
 +
sudo apt-get install gcc-arm-linux-gnueabi
 +
sudo apt-get install bison
 +
sudo apt-get install flex
 +
sudo apt-get install autoconf
 +
sudo apt-get install libtool
 +
sudo apt-get install help2man
 +
</PRE>
  
 
== Netlink Protocol Library Suite (libnl) ==
 
== Netlink Protocol Library Suite (libnl) ==
Line 7: Line 18:
  
 
<PRE>
 
<PRE>
wget http://www.infradead.org/~tgr/libnl/files/libnl-3.2.21.tar.gz
+
wget http://www.carisma.slowglass.com/~tgr/libnl/files/libnl-3.2.24.tar.gz
tar -xzf libnl-3.2.21.tar.gz
+
tar -xzf libnl-3.2.24.tar.gz
cd libnl-3.2.21
+
cd libnl-3.2.24
./configure --prefix=/home/cpeacock/beagle --host=arm-linux-gnueabi
+
./configure --prefix=/home/cpeacock/export/rootfs --host=arm-linux-gnueabi
 
make  
 
make  
 
make install
 
make install
Line 20: Line 31:
  
 
<PRE>
 
<PRE>
wget http://sourceforge.net/projects/linux-zigbee/files/linux-zigbee-sources/0.3/lowpan-tools-0.3.tar.gz
+
git clone git://git.code.sf.net/p/linux-zigbee/linux-zigbee linux-zigbee
tar -xzf lowpan-tools-0.3.tar.gz
+
cd linux-zigbee
cd lowpan-tools-0.3
+
./autogen.sh
make distclean
+
./configure --prefix=/home/cpeacock/export/rootfs --host=arm-linux-gnueabi PKG_CONFIG_PATH=/home/cpeacock/export/rootfs/lib/pkgconfig
./configure --prefix=/ --host=arm-linux-gnueabi PKG_CONFIG_PATH=/home/cpeacock/beagle/lib/pkgconfig
+
 
make  
 
make  
make install DESTDIR=/home/cpeacock/beagle
+
make install
 
</PRE>
 
</PRE>

Latest revision as of 10:49, 6 August 2015

Cross Compiling Linux-Zigbee (IEEE 802.15.4) User Space Tools

The following contains instructions for cross-compiling the ARM Linux-Zigbee User Space Tools on Ubuntu 13.10. 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
sudo apt-get install autoconf
sudo apt-get install libtool
sudo apt-get install help2man

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.24.tar.gz
tar -xzf libnl-3.2.24.tar.gz
cd libnl-3.2.24
./configure --prefix=/home/cpeacock/export/rootfs --host=arm-linux-gnueabi
make 
make install

Linux-Zigbee User Space Tools

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

git clone git://git.code.sf.net/p/linux-zigbee/linux-zigbee linux-zigbee
cd linux-zigbee
./autogen.sh
./configure --prefix=/home/cpeacock/export/rootfs --host=arm-linux-gnueabi PKG_CONFIG_PATH=/home/cpeacock/export/rootfs/lib/pkgconfig
make 
make install