wpa_supplicant的移植

本文详细介绍了如何在特定环境下移植wpa_supplicant并解决相关错误,包括环境配置、步骤说明以及依赖库(如openssl和libnl)的移植方法。确保移植成功后,可以通过执行wpa_supplicant命令验证其正确性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

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

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值