Feiling's embedded OKMX6UL development board, WIFI supports the hotspot function, according to the following method, you can use WIFI to open the hotspot, and connect other wireless-enabled devices to form a local area network, but you cannot access the external network through the hotspot, although you can not access the external Internet, but also makes the operation more convenient, you can use the mobile device to access the development board.
At present, the Feiling i.MX6UL development board already supports WiFi hotspot access to external networks. If necessary, you can consult Feiling's official customer service.
1. Install Support Library
Compiling hostapd requires libnl library and openssl library, so download the source code of these two libraries and cross-compile.
1. Cross-compile libnl
1) Download libnl-1.1.tar.gz source code
2) Unzip the source code libnl-1.1..tar.gz and enter libnl-1.1
3) ./configure --host=arm-none-linux-gnueabi- --prefix=/usr/local/arm/libnl1.1
add #include <limits.h> in netlink-local.h
4) make CC=arm-linux-gcc
5) make install
2. Cross-compile openssl
1) 1. Download the openssl-1.0.0e.tar.gz source code
2) Unzip the source code openssl-1.0.0e.tar.gz and enter openssl-1.0.0e
3) ./config --host=arm-none-linux-gnueabi- --prefix=/usr/local/arm/openssl
4) make CC=arm-linux-gcc
5) make install
Second, compile hostapd
Go to the reltek website to download the RTL8188 linux driver. There is a dedicated hostapd in the driver code package. Cross compilation steps:
1) Unzip the source file and enter the hostapd path;
2) Execute the cp defconfig .config command
Modify the .config as follows:
Increase CONFIG_DRIVER_RTW = y (this is very critical, increase the driver of reltek chip)
Comment out # CONFIG_DRIVER_NL80211 = y
Remove the comment before CONFIG_WPS = y
Remove the comment before CONFIG_IEEE80211N = y
3) make CC = arm-linux-gcc, generate binary file hostapd
Third, install hostapd
Copy hostapd to a directory on the target machine to run, the steps are as follows:
insmod /lib/modules/3.14.38-6UL_ga+ge4944a5/kernel/drivers/net/wireless/realtek/rtl8723BU/8723bu.ko
ifconfig wlan0 up
ifconfig wlan0 192.168.0.10 netmask 255.255.255.0
udhcpd /etc/udhcpd.conf &
/home/hostapd -d /etc/hostapd.conf &
The contents of the /etc/udhcpd.conf file are modified as follows:
The start and end of the IP lease block
start 192.168.0.10 #default: 192.168.0.20
end 192.168.0.100 #default: 192.168.0.254
The interface that udhcpd will use
interface wlan0 #default: eth0
The assigned IP should be in the same network segment as the IP set by wlan0, and the interface should be set to wlan0.
The contents of the /etc/hostapd.conf file are as follows:
interface=wlan0
ssid=ZZT_SSID
driver=rtl871xdrv
channel=9
hw_mode=g
ignore_broadcast_ssid=0
auth_algs=1
wpa=3
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
If there is no OKMX6UL-C development board, you can consider applying for one set. Recently, Feiling provides a total of 50 sets of development boards of NXP, SAMSUNG, TI series as prototypes for trial activities. Applicants can submit trial information to Feiling for selection by Feiling Prototype testers and sign an agreement to issue prototypes.