Page 15
7. Before
bringing
up
the
Wi-Fi
interface
you
must
first
edit
the
/home/root/wpa_supplicant.conf
file with the correct SSID and security
password for your Wi-Fi access point. You can use the built-in vi editor to do this.
vi wpa_supplicant.conf
a) If you are not familiar with vi, the easiest thing to do is to edit the SSID_here and
password_here fields in the following lines in a text editor, then copy to your
clipboard.
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
network={
key_mgmt=WPA-PSK
ssid="RCK_MY_WRLD"
psk="AABBCCDDEEFF00112233445566"
}
b) Enter the following commands into vi:
i. 9dd
ii. i
iii. <paste command> -- in TeraTerm it is Alt-V
iv. ESC key
v. :wq
8. Once that is done, run the supplied wifi.sh script to copy the wpa_supplicant.conf file to
/etc, load the kernel modules for the driver, and bring up the Wi-Fi interface:
./wifi.sh
9. If successful, move on to step 13. If it fails due to bad SSID or password, you may see
the following message. Work through the following steps to correct it.
Successfully initialized wpa_supplicant
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/wlan0' manually if it is not used anymore
Failed to initialize control interface '/var/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.
10. Enter this command to remove the reference to wlan0
rm /var/run/wpa_supplicant/wlan0