linux-zigbee migrate

 

 

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

      

             

 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值