Here's my play-by-play of trying to get this going. I hope it helps: I used a fresh BeagleBone A5 with the 2/14/2012 image on it. I connected to it via SSH, installed the drivers with opkg, typed reboot, but then couldn't connect via SSH anymore. USR LED 0 showed a heartbeat, but the green light on the Ethernet port blinked on for a quick instant every 20 seconds or so, but was off most of the time (as opposed to being on most of the time and flickering now and then). I let it sit for a 3 minutes, but still couldn't connect.
I pulled the power cord and reinserted it. Reboot took a while, but I got a regular light on the Ethernet port eventually. dmesg showed:
Code: Select all
[ 0.802675] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[ 0.802693] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[ 37.897322] EXT4-fs (mmcblk0p2): recovery complete
[ 38.140925] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 38.140996] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
BUT! I did see the right stuff in dmesg:
Code: Select all
[ 43.651103] rtl8192cu: MAC address: 00:9e:95:9b:40:57
[ 43.651142] rtl8192cu: Board Type 0
and then a few lines down:
Code: Select all
[ 46.292273] rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1
[ 46.342126] ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
[ 46.343174] usbcore: registered new interface driver rtl8192cu
Great! I carried on with the tutorial, modifying the config files and setting up the SSID, password, etc. Restarted connman with "systemctl restart connman.service" and got a blinking cursor for at least five minutes. Thinking I reset my ethernet connection as well, I opened a new SSH session to connect to the BB, but could not connect via IP or beaglebone.local.
Pulled the power cord again and reinserted it. I could log in via ssh now, so I tried to pick up where I left off on the tutorial:
Code: Select all
root@beaglebone:~# ifconfig wlan0
ifconfig: wlan0: error fetching interface information: Device not found
Tried dmesg. Saw this:
Code: Select all
[ 0.641461] rtl8150: v0.6.2 (2004/08/27):rtl8150 based usb-ethernet driver
[ 0.641515] usbcore: registered new interface driver rtl8150
There are no lines referencing the MAC address or rtlwifi. I pulled USB Wifi dongle out. My SSH session locked up, didn't respond to keypresses. Tried to open new SSH session to the board. Couldn't. Tried again after 3 minutes... still nothing. Ethernet light looked normal. Was it possible that I had connected via Wifi before? Probably not since it said wlan0 was not found. Pulled the power cord. Inserted Wifi module. Reinserted power. Connected via ssh. ran dmesg. saw:
Code: Select all
[ 12.997138] usbcore: registered new interface driver rtl8192cu
[ 13.043019] rtl8192cu: MAC auto ON okay!
[ 13.081947] rtl8192cu: Tx queue select: 0x05
[ 13.083258] rtl8192c_common: Loading firmware file rtlwifi/rtl8192cufw.bin
[ 13.771644] ADDRCONF(NETDEV_UP): wlan0: link is not ready
"ifconfig wlan0" returns:
Code: Select all
wlan0 Link encap:Ethernet HWaddr 00:9E:95:9B:40:57
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)
Gave it a couple minutes. Same result from dmesg and ifconfig. I'm thought, my SSID has spaces in it, which might be a problem, so I put quotation marks around the SSID in /var/lib/connman/wifi.config. Restarted connman, which happened fast. Dmesg showed:
Code: Select all
[ 430.011274] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 430.161863] rtl8192cu: MAC auto ON okay!
[ 430.184319] rtl8192cu: Tx queue select: 0x05
[ 430.185664] rtl8192c_common: Loading firmware file rtlwifi/rtl8192cufw.bin
[ 430.720649] ADDRCONF(NETDEV_UP): wlan0: link is not ready
And still no IP in ifconfig. Same results after a 2 minute wait. Tried single quote marks around the SSID. Restarted connman. Same results. Taking a different approach. Installed wireless tools with "opkg install wireless-tools."
Code: Select all
root@beaglebone:~# iwconfig wlan0
wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry long limit:7 RTS thr=2347 B Fragment thr:off
Encryption key:off
Power Management:off
Checked out what was going on in /etc/network/interfaces and saw:
Code: Select all
# Wireless interfaces
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid any
wpa-driver wext
wpa-conf /etc/wpa_supplicant.conf
I followed that to check out what was going on in /etc/wpa_supplicant.conf. Saw a spot to add SSID and password, so I tried that. Rebooted the beaglebone. Weird ethernet light issue. pulled power. Reconnected. SSH in works again. But there's Nothing about wlan0 in dmesg or ifconfig. Rebooted again. Now ifconfig shows wlan0, but still no IP.
I'm taking a break from this for a while. I feel like I'm getting close, like I just need to get the settings right for my network, but I'm also concerned about the reliability since the device doesn't seem to show up sometimes.
Matt