wifi模块调试之安装wpa_supplicant

  • Post author:
  • Post category:其他


一.安装libnl

1.在http://www.infradead.org/~tgr/libnl/上下载最新源码libnl-3.2.25.tar.gz

tar xzf libnl-3.2.25.tar.gz

cd libnl-3.2.25/

./configure –host=arm-linux –prefix=$PWD/tmp

此时出现:

configure: WARNING: bison not found. Please install before continuing.

configure: WARNING: flex not found. Please install before continuing.

configure: error: Required packages are missing. Please install them and rerun ./configure

在linux中缺少bison和flex。

安装缺少的工具:

apt-get install bison

apt-get install flex

重新   ./configure –host=arm-linux –prefix=$PWD/tmp,此时配置成功。

make

make install

在tmp目录下就生成了相关的文件,把相应的lib和include 复制到交叉编译工具链中。

二.安装libopenssl

在http://www.openssl.org/source/下载最新源码openssl-1.0.1i.tar.gz

tar xzf openssl-1.0.1i.tar.gz

cd openssl-1.0.1i/

./config shared no-asm –prefix=$PWD/tmp

修改Makefile:

CC= arm-linux-gcc

AR= arm-linux-ar $(ARFLAGS) r

RANLIB= arm-linux-ranlib

NM= arm-linux-nm

MAKEDEPPROG= arm-linux-gcc

make

make install

在tmp目录下就生成了相关的文件,把相应的lib和include 复制到交叉编译工具链中。

三.安装wpa_supplicant

在http://wireless.kernel.org/en/users/Documentation/wpa_supplicant下载最新源码wpa_supplicant-2.2.tar.gz

tar xzf wpa_supplicant-2.2.tar.gz

cd wpa_supplicant-2.2/wpa_supplicant/

cp defconfig .config

修改.config加上一行: CONFIG_LIBNL32=y

修改Makefile:

CC=arm-linux-gcc

make

make DESTDIR=$PWD/tmp install



版权声明:本文为L_Backkom原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。