SDIO Wi-Fi
There is a SDIO WiFi wireless card in development board, according the steps that provied in above to load the driver, then following the steps to setup network in the board.
- Run the wpa_supplicant in background:
# wpa_supplicant -iwlan0 -Dwext -B -c/etc/wpa_supplicant.conf
- Configure the network:
# wpa_cli -iwlan0 scan
# wpa_cli -iwlan0 scan_r
# wpa_cli -iwlan0 remove_n all
# wpa_cli -iwlan0 add_n
# wpa_cli -iwlan0 set_n 0 ssid '"MYIR-LINK "'
# wpa_cli -iwlan0 set_n 0 psk '"Make Your Idea Real"'
Note: Here used the WPA-PSK/WPA2-PSK encryption, please refer 《[AN] MYD-AM335X-Y SDIO Wi-Fi Application Note.docx》for other encryptions.
- Enable the network:
# wpa_cli -iwlan0 enable_n 0
- Save the configure to wpa_supplicant.conf:
# wpa_cli -iwlan0 save_c
- Obtaining IP from DHCP server:
# udhcpc -n -i wlan0
- Checking the network is connecting:
# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.13: seq=1 ttl=64 time=0.401 ms
64 bytes from 192.168.1.13: seq=2 ttl=64 time=0.412 ms