imx6 RTL8189FTV transplantation

The transplantation of RTL8189FTV to imx6 was a successful transplant, but previous colleagues reported that there was an unstable situation. It is not very clear why, writing test code by yourself is fine for testing, but there are always problems with colleagues who do applications. Test for a few more days.

1. Download the source code of RTL8189FTV: https://github.com/jwrdegoede/rtl8189ES_linux.git

Find the branch of 8189 and download it.

 2. After downloading, modify the Makefile as follows:

########################## WIFI IC ############################
CONFIG_MULTIDRV = n
CONFIG_RTL8188E = n
CONFIG_RTL8812A = n
CONFIG_RTL8821A = n
CONFIG_RTL8192E = n
CONFIG_RTL8723B = n
CONFIG_RTL8814A = n
CONFIG_RTL8723C = n
CONFIG_RTL8188F = y
######################### Interface ###########################
CONFIG_USB_HCI = n
CONFIG_PCI_HCI = n
CONFIG_SDIO_HCI = y
CONFIG_GSPI_HCI = n


CONFIG_PLATFORM_FS_MX61 = y


ifeq ($(CONFIG_PLATFORM_FS_MX61), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
ARCH := arm
CROSS_COMPILE := arm-poky-linux-gnueabi-
KSRC ?= /home/a/work/imx6/kernel-4.9.11-v2x-usb
endif

 3. Then make, when the ko file appears, the compilation is complete

4. Then load the ko file. Note that the instructions inside are because the file system you get comes with it, if you don’t need to add it yourself

insmod 8189fs.ko    //加载驱动
ifconfig wlan0 up    //启动wlan0
wpa_supplicant -B -Dnl80211 -iwlan0 -c /etc/wpa_supplicant.conf -d //连接到wifi
ifconfig wlan0 192.168.0.90 //手动分配地址

 wpa_supplicant.conf:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1

network={
    ssid="路由器的名字"
    psk="路由器的密码"
}

 5. In theory, it should be possible to follow this operation, but there will be a lot of messy debugging information, as follows

Therefore, the driver code of 8189 still needs to be modified, as follows

/rtl8189ES_linux-rtl8189fs/include/autoconf.h

//第227行,注释掉
#define CONFIG_DEBUG /* DBG_871X, etc... */

Finished, pinged my router, but I still need to test for a few more days.

Guess you like

Origin blog.csdn.net/smile_5me/article/details/109772876