







&usdhc1 {
cd-gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
};
&usdhc1 {
/* cd-gpios = <&gpio1 19 GPIO_ACTIVE_LOW>; */
nonremovable;
};
root@fl-imx6ull:~# insmod /lib/modules/$(uname -r)/kernel/drivers/net/wireless/realtek/rtl8189ES/8189es.ko
root@fl-imx6ull:~# lsmod
Module Size Used by 8189es 885053 0
root@fl-imx6ull:~# ifconfig wlan0 wlan0 Link encap:Ethernet HWaddr A0:F4:59:73:22:C6 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@fl-imx6ull:~# ifconfig eth0 down root@fl-imx6ull:~# ifconfig eth1 down
root@fl-imx6ull:~# ifconfig wlan0 up
root@fl-imx6ull:~# iwlist wlan0 scan wlan0 Scan completed : Cell 01 - Address: 4C:E9:E4:B8:65:6A ESSID:"forlinx" Protocol:IEEE 802.11bgn Mode:Master Frequency:2.412 GHz (Channel 1) Encryption key:on Bit Rates:300 Mb/s Extra:wpa_ie=dd160050f20101000050f20401000050f20401000050f202 IE: WPA Version 1 Group Cipher : CCMP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK Extra: IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : CCMP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK Quality=68/100 Signal level=42/100 Extra:fm=0001
root@fl-imx6ull:~# iwconfig wlan0 essid frolinx RTL871X: set ssid [frolinx] fw_state=0x00000008
root@fl-imx6ull:~# wpa_passphrase "forlinx" > wpa.conf xxx
root@fl-imx6ull:~# wpa_supplicant -Dwext -cwpa.conf -iwlan0 & [1] 599 root@fl-imx6ull:~# Successfully initialized wpa_suppRTL871X: set bssid:00:00:00:00:00:00 licant rfkill: Cannot open RFKILRTL871X: set ssid [g▒isQ▒J▒)ͺ▒▒▒▒F|▒T▒▒vZ.c3▒ɚ▒] fw_state=0x00000008 L control device ioctl[SIOCSIWAP]: Operation not permitted ioctl[SIOCGIWSCAN]: Resource temporarily unavailable ioctl[SIOCGIWSCAN]: Resource temporarily unavailable RTL871X: indicate disassoc wlan0: Trying to associate with 04:d7:a5:84:fa:40 (SSID='forlinx'RTL871X: set ssid [forlinx] fw_state=0x00000008 freq=2437 MHz) RTL871X: set bssid:04:d7:a5:84:fa:40 RTL871X: start auth RTL871X: auth success, start assoc RTL871X: assoc success RTL871X: recv eapol packet IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready wlan0: Associated with 04:d7:a5:84:fa:40 RTL871X: send eapol packet RTL871X: recv eapol packet RTL871X: send eapol packet RTL871X: set pairwise key camid:4, addr:04:d7:a5:84:fa:40, kid:0, type:AES wlan0: WPA: Key negotiation complRTL871X: set group key camid:5, addr:04:d7:a5:84:fa:40, kid:2, type:AES eted with 04:d7:a5:84:fa:40 [PTK=CCMP GTK=CCMP] wlan0: CTRL-EVENT-CONNECTED - Connection to 04:d7:a5:84:fa:40 completed [id=0 id_str=]
root@fl-imx6ull:~# udhcpc -iwlan0 udhcpc (v1.24.1) started Sending discover... Sending select for 192.168.5.94... Lease of 192.168.5.94 obtained, lease time 36000 /etc/udhcpc.d/50default: Adding DNS 222.222.202.202 /etc/udhcpc.d/50default: Adding DNS 222.222.222.222
root@fl-imx6ull:~# ping PING (211.149.226.120): 56 data bytes 64 bytes from 211.149.226.120: seq=0 ttl=51 time=63.650 ms 64 bytes from 211.149.226.120: seq=1 ttl=51 time=59.575 ms 64 bytes from 211.149.226.120: seq=2 ttl=51 time=54.193 ms 64 bytes from 211.149.226.120: seq=3 ttl=51 time=114.156 ms 64 bytes from 211.149.226.120: seq=4 ttl=51 time=206.920 ms ^C --- ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max = 54.193/99.698/206.920 ms
root@fl-imx6ull:~# rmmod 8189es RTL871X: module exit start RTL871X: indicate disassoc wlan0: CTRL-EVENT-DISCONNECTED bssid=04:d7:a5:84:fa:40 reason=3 locally_generated=1 RTL871X: rtw_ndev_uninit(wlan0) if1 RTL871X: rtw_cmd_thread: DriverStopped(True) SurpriseRemoved(False) break at line 564 RTL871X: rtw_dev_unload: driver not in IPS RTL871X: module exit success
root@fl-imx6ull:~# iwconfig wlan0 essid “devnet”
root@fl-imx6ull:~# iwconfig wlan0 key “1234567890”
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69989353/viewspace-2746883/ ,如需转载,请注明出处,否则将追究法律责任。