基本信息支持的设备- MY-IMX6-A9系列:MY-IMX6-EK200、MY-IMX6-EK314、MY-IMX6-EK336
测试使用的设备- 开发板型号:MY-IMX6-EK200-6Q
- 内核版本:Linux-3.14.52
- 文件系统:distro-fsl-imx-fb-image-qt5.tar.bz2
测试使用的模块型号
测试操作检查系统是否已经识别到模块# lsusb
......
Bus 001 Device 004: ID 0bda:8179 Realtek Semiconductor Corp.
......
基于 RTL8188EUS v4.3.0.9 驱动的测试- Insert a module into the Linux Kernel
# insmod ~/my-demo/MY_8188EUS_V4309_L31452_IMX6A9.ko
RTL871X: module init start
RTL871X: rtl8188eu v4.3.0.9_15178.20150907
bFWReady == _FALSE call reset 8051...
RTL871X: rtw_ndev_init(wlan0)
usbcore: registered new interface driver rtl8188eu
RTL871X: module init ret=0
- Configuration
Generate a WPA PSK from an ASCII passphrase for a SSID
usage: wpa_passphrase <ssid> [passphrase]
# wpa_passphrase MYZR-OPEN Myzr2012 > /etc/wpa_supplicant.conf
# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device
==> rtl8188e_iol_efuse_patch
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
RTL871X: rtw_set_802_11_connect(wlan0) fw_state=0x00000008
RTL871X: start auth
RTL871X: auth success, start assoc
RTL871X: assoc success
IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
RsvdPageNum: 8
RTL871X: recv eapol packet
RTL871X: send eapol packet
RTL871X: recv eapol packet
RTL871X: send eapol packet
RTL871X: set pairwise key camid:4, addr:e4:d3:32:85:d4:7c, kid:0, type:AES
RTL871X: set group key camid:5, addr:e4:d3:32:85:d4:7c, kid:1, type:AES
# udhcpc -i wlan0
udhcpc (v1.23.1) started
Sending discover...
Sending select for 192.168.124.107...
Lease of 192.168.124.107 obtained, lease time 7200
/etc/udhcpc.d/50default: Adding DNS 114.114.114.114
/etc/udhcpc.d/50default: Adding DNS 114.114.115.115
# ping -I wlan0 www.baidu.com -c 2 -w 4
PING www.baidu.com (14.215.177.39): 56 data bytes
64 bytes from 14.215.177.39: seq=0 ttl=50 time=39.166 ms
64 bytes from 14.215.177.39: seq=1 ttl=50 time=13.345 ms
--- www.baidu.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 13.345/26.255/39.166 ms
- Remove a module from the Linux Kernel
# rmmod 8188eu
RTL871X: module exit start
usbcore: deregistering interface driver rtl8188eu
RTL871X: rtw_cmd_thread: DriverStopped(1) SurpriseRemoved(0) break at line 478
RTL871X: rtw_ndev_uninit(wlan0)
RTL871X: rtw_dev_unload: driver not in IPS
usb 1-1.4: reset high-speed USB device number 4 using ci_hdrc
RTL871X: module exit success
基于 RTL8188EUS v5.2.2.2 驱动的测试- Insert a module into the Linux Kernel
# insmod ~/my-demo/MY_8188EUS_V5222_L31452_IMX6A9.ko
bFWReady == _FALSE call reset 8051...
usbcore: registered new interface driver rtl8188eu
- Configuration
Generate a WPA PSK from an ASCII passphrase for a SSID
usage: wpa_passphrase <ssid> [passphrase]
# wpa_passphrase MYZR-OPEN Myzr2012 > /etc/wpa_supplicant.conf
# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device
==> rtl8188e_iol_efuse_patch
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
# udhcpc -i wlan0
udhcpc (v1.23.1) started
Sending discover...
Sending select for 192.168.124.107...
Lease of 192.168.124.107 obtained, lease time 7200
/etc/udhcpc.d/50default: Adding DNS 114.114.114.114
/etc/udhcpc.d/50default: Adding DNS 114.114.115.115
# ping -I wlan0 www.baidu.com -c 2 -w 4
PING www.baidu.com (14.215.177.39): 56 data bytes
64 bytes from 14.215.177.39: seq=0 ttl=50 time=17.374 ms
64 bytes from 14.215.177.39: seq=1 ttl=50 time=16.391 ms
--- www.baidu.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 16.391/16.882/17.374 ms
- Remove a module from the Linux Kernel
# rmmod 8188eu
usbcore: deregistering interface driver rtl8188eu
cfg80211: Calling CRDA to update world regulatory domain
usb 1-1.4: reset high-speed USB device number 4 using ci_hdrc
基于 RTL8188EUS v5.2.2.4 驱动的测试- Insert a module into the Linux Kernel
# insmod ~/my-demo/MY_8188EUS_V5224_L31452_IMX6A9.ko
bFWReady == _FALSE call reset 8051...
usbcore: registered new interface driver rtl8188eu
- Configuration
Generate a WPA PSK from an ASCII passphrase for a SSID
usage: wpa_passphrase <ssid> [passphrase]
# wpa_passphrase MYZR-OPEN Myzr2012 > /etc/wpa_supplicant.conf
# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device
==> rtl8188e_iol_efuse_patch
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
==> rtl8188e_iol_efuse_patch
IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
# udhcpc -i wlan0
udhcpc (v1.23.1) started
Sending discover...
Sending select for 192.168.124.107...
Lease of 192.168.124.107 obtained, lease time 7200
/etc/udhcpc.d/50default: Adding DNS 114.114.114.114
/etc/udhcpc.d/50default: Adding DNS 114.114.115.115
# ping -I wlan0 www.baidu.com -c 2 -w 4
PING www.baidu.com (14.215.177.38): 56 data bytes
64 bytes from 14.215.177.38: seq=0 ttl=49 time=25.993 ms
64 bytes from 14.215.177.38: seq=1 ttl=49 time=15.585 ms
--- www.baidu.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 15.585/20.789/25.993 ms
- Remove a module from the Linux Kernel
# rmmod 8188eu
usbcore: deregistering interface driver rtl8188eu
cfg80211: Calling CRDA to update world regulatory domain
usb 1-1.4: reset high-speed USB device number 4 using ci_hdrc