Setting up wireless LAN in Sitara starter kit
Sitara starter kit is a great tool for embedded Linux development. I do not want to use Ethernet cable and I have no spare keyboard to use therefore I needed to configure connection manually.
By default device have enabled tty0 console at serial line connected to on-board USB hub. When board is connected to PC it should see new virtual COM port. The only user on the device is root without password. I am using unmodified stock firmware.
- Connect board to PC using USB cable. Power the board.
- Connect to board using PuTTY (Serial 11500) COM port number depends on user system.
- Start or re-boot board
- Login as root
- Create psk hex using wpa_passphrase and put it in
wpa_passphrase network_ssid password >> /etc/wpasupplicant.conf).
- Comment out current
- Add new
auto wlan0 iface wlan0 inet dhcp wpa-conf /etc/wpa_supplicant.conf
- Reset network interface
- Now device should connect to AP. User can reset device to check if connection is acquired on boot.
If the network connection is successful user can telnet or ssh into board. USB connection is no more needed.
User might want to set static IP. It is possible to set static IP in AP1) DHCP settings. To set static IP in embedded device
use following changes for
auto wlan0 iface wlan0 inet static wpa-conf /etc/wpa_supplicant.conf address 192.168.1.10 netmask 255.255.255.0 gateway 192.168.1.1