I’ve made some progress here, but still things are quite unstable/unusable…if you have any insight or pointers, I’d appreciate them.
In summary I’ve got the AdaFruit dongle to connect sometimes, but the connection is lossy (huge ping delays and many ping drops).
-
setup
BBB with latest (2013.05.08) image
AdaFruit RTL8192cu (http://www.adafruit.com/products/814) -
procedure
-
insert usb wireless dongle
-
reboot
-
lsusb now shows: Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
-
dmesg shows an error: Firmware rtlwifi/rtl8192cufw.bin not available
-
opkg update
-
opkg install linux-firmware-rtl8192cu
-
remove wired lan connection (as per many comments wifi will not be connected with a LAN connection)
-
reboot
-
dmesg shows successful load: Loading firmware rtlwifi/rtl8192cufw.bin
-
ifconfig -a now has a wlan0 interface
-
ensure /var/lib/connman/settings has
[WiFi]
Enable=true -
add a new file /var/lib/connman/wifi.config containing
[service_home]
Type = wifi
Name = yourSSID
Security = wpa2-psk
Passphrase = yourPassPhrase
At this point I was able to connect to wireless access point (sometimes…sometimes it would fail to affiliate)
dmesg usually indicated a Reason 2 (previous auth not valid) sometimes Reason 3 (AP offline)
when it was connected:
-
SSH took forever to connect (I terminated it before it completed)
-
ping delays of >1s were normal (from both a PC and BBB)
-
lots of pings were dropped (~50%?) (from both a PC to BBB, and from BBB to router)
-
I saw a flood of ARP requests for the router when I was sniffing on the PC
Somehow this seems similar to this post for ArchLinux: http://archlinuxarm.org/forum/viewtopic.php?f=28&t=5560
In desperation, I did a few things:
-
upgraded connman:
opkg update
opkg upgrade connman -
attempted to disable IPv6, but failed (adding a sysctl and also modifying connman config’s didn’t disable IPv6 across a reboot)
At this point I’m tabling this for a bit…so any pointers would be appreciated, this is a bit frustrating!
-Dale
PS. these were some useful things:
re-read connman config instead of rebooting: systemctl restart connman.service
list access points: /usr/lib/connman/test/test-connman services
list of reason codes: http://www.aboutcher.co.uk/2012/07/linux-wifi-deauthenticated-reason-codes/