Getting WiFi Working on the A13-OLinuXino-MICRO

This tutorial will guide you through setting up WiFi on the A13-OLinuXino-MICRO board and connecting to a WPA-enabled network. Because the MICRO board has no wired Ethernet, we’re going to have to download Debian packages for wpa_supplicant on the host machine and install them on the MICRO.

I am using an Edimax EW-7811Un USB WiFi dongle, which uses the Realtek rtl8192cu chipset. If you have been following along and built Sunxi Debian from scratch with all the defaults, a 8192cu driver was already included in the kernel. If you are using another WiFi module, you might have to install the driver (check with the sunxi-linux kernel configuration file first, though).


Install wpa_supplicant

Download the following packages on the host machine (you want the armhf architecture):

libc-bin 2.13-38
libc6 2.13-38
wpasupplicant 1.0-3

Copy each of the .deb packages to the /home folder on the OLinuXino (/dev/sdX is the location of the SD card).

Boot up the OLinuXino board and install the packages in the exact order listed above. Use the dkpg command to install each package.

WiFi Setup

Plug in USB WiFi dongle

Pick a WiFi AP and write down the SSID. Assuming it’s WPA, you’ll need to know the password for the network. Using the SSID and password for the network, enter in:

Copy down the long number that appears after “psk=”. This is the pre-shared key that we will feed to wpa_supplicant.

Copy the following into the config file:

Where <SSID> is the SSID of the network, <PSK> is the long string of hex numbers from the step above, and <NICKNAME> is a name for the network (I just use <SSID>). Note that the quotes (“) are needed for the ssid and id_str fields, but should be left out of the psk field. Save and exit (ctrl+x, y, <enter>). Now, we need to setup the interfaces file.

Delete everything in the file and replace it with the following:

Notice that we commented out the eth0 lines. The MICRO board does not have a wired Ethernet connection, so we don’t need eth0. If you have one of the other boards with a physical Ethernet jack, feel free to un-comment those lines. Save and exit.

I highly recommend a reboot at this point.

Once you log in, check the status of the WiFi connection.

You should see that the wlan0 interface got an IP address (e.g.,, etc.). If you need to restart the networking daemon, issue the command:

If you have errors such as “No DHCPOFFERS received” you might want to try rebooting the board.

If you’re lucky, everything should work smoothly. As an added benefit, when you restart the board, WiFi should automatically connect!

If WiFi doesn’t connect on startup, you can start things manually. More than likely, the USB WiFi adapter wasn’t up in time, but you can just get things running with the following:

Leave a Reply