RTL8188FU wireless network card driver transplantation

1. Kernel configuration

1、Networking support

             >   wireless

2、Device Drivers

               > Network device support

                                  > wireless LAN

 

Second, drive compilation

1. Configure wifi chip model

2. Add a new platform

ifeq ($(CONFIG_PLATEORM_HI3520D), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
CROSS_COMPILE := arm-hisiv500-linux-
KVER  := $(shell uname -r)
KSRC := /home/huabiao/share/3520DV400/3520DV400_1040/linux-3.18.y
ARCH := arm
MODULE_NAME := wlan
endif

3、make

4. Insert the driver wlan.ko

5. ifconfig wlan0 up     ifconfig -a View wireless network card


  

 

Three, wpa_supplicant tool transplantation

  1. tar -xvf wpa_supplicant_hostapd-0.8_rtw_r7475.20130812.tar.gz

  2.  
  3. cd ./wpa_supplicant_hostapd-0.8_rtw_r7475.20130812/wpa_supplicant/

Modify the cross compiler

Add a line 

CC=arm-hisiv500-linux-gcc

Then execute

make clean;make

 Four, wifi connection

1. Put this file in the /app/wpa.conf directory of the lower computer. The contents are as follows:

  1. ctrl_interface=/tmp/wpa_supplicant
  2. update_config=1
  3. network={
  4. ssid="imlsq"
  5. key_mgmt=WPA-PSK 
  6. proto=RSN WPA WPA2
  7. pairwise=TKIP CCMP
  8. group=TKIP CCMP
  9. psk="123456"

2. Copy the 3 files wpa_supplicant, wpa_cli and wpa_passphrase to the / bin directory, as shown below:

The key step, connect wifi command

wpa_supplicant -B -Dwext -iwlan0 -c /app/wpa.conf &

If it is to obtain a dynamic IP address

udhcpc -i wlan0 &

If it is to set a static IP address

ifconfig wlan0 192.168.3.30

The following picture obtains IP successfully 

Published 115 original articles · Like 29 · Visitors 50,000+

Guess you like

Origin blog.csdn.net/huabiaochen/article/details/103294551