Getting WiFi to work on my BeagleBone was another project that seemed straightforward. But that too turned into an exercise in frustration.
At the time of writing, I STILL do not have WiFi working. So I'm documenting the various steps I'm taking as I go along.
(Need to beautify below)
1. Ordered USB WiFi adaptor from AdaFruit
2. Installed driver
3. ifconfig showed it was up
4. Modified connman config files as per AdaFruit tutorial: no connection
5. Disconnected Ethernet and used USB terminal: apparently can't use Ethernet and WiFi together
6. I hate connman: no documentation and no diagostics
7. Downloaded latest connman distribution from http://www.kernel.org/pub/linux/network/connman/
8. 'configure' failed to find 'Xtables' library
9. Need to install iptables-dev (http://lists.connman.net/pipermail/connman/2012-August/010671.html)
10. ./configure works
11. 'make install' works
12. Looks like the default installation directories are different from the default connman in Ansgtrom -- I now have TWO connmand (one in /usr/sbin and one in /usr/local/sbin). I bet the configuration files are different too!
13. Rebooted. New connman is running but USB WiFi adapter is no longer up
14. AAaaarrrggghhh!
15. After several weeks away, I'm trying again. I'm connected to my Bone via the USB terminal.
16. 'lsusb' shows my adapter is working:
Before inserting WiFi adapter:
root@beaglebone:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
After inserting WiFi adapter:
root@beaglebone:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0bda:8176 Realtek Semiconductor Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[ 145.930914] usb 1-1: new high-speed USB device number 2 using musb-hdrc
[ 146.072126] usb 1-1: New USB device found, idVendor=0bda, idProduct=8176
[ 146.072149] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 146.072163] usb 1-1: Product: 802.11n WLAN Adapter
[ 146.072173] usb 1-1: Manufacturer: Realtek
[ 146.072183] usb 1-1: SerialNumber: 00e04c000001
[ 146.445337] cfg80211: Calling CRDA to update world regulatory domain
[ 147.258220] rtl8192cu: MAC address: 00:e0:4c:10:44:a5
[ 147.258257] rtl8192cu: Board Type 0
[ 147.920640] rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1
[ 147.921238] ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
[ 147.922159] usbcore: registered new interface driver rtl8192cu