Connecting Wifi Network in Arch Linux ARM

Arch Linux ARM is a rolling distribution which enables Linux Development in many of consumer devices and development platform which uses ARM processors. This tutorial is about connecting our boards with a wifi network through Wifi USB Dongle in ArchLinux.

archOLINUXINO A13 Embedded Development Board

The USB Dongle was equipped with RTL8192CU chipset. The board under test was  OlinuXino-A13 without inbuilt Wifi. A similar Dongle using RTL8188CU can be purchased from this link.

You need to enable support for the RTL8192CU/RTL8188CU  in the kernel. The instructions for compilation and configuring the kernel was described in the previous post.

Install some softwares using pacman. You may use a USB2LAN or USB Tethering for accessing network for this purpose.

Run the following commands in terminal.


pacman -Sy                            // update the package information
pacman -S iw
pacman -S wpa_supplicant

create a configuration file ‘wpa_supplicant.conf’ in /etc/wpa_supplicant/ folder.

The content may look like this

ctrl_interface=/var/run/wpa_supplicant
update_config=1
network={
ssid="YourSSID"
psk="YourPASSWORD"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}
network={
ssid="AndroidAP"
key_mgmt=NONE
auth_alg=OPEN
}

Type the following in terminal assuming the device is wlan0

ip link set wlan0 up
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

Optionally you want to enable dynamic ip allocation by running
dhcpcd wlan0

Tip:

For changing configuration file you may use wpa_supplicant_gui.

You can install wpa_supplicant_gui using ‘pacman -S wpa_supplicant_gui‘.

Advertisements

2 thoughts on “Connecting Wifi Network in Arch Linux ARM

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s