wpa_supplicant的移植

来源:互联网 发布:淘宝网火车票 编辑:程序博客网 时间:2024/03/29 23:10
 

wpa_supplicant的移植



如果运行wpa_supplicant报如下错误,表明wpa_supplican需要重新移植,或缺少库。

./wpa_supplicant: ./wpa_supplicant: 1: Syntax error: "(" unexpected

 

下面为移植过程:

环境:PC为2.6.35-23-generic-pae #40-Ubuntu和交叉编译器为arm-2011.03

目标板:2416(主要是文件系统的交叉编译器也为arm-2011.03即可)

 

步骤:

下载hostap,git clone git://w1.fi/srv/git/hostap.git,进入wpa_supplicant目录

cp defconfig .config

修改Makefile

make

生成wpa_cli、wpa_passphrase、wpa_supplicant,将其拷到开发板文件系统/bin/下,执行wpa_supplicant会看到版本和帮助信息等,表明移植成功。

中间涉及到的openssllibnl的库,也需要移植才能编译,过程类似主要是修改编译器和库,还有就是安装路径,过程参考:

参考文章:

1、  openssl的移植http://blog.csdn.net/hinyunsin/article/details/6029439

2、  libnl的移植http://blog.csdn.net/hinyunsin/article/details/6029403

3、  http://blog.csdn.net/hinyunsin/article/details/6029749

4、  http://linuxwireless.org/en/developers/p2p/howto

 

原创粉丝点击