WUSB54GC on ARM Cortex

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=5033

sundar

08-10-2008 21:50:31

Hello,
I want to get my ralink based linksys wusb54gc working on my ARM cortex target.I have re-traced all my steps below.In short, I have successfully compiled the hourly rt73 build and installed the module, can do iwlist scan and return networks.can see wlan0 interface in iwconfig. statically assigning an ip or dhclient wlan0 fails.i cannot get an IP.
[b2dhm7980]
compile[/b2dhm7980]
kernel options(Linux Kernel v2.6.22.18-omap1)
networking->wireless->Generic IEEE 802.11 Networking Stack (mac80211),Generic IEEE 802.11 Networking Stack,Software MAC add-on to the IEEE 802.11 networking stack
device drivers->network device support-> Wireless LAN (IEEE 802.11)
device drivers-generic options->firmware upload support.
[b2dhm7980]
install[/b2dhm7980]
copied the rt73.ko into /lib/modules/
copied rt73.bin into /lib/firmware

[b2dhm7980]runtime[/b2dhm7980]
insmod /lib/modules/rt73.ko debug=2
rt73 init
usbcore registered new interface driver rt73

[b2dhm7980]//insert dongle[/b2dhm7980]
musb_context_restore_and_wakeup 348
MUSB Restore Context Start
musb_platform_resume 170
3430-resume()musb_stage0_irq 554 SESSION_REQUEST (b_idle)
omap_set_vbus 97 VBUS a_wait_vrise, devctl 81
musb_context_restore_and_wakeup 399
MUSB Restore Context Done
musb_stage0_irq 697 CONNECT (a_host) devctl 5d
usb 1-1 new full speed USB device using musb_hdrc and address 2
usb 1-1 configuration #1 chosen from 1 choice
hub 1-11.0 USB hub found
hub 1-11.0 4 ports detected
NetworkManager <debug> [1363.913604] nm_hal_device_added() New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_451_2046_
noserial').
NetworkManager <debug> [1364.085205] nm_hal_device_added() New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_451_2046_
noserial_if0').
usb 1-1.1 new full speed USB device using musb_hdrc and address 3
usb 1-1.1 not running at top speed; connect to a high speed hub
usb 1-1.1 Product Compact Wireless-G USB Adapter
usb 1-1.1 Manufacturer Cisco-Linksys
usb 1-1.1 device v13b1 p0020 is not supported
usb 1-1.1 configuration #1 chosen from 1 choice
rt73 idVendor = 0x13b1, idProduct = 0x20
NetworkManager <debug> [1364.617004] nm_hal_device_added() New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_13b1_20_n
oserial').
NetworkManager <debug> [1364.659271] nm_hal_device_added() New device added (hal udi is '/org/freedesktop/Hal/devices/usb_device_ffffffff_
ffffffff_noserial').
NetworkManager <debug> [1364.699951] nm_hal_device_added() New device added (hal udi is '/org/freedesktop/Hal/devices/net_usb_device_fffff
fff_ffffffff_noserial').
rt73 using permanent MAC addr
rt73 Active MAC addr 0021296e2b9a
rt73 Local MAC = 0021296e2b9a
[b2dhm7980]
//configure[/b2dhm7980]
iwconfig wlan0
RT73 WLAN ESSID""
ModeManaged Frequency=2.412 GHz Bit Rate=54 Mb/s
RTS throff Fragment throff
Encryption keyoff
Link Quality=0/100 Signal level-121 dBm Noise level-111 dBm
Rx invalid nwid0 Rx invalid crypt0 Rx invalid frag0
Tx excessive retries0 Invalid misc0 Missed beacon0

iwconfig wlan0 essid linksys_bb300 channel 1
"drivers/usb/core/inode.c creating file '003'"

ifconfig wlan0 up
rt73 driver version - 1.0.3.6 CVS
rt73 using net dev supplied MAC addr
rt73 Active MAC addr 0021296e2b9a
rt73 Local MAC = 0021296e2b9a

ifconfig wlan0
wlan0 Link encapEthernet HWaddr 0021296E2B9A
UP BROADCAST RUNNING MULTICAST MTU1500 Metric1
RX packets74 errors0 dropped3 overruns3 frame3
TX packets88 errors0 dropped0 overruns0 carrier0
collisions0 txqueuelen1000
RX bytes163505 (159.6 KiB) TX bytes7040 (6.8 KiB)

dhclient wlan0
option_space_encapsulate option space agent does not exist, but is configured.
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

# iwconfig --version
iwconfig Wireless-Tools version 29
Compatible with Wireless Extension v11 to v22.

Kernel Currently compiled with Wireless Extension v22.

wlan0 Recommend Wireless Extension v14 or later,
Currently compiled with Wireless Extension v22.


Thats it.I also moved up to a later kernel 2.6.24, where I had support for ralink in kernel.That did not work for me either.I am also confused on which one is the right driver for wusb54gc.There is legacy rt73 and rtx00 in the latest kernel versions.Thanks in advance for any kind of help.

P.SI only have support for iwconfig ,iwpriv,iwlist &ifconfig.I do not have /etc/network/interfaces file.

sundar

08-10-2008 21:56:16

one more data point
"route " does not have any entry for wlan0.This is why my dhcp fails.I do not know why an entry is getting added when i bring up the netwrork.If I manually add an network

route add -net 192.168.1.0 netmask 255.255.255.0 wlan0

i bring down the ethernet too and nothing works.

thanks.

Vern

10-10-2008 15:37:22

Not having /etc/network/interfaces is surprising. On my Debian system it is used by the netbase and ifupdown packages. Basically, if an entry has a netmask with a zeros component (e.g. 255.255.255.0), it gets added to the route table. Otherwise you have to do it manually.

Thanks,

sundar

10-10-2008 15:46:13

>>Basically, if an entry has a netmask with a zeros component (e.g. 255.255.255.0), it gets >>added to the route table. Otherwise you have to do it manually.

thanks for the reply.I am naive on networking.Am I appending the route table in the right way or there's something wrong in what I am doing?

Vern

11-10-2008 17:20:11

Hi sundar,

"whatis", "apropos", and "man" are your friends. Try "man route", "man ifconfig" and "man iwconfig".

Thanks,

sundar

16-10-2008 22:22:39

route add -net 192.168.1.0 netmask 255.255.255.0 wlan0
route add 192.168.1.0 gw 192.168.1.1 wlan0

i added these entries to my route and it still cannot get dhcp.

iwlist wlan0 scan works and i can consistently get same scanned results.

advise please?

Vern

17-10-2008 01:22:22

Hi sundar,

One thing you might try is to find out if the MAC address of your adapter is accepted by your dhcp server.

In general, distributions vary, and if you have a system administrator, you should ask them.

Thanks,