How-to: Set up WiLink8 WiFi on phyCORE-AM572x
Targeted Hardware | phyCORE-AM572x System on Module (PCM-057) phyCORE-AM572x Baseboard (PCM-948) WiLink8 module (PCM-949) |
Targeted Software | PD18.1.0 |
Date |
|
Required Hardware
- PCM-057 SOM
- PCM-948 Baseboard
- PCM-949 WiLink8 module
- 12V 2A Power supply with a barrel jack connector
- DB9 Serial cable
- Bootable SD Card: Refer to the section 6 "Creating a Bootable SD Card" of the 18.1.0 quickstart to create an SD card.
Step-by-step guide
- Setup the hardware
- Connect the SOM to the carrier board
- Plug in the Wifi module
- Insert the SD card
- Connect the serial cable
- Power on the Kit
- Plug in the 12V supply
- Press the POWER switch (S2) to turn on the board
Once at the Linux login prompt, type "root" to login
_____ _____ _ _ | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_ | | _| .'| . | . | | __| _| . | | | -_| _| _| |__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_| |___| |___| Arago Project http://arago-project.org am572x-phycore-rdk ttyS2 Arago 2017.06 am572x-phycore-rdk ttyS2 PHYTEC: BSP-Yocto-TISDK-AM57xx-PD18.1.0 am572x-phycore-rdk login: root root@am572x-phycore-rdk:~#
CODE- Edit the wpa_supplicant.conf file
Open the "wpa_supplicant.conf" file with the following command:
vi /etc/wpa_supplicant.conf
CODENear the bottom of the file, comment out the following line:
#concurrent_sched_scan=1
CODEAt the bottom of the file, add in a network node so it looks similar to the following (using your WiFi network information):
network={ ssid="your network name in quotes" psk="your password in quotes" proto=WPA2 key_mgmt=WPA-PSK }
CODESave and exit the wpa_supplicant file
Execute the following command to start wpa_supplicant and connect to your WiFi network
wpa_supplicant -B -Dnl80211,wext -i wlan0 -c /etc/wpa_supplicant.conf
CODEWhen the module connects to WiFi you should see the following terminal output:
[ 1271.610097] wlan0: send auth to ac:9e:17:af:73:28 (try 1/3)[ 1271.639322] wlan0: authenticated [ 1271.650623] wlan0: associate with ac:9e:17:af:73:28 (try 1/3) [ 1271.660521] wlan0: RX AssocResp from ac:9e:17:af:73:28 (capab=0x411 status=0 aid=5) [ 1271.677192] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 1271.683609] wlan0: associated [ 1271.755467] wlcore: Association completed.
CODENow that you are connected to your WiFi network, ping your favorite local device with the following command to verify it is working properly
ping -I wlan0 -c 5 <IP addr>
CODE
Related articles
-
Page:
-
PDF File
-
Page:
-
Page: