Wpa_supplicant_8_ti hostapd wpa_supplicant ti official wpa_supplicant HOSTAPD ported to Linux

Source: Internet
Author: User

When I transplanted wpa_supplicant_8_ti, I encountered many header files that I could not find. Then refer to the following blog

http://blog.csdn.net/penglijiang/article/details/8573946

First transplant OpenSSL

Download the following Oepnssl source code and compile the installation

--------------------------------------------------------------------------------------------------------------- ----------

Https://github.com/174high/openssl-0.9.8e_linux_porting

--------------------------------------------------------------------------------------------------------------- --------------

-cc= cc+ cc= arm-fsl-linux-gnueabi-gcc-ar= AR $ (arflags) r+ ar= Arm-fsl-linux-gnueabi-ar $ (arflags) r-ranlib=/usr/bin /ranlib
+ ranlib= Arm-fsl-linux-gnueabi-ranlib #make #make InstallThe SSL library is installed in the/usr/local/ssl directory
Ps:+ar=arm-fsl-linux-gnueabi-ar $ (arflags) R
There is a need to pay special attention to the Linux-ar there is no space between this, because I added a space here, so I did not find the reason for a long delay.

Copy the files below to drive to the target system/usr/lib/Libssl.alibcrypto.a

The OpenSSL transplant is complete.

--------------------------------------------------------------------------------------------------------------- ---------------------

Https://github.com/174high/libnl-1.1-stable-master-linux-porting

--------------------------------------------------------------------------------------------------------------- ----------------------

Porting the LIBNL library.

I. Compile the Libnl-1.1-stable-master library first

Command:

#./configure--host=arm-linux--prefix=/home/visteon/libnl-1.1-stable-master/libl CC=ARM-FSL-LINUX-GNUEABI-GCC

1.--host=arm-linux is the platform

2.--prefix=/home/visteon/libnl-1.1-stable-master/libl the address that needs to be installed, and the library that is set up after the IW corresponds to this.

3.CC=ARM-FSL-LINUX-GNUEABI-GCC is our own cross-tool chain. Different tool chains are not the same

Start compiling
# make

After installation, the/HOME/VISTEON/LIBNL-1.1-STABLE-MASTER/LIBL will have our compiled files. The inside contains the library, the header file.

#make Install

--------------------------------------------------------------------------------------------------------------- ----------------------

TI's official download

Https://github.com/174high/wpa_supplicant_8_ti_visteon

--------------------------------------------------------------------------------------------------------------- -----------------------

After entering wpa_supplicant, change the makefile

#cp defconfig. config


#vim. config

config_driver_nl80211=y# Optional, depending on LIBNL version your want to use:# config_libnl20=yconfig_ctrl_iface= Yconfig_wps=yconfig_wps2=yconfig_p2p=yconfig_ap=y

Add the macro switch above to turn on Peer mode.

#修改Makefile

Add SSL header files and the address of the library.
cc=arm-fsl-linux-gnueabi-gcc-l/usr/local/ssl/lib/
CFLAGS + =-i/usr/local/ssl/include
LIBS + =-l/usr/local/ssl/lib

Add LIBNL header files and the address of the library

Note: Sometimes you encounter the problem of finding a file, you need to add the information cflags directly to CC, because some makefile compile time and

The cflags is not added to the compilation option, so there is still a situation that cannot be found

CFLAGS + =-i/home/visteon/libnl-1.1-stable-master/libl/include-l/home/visteon/libnl-1.1-stable-master/libl/lib

#make

Wpa_supplicant_8_ti hostapd wpa_supplicant ti official wpa_supplicant HOSTAPD ported to Linux

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.