概述
1. Linux-zigbee kernel
git clone git://linux-zigbee.git.sourceforge.net/gitroot/linux-zigbee/kernel
2. User tools
2.1 Get the user tools
git clone git://linux-zigbee.git.sourceforge.net/gitroot/linux-zigbee/linux-zigbee
2.2 Cross compile the user tools
using the arm-none-linux-gnueabi- tool chain
./autogen.sh --host=arm-none-linux-gnueabi (need to install autoconf and libtool)
It will give out the following error:
No package 'libnl-1' found
Solved: sudo apt-get install libnl-dev
2.3 Get the library named libnl
wget http://people.suug.ch/~tgr/libnl/files/libnl-1.1.tar.gz
tar -zxvf libnl-1.1.tar.gz && cd libnl-1.1
./configure --host=arm-none-linux-gnueabi --prefix=$(pwd)/install
make
route/link/vlan.c:51: error: 'VLAN_FLAG_REORDER_HDR' undeclared here (not in a function)
Solved: vim lib/route/link/vlan.c && add the following lines
#ifndef VLAN_FLAG_REORDER_HDR
#define VLAN_FLAG_REORDER_HDR 0x01
#endif
make && make install
After this operation, the installed file located at install directory.
TODO:
2.4 Go on to build user tools
./configure --host=arm-none-linux-gnueabi --prefix=$(pwd)/install
make && make install
2.5 using the user tools
最后
以上就是潇洒日记本为你收集整理的linux-zigbee migrate的全部内容,希望文章能够帮你解决linux-zigbee migrate所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复