root@beagleboard:~# dmesg|grep rt7
[90899.812316] usbcore: registered new interface driver rt73usb
[90901.856079] wmaster0 (rt73usb): not using net_device_ops yet
[90901.863708] wlan0 (rt73usb): not using net_device_ops yet <<========
[90901.870605] Registered led device: rt73usb-phy1:radio
[90901.876190] Registered led device: rt73usb-phy1:assoc
[90901.881652] Registered led device: rt73usb-phy1:quality
root@beagleboard:~#
wlan0 IEEE 802.11bg ESSID:""
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Tx-Power=0 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
root@beagleboard:~#
I also see in dmesg:-
# dmesg|grep rt25
[90899.806121] usbcore: registered new interface driver rt2500usb
[90901.238922] phy0 -> rt2500usb_init_eeprom: Error - Invalid RT chipset
detected.
I see the same on all other boxes with the latest vanilla kernels but
they all get associated, not the beagleboard. The dongle is on the EHCI
port.
I have both connman and avahi-daemon disabled.
root@beagleboard:~# ifup wlan0
[92446.902923] rt73usb 1-2.3:1.0: firmware: requesting rt73.bin
[92447.098175] ADDRCONF(NETDEV_UP): wlan0: link is not ready
udhcpc (v1.13.2) started
run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1
Sending discover...
Sending discover...
Sending discover...
No lease, failing
root@beagleboard:~#
Regards
Sid.
Got a little further by changes to wpa_supplicant.conf, looking for
further clues.
# less /etc/wpa_supplicant.conf
###ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=root
# home network; allow all valid ciphers
network={
ssid="TalkTalk520"
scan_ssid=1
key_mgmt=WPA-PSK
psk="F0A2962918236417"
}
# wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
CTRL-EVENT-SCAN-RESULTS
Trying to associate with 00:1b:9e:82:66:27 (SSID='TalkTalk520' freq=2437
MHz)
Associated with 00:1b:9e:82:66:27
WPA: Key negotiation completed with 00:1b:9e:82:66:27 [PTK=TKIP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 00:1b:9e:82:66:27 completed (auth)
[id=0 id_str=]
WPA: 4-Way Handshake failed - pre-shared key may be incorrect
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
Associated with 00:1b:9e:82:66:27
CTRL-EVENT-SCAN-RESULTS
WPA: Key negotiation completed with 00:1b:9e:82:66:27 [PTK=TKIP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 00:1b:9e:82:66:27 completed
(reauth) [id=0 id_str=]
WPA: Group rekeying completed with 00:1b:9e:82:66:27 [GTK=TKIP]
root@beagleboard:~# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:0E:2E:E3:80:9B
inet6 addr: fe80::20e:2eff:fee3:809b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:191 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:34369 (33.5 KiB) TX bytes:2316 (2.2 KiB)
root@beagleboard:~# iwconfig wlan0
wlan0 IEEE 802.11bg ESSID:"TalkTalk520"
Mode:Managed Frequency:2.437 GHz Access Point:
00:1B:9E:82:66:27
Bit Rate=1 Mb/s Tx-Power=15 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Encryption
key:2B44-A85A-1262-F93B-47D9-7B4E-BA66-AFD2-7B52-F1D9-DCAE-1372-9BBF-61A1-C5BB-853A
[2] Security mode:open
Power Management:off
Link Quality=70/100 Signal level:-56 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
root@beagleboard:~#
root@beagleboard:~# route add -net 192.168.1.0/24 gw 192.168.1.1 dev wlan0
SIOCADDRT: Network is unreachable
Regards
Sid.
OK, "ifconfig wlan0 192.168.1.7", now I can ping other hosts and the router.
root@beagleboard:~# route add -net 192.168.1.0/24 gw 192.168.1.1
root@beagleboard:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.1.0 192.168.1.1 255.255.255.0 UG 0 0 0
wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
wlan0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 usb0
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.10.103 0.0.0.0 UG 0 0 0 eth0
It's a work around, just need to figure how to do it via the scripts
without having to use the wpa_supplicant command and manually configure
the interface.
Regards
Sid.
For me this worked without so much issues!. I am using a Dlink which
has the same Ra-link chipset .
my recipe is,
plugin wlan module . you get some usb messages
kill the wpa_supplicant process after booting up. make sure it gets
"killed" for sure. kill and bury.
# wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
Then,
# iwconfig wlan0
should give the link status
# udhcpc -i wlan0
should bring the interface up using dhcp
hope this helps.
-D
Thanks, I shall give it a try.
What I've done to get it running is to use a script in /etc/init.d that
isn't using udhcpc.
#!/bin/sh
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf &
sleep 5
ip route add 192.168.1.0/24 dev wlan0
ifconfig wlan0 192.168.1.7
route add -net 192.168.1.0/24 gw 192.168.1.1
I've also done one for eth0 as the normal scripts seem to ignore
/etc/network/interfaces settings.
Regards
Sid.
Anyone here made the exact guide on how to get the wifi working on beagleboard with Android on top of it.
Many of us are facing problems and it would be good if experience ppl can document a little bit about the process.
-Kaushik