I can’t seem to get wifi working on my BBB, and can’t find any current info online. I’m running bone-debian-8.3-lxqt-4gb-armhf-2016-01-24-4gb.img with its default kernel 4.1.15-ti-rt-r43 on a good BBB (not the broken one I wrote about in other threads). The wifi adapter is an OurLink (USB WiFi (802.11b/g/n) Module: For Raspberry Pi and more : ID 1012 : $13.95 : Adafruit Industries, Unique & fun DIY electronics and kits) which works perfectly on a Raspberry Pi.
I wasn’t getting anywhere with connman so I uninstalled it and followed the instructions here (BBBWiFiConfigs - eLinux.org)
etc/network/interfaces is:
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcpThe loopback network interface
auto lo
iface lo inet loopbackThe primary network interface
auto eth0
iface eth0 inet dhcpExample to keep MAC address between reboots
#hwaddress ether DE:AD:BE:EF:CA:FE
The secondary network interface
#auto eth1
#iface eth1 inet dhcpWiFi Example
#auto wlan0
#iface wlan0 inet dhcpwpa-ssid “essid”
wpa-psk “passphrase”
Ethernet/RNDIS gadget (g_ether)
Used by: /opt/scripts/boot/autoconfigure_usb0.sh
iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.252
network 192.168.7.0
gateway 192.168.7.1
/etc/wpa_supplicant/wpa_supplicant.conf is
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid=“galileo”
scan_ssid=1
psk=“my router’s psk”
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}
The ssid and psk in the file are correct; the router is configured to wpa2-psk and works fine for all other devices.
The wifi adapter seems to be recognized. When it’s plugged in dmesg shows:
[ 3330.645439] usb 1-1: SerialNumber: 00e04c000001
[ 3330.661745] rtl8192cu: Chip version 0x10
[ 3330.818499] rtl8192cu: MAC address: 00:e0:4c:08:ac:98
[ 3330.818618] rtl8192cu: Board Type 0
[ 3330.818858] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
[ 3330.819108] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
[ 3330.821381] ieee80211 phy4: Selected rate control algorithm ‘rtl_rc’
[ 3332.505433] rtl8192cu: MAC auto ON okay!
[ 3332.549124] rtl8192cu: Tx queue select: 0x05
[ 3333.290384] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
If I run ifup wlan0 i can get it to appear in ifconfig, but it never gets an ip address :
wlan0 Link encap:Ethernet HWaddr 00:e0:4c:08:ac:98
inet6 addr: fe80::2e0:4cff:fe08:ac98/64 Scope:Link
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)
dhclient wlan0 gets nothing.
and after running wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf I see multiple failed attempts to connect:
wlan0: SME: Trying to authenticate with fc:f5:28:fe:1b:90 (SSID=‘galileo’ freq=2422 MHz)
wlan0: Trying to associate with fc:f5:28:fe:1b:90 (SSID=‘galileo’ freq=2422 MHz)
wlan0: Associated with fc:f5:28:fe:1b:90
wlan0: CTRL-EVENT-DISCONNECTED bssid=fc:f5:28:fe:1b:90 reason=3 locally_generated=1
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid=“galileo” auth_failures=1 duration=10 reason=CONN_FAILED
I’m absolutely certain that the passphrase I entered in wpa_supplicant.conf is correct.
I see a lot of entries like this in my router’s log (NBG6503 is the router model #) which seem to coincide with dhclient trying to get an address:
NBG6503 user.notice kernel: (null)
What am I missing?