Linux-ZigBee migrate

Source: Internet
Author: User

 

 

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





 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.