1. 下载wireless_tools
下载地址:
注意版本:The latest stable version of Wireless Tools is version 29,the latest beta is support for non-ASCII ESSID,version 30-pre9。
我下载的是wireless_tools.29.tar.gz
注意版本:The latest stable version of Wireless Tools is version 29,the latest beta is support for non-ASCII ESSID,version 30-pre9。
我下载的是wireless_tools.29.tar.gz
2. 解压
#tar -xzvf wireless_tools.29.tar.gz
#cd wireless_tools.29
1.3 Makefile修改
- 表示去掉的
+ 表示新增加的
#vi Makefile
+ CROSS_COMPILE = /usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-
- CC = gcc
+ CC= CC = $(CROSS_COMPILE)gcc
- AR = ar
+ AR= $(CROSS_COMPILE)ar
- RANLIB = $(CROSS_COMPILE)ranlib
+ RANLIB = $(CROSS_COMPILE)ranlib
- RANLIB = $(CROSS_COMPILE)ranlib
+ RANLIB = $(CROSS_COMPILE)ranlib
#make
1.4 复制文件到产品板
拷贝libiw.so.29文件到目标系统/usr/lib/
拷贝用到的几个程序到产品板就可以了
iwpriv、iwconfig、iwlist, iwevent, iwspy
至此wireless_tools移植完成
有可能出现的错误:
在到产品板上还出现can't resolve symbol '__ctype_b_loc' 错误
去掉iwlib.h中这一行重新编译即可
#include