Can't get WiFi to work on BeagleBone A6a and Ubuntu 12.10

Yesterday I spent my night with Angstrom and the complete day today I (I’m in Germany) I spent it with Ubuntu but still my WiFi doesn’t work. I would like to stay with Ubuntu as this seems to be much better documented than Angstrom.

Environment:
BeagleBone A6a with the most current Ubuntu Demo Image from Robert C Nelson (Quantal 12.10 armhf 2012-11-29: r2).
My wireless adapter is a Edimax EW-7811UN with Realtek 8192 CU chipset - this is the same chipset like Adafruit sells: http://learn.adafruit.com/beaglebone/wifi
My router is a German FritzBox with WPA and WPA2 and visible SSID - quite normal settings.

cat /etc/network/interfaces shows

auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp
# Example to keep MAC address between reboots
#hwaddress ether DE:AD:BE:EF:CA:FE

# WiFi Example
auto wlan0
iface wlan0 inet dhcp
wpa-driver wext
wpa-ssid Bookshelf
wpa-ap-scan 1
wpa-proto RSN
wpa-pairwise CCMP
wpa-group CCMP
wpa-key-mgmt WPA-PSK
wpa-psk 552daAND_SO_ON.

I was not sure wether my ssid-name needs quotes but I guess it doesn’t. The wpa-psk is generated with wpa_passphrase Bookshelf

The last lines dmesg shows are:
[ 10.750396] rtl8192cu: MAC auto ON okay!
[ 10.822540] rtl8192cu: Tx queue select: 0x05
[ 10.824798] rtl8192c_common: Loading firmware file rtlwifi/rtl8192cufw.bin
[ 10.896667] init: plymouth main process (179) killed by ABRT signal
[ 10.905517] init: plymouth-splash main process (498) terminated with status 2
[ 12.121948] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 13.622467] init: plymouth-stop pre-start process (743) terminated with status 1

lsusb shows:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

ifconfig wlan0 shows:

wlan0 Link encap:Ethernet HWaddr 80:1f:02:84:fe:9a
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

So the problem seems to be that wlan0 link is not ready.
I have to say I’m already a bit exhausted after trying to get WiFi working for more than a day now.

If anybody here on the board knows any WiFi adapter which works with a recent BeagleBone and Ubuntu out of the box please let me know so I can get it.

Thanks a lot!
Thomas

Thomas,

You may want to kill wpa_supplicant and run it manually:

wpa_supplicant -u -dd

Try to restart the networking and post the output of the messages here.

Yes - it works, but had to recompile my Realtek WLAN driver.

I did this already some months ago: Follow the video of Derek Molloy at http://www.youtube.com/watch?v=HJ9nUqYMjqs

You need to invest some hours. It will explain how to cross-compile the driver on your PC for your Beaglebone and what to change in Ubuntu so that the driver gets pulled at boot.

Maybe not to quickest way if all you want to get is a compiled driver - but I learned a lot about Linux and really recommend to take the time.

Thomas