The phyCORE-AM65x SOM comes equipped with a WifFi module. This guide shows you how to connect and use this interface.
Set up Software Configuration
In order to be accessible in Linux, the WIFI module needs to be configured in the Linux device tree. PHYTEC has provided a sample device tree overlay which configures the MMC bus to utilize the WiFi module instead of the SD Card slot at X13. To enable this device tree overlay:
The device tree overlay is set in U-Boot.
To enter U-Boot, hit any key within 3 seconds of powering or resetting the board to exit autoboot.
If the board is powered on to begin with you will need to reset the board by pushing the Cold Reset button (S1) or use the following command to power off:
Modify the "extra_overlays" variable to point to the sample dtbo: "k3-am65xx-phytec-wlan.dtbo". The "default_overlays" variable does not need to be changed.
Now boot into Linux using the following command in U-Boot:
A 'wpa_supplicant' file must contain the necessary credentials to connect to your network.
Ensure that this file reflects the following contents (replace NETWORKNAME and NETWORKPASSWORD to the corresponding credentials for your target network):
The vi text editor begins in "Command Mode" and you must first hit the 'i' key in order to enter "Insert Mode". Using the arrow keys to navigate, make the necessary changes and then hit ESC to go back to "Command mode". Now enter ":wq" to write the file and quit.
Establish the Connection
Load the credentials from the previous step:
Launch the WiFi client
- Wait until you obtain an IP address.
Test your connection
- Enter Ctrl + C to stop pinging.
Revert to the Default Software Configuration
This guide required enabling a device tree overlay that disabled use of the SD Card slot at X13. In order to revert back to the default overlay settings, the following needs to be run in U-Boot:
- To enter U-Boot, hit any key within 3 seconds of powering or resetting the board to exit autoboot.
To revert back to the original device tree (which would again disable WiFi), enter the following command in U-Boot:
Now use this command to boot into Linux with the original device tree enabled (no WiFi):