USB wifi using zd1211rw Driver error 110

Hi all,

I recently downloaded the newest Angstrom demo and kernel and now my
Trendnet TEW-429UB usb wifi stick won't work with it. It worked with
the old Angstrom demo that I was using from last November-ish.

Here's the serial data when I plug it into the powered usb hub

http://pastebin.com/m4873829f

/sbin/iwconfig seems to work fine, but when I call /sbin/udhcpc -i
wlan0, it complains:

"# /sbin/udhcpc -i wlan0
udhcpc (v1.13.2) started
run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1
SIOCSIFFLAGS: No such file or directory
Sending discover...
udhcpc: sendto: Network is down
Sending discover...
udhcpc: sendto: Network is down
..."

This worked on the old Angstrom demo filesystem and kernel that I was
using way back around November, but I need some of the features from
the newer demo and kernel such as the 3D graphics. Can anyone help me
get the usb wifi stick working again? Perhaps I'm just missing a
module?

Thanks!

-Dan

Hello …

Have some problem with Angstrom / wifi stick ( zd1211 ) too … Works fine with Mojo.

When you got error ( load firmware ) , Have you try to unplug / plug the stick ? sometimes it works.
And you can take a look to this thread : http://groups.google.com/group/beagleboard/browse_thread/thread/f92269061378b30b/427fe52cdb34b7fa

(sorry for my poor english)

David [a.k.a] ADcomp
http://www.ad-comp.be/

2009/3/3 Dan <DanK2340@gmail.com>

Hello ..

Have some problem with Angstrom / wifi stick ( zd1211 ) too .. Works fine
with Mojo.

When you got error ( load firmware ) , Have you try to unplug / plug the
stick ? sometimes it works.
And you can take a look to this thread :http://groups.google.com/group/beagleboard/browse_thread/thread/f9226

(sorry for my poor english)

David [a.k.a] ADcomphttp://www.ad-comp.be/

When I unplug it and plug it back in, I get the errors in my pastebin
link. That's what I had to do before this newer kernel/filesystem.
Unplug it and plug it back in - to make it work. Now it throws a fit
with Error number -110.

Do you read jeanluis post ? [ http://groups.google.com/group/beagleboard/msg/011d6752eae2787d ]

2009/3/3 Dan <DanK2340@gmail.com>

I just tried overwriting the zd1211b_uphr on the BeagleBoard from my
ubuntu 8.10 distribution. It didn't work, same errors (-110) when I
plug it in after boot up. Now, if I have the usb wifi stick plugged in
when I turn on the BeagleBoard, it won't even display anything on the
lcd monitor anymore after the boot screen.

Any other ideas?

Have you tried inserting a powered, high-speed hub in the middle to make sure the adapter isn't taking too much power away from the BeagleBoard?

Yes sir. I used to have this wifi stick working back on an old 2.6.26
kernel and filesystem pre-SGX driver release back in November via a
self powered high-speed usb 2.0 hub. I replaced the kernel and
filesystem with the newest from the Angstrom demo and now I'm getting
error -110s, detailed here:

http://pastebin.com/m4873829f

I even tried replacing all of the files in /lib/firmware/zd1211/ with
the files from the SD card that I had working at the end of last year,
but that yields the same junk.

Out of curiosity, would a sinister u-boot affect this in anyway?

Hello,

Very strange … I just try Ubuntu port (jaunty) and wifi works fine …
[ note : ubuntu is slow … very slow :frowning: … but wifi and keyboard works fine ]

I use the same kernel / firmware. I don’t know why but sometimes , Firmware load is ok , I can scan wireless AP , But impossible to stay connected !!
→ disassociating by local choice

If someone have a tips …

root@beagleboard:~# usb 2-1.3: USB disconnect, address 5
usb 2-1.3: new high speed USB device using musb_hdrc and address 7
usb 2-1.3: device v0ace p1215 is not supported
usb 2-1.3: configuration #1 chosen from 1 choice
usb 2-1.3: reset high speed USB device using musb_hdrc and address 7
zd1211rw 2-1.3:1.0: phy1
usb 2-1.3: firmware: requesting zd1211/zd1211b_ub
usb 2-1.3: firmware: requesting zd1211/zd1211b_uphr
------------[ cut here ]------------
WARNING: at drivers/usb/musb/musb_host.c:128 musb_h_tx_flush_fifo+0x94/0xd4()
Could not flush host TX13 fifo: csr: 0103
Modules linked in: ipv6
[] (dump_stack+0x0/0x14) from [] (warn_slowpath+0x5c/0x78)
[] (warn_slowpath+0x0/0x78) from [] (musb_h_tx_flush_fifo+0x94/0xd4)
r3:0000000d r2:c04bd521
r6:ffffffff r5:00000103 r4:00000103
[] (musb_h_tx_flush_fifo+0x0/0xd4) from [] (musb_cleanup_urb+0xd4/0x120)
[] (musb_cleanup_urb+0x0/0x120) from [] (musb_urb_dequeue+0x140/0x184)
[] (musb_urb_dequeue+0x0/0x184) from [] (unlink1+0xc8/0xd4)
[] (unlink1+0x0/0xd4) from [] (usb_hcd_unlink_urb+0x68/0x84)
r8:c6821c64 r7:fffffffe r6:c7bd46c0 r5:a0000013 r4:00000000
[] (usb_hcd_unlink_urb+0x0/0x84) from [] (usb_kill_urb+0x4c/0xe8)
r7:000003e8 r6:c7bd46c0 r5:00000000 r4:00000000
[] (usb_kill_urb+0x0/0xe8) from [] (usb_start_wait_urb+0x80/0xac)
r7:000003e8 r6:c7bd46c0 r5:00000000 r4:00000000
[] (usb_start_wait_urb+0x0/0xac) from [] (usb_bulk_msg+0xec/0xf4)
r8:00000004 r7:c0020700 r6:c7bbb000 r5:00000000 r4:c7b8d158
[] (usb_bulk_msg+0x0/0xf4) from [] (zd_usb_ioread16v+0x120/0x214)
[] (zd_usb_ioread16v+0x0/0x214) from [] (zd_chip_init_hw+0x78/0x63c)
[] (zd_chip_init_hw+0x0/0x63c) from [] (zd_mac_init_hw+0x30/0xe0)
[] (zd_mac_init_hw+0x0/0xe0) from [] (zd_usb_init_hw+0x74/0x94)
r7:00001002 r6:00000000 r5:c7018e00 r4:00000000
[] (zd_usb_init_hw+0x0/0x94) from [] (zd_op_start+0x2c/0x144)
r6:c7bca800 r5:c7018e00 r4:00000000
[] (zd_op_start+0x0/0x144) from [] (ieee80211_open+0x2e8/0x768)
r6:c7bca800 r5:c70181c0 r4:00000000
[] (ieee80211_open+0x0/0x768) from [] (dev_open+0x9c/0x100)
[] (dev_open+0x0/0x100) from [] (dev_change_flags+0xac/0x184)
r4:c7bca800
[] (dev_change_flags+0x0/0x184) from [] (devinet_ioctl+0x2f0/0x704)
r7:c6821e68 r6:c7159860 r5:00000000 r4:00000001
[] (devinet_ioctl+0x0/0x704) from [] (inet_ioctl+0xd0/0x100)
[] (inet_ioctl+0x0/0x100) from [] (sock_ioctl+0x204/0x25c)
r4:c7ae16c0
[] (sock_ioctl+0x0/0x25c) from [] (vfs_ioctl+0x38/0x7c)
r6:be811b90 r5:00008914 r4:c7ae16c0
[] (vfs_ioctl+0x0/0x7c) from [] (do_vfs_ioctl+0x420/0x464)
r6:00008914 r5:c7ae16c0 r4:00000006
[] (do_vfs_ioctl+0x0/0x464) from [] (sys_ioctl+0x40/0x64)
[] (sys_ioctl+0x0/0x64) from [] (ret_fast_syscall+0x0/0x2c)
r7:00000036 r6:00001003 r5:00054b00 r4:00054b00
—[ end trace 7d0a7b5fb1b1bbe2 ]—
usb 2-1.3: firmware: requesting zd1211/zd1211b_ub
usb 2-1.3: firmware: requesting zd1211/zd1211b_uphr
zd1211rw 2-1.3:1.0: firmware version 4725
zd1211rw 2-1.3:1.0: zd1211b chip 0ace:1215 v4810 high 00-02-72 AL2230_RF pa0 g–NS
cfg80211: Calling CRDA for country: DE
ADDRCONF(NETDEV_UP): wlan0: link is not ready
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

root@beagleboard:~# ifconfig wlan0 up
root@beagleboard:~# dmesg | tail
cfg80211: Calling CRDA for country: DE
ADDRCONF(NETDEV_UP): wlan0: link is not ready
wlan0: authenticate with AP 00:c0:49:54:eb:be
wlan0: authenticated
wlan0: associate with AP 00:c0:49:54:eb:be
wlan0: RX AssocResp from 00:c0:49:54:eb:be (capab=0x421 status=0 aid=3)
wlan0: associated
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
wlan0: disassociating by local choice (reason=3)
wlan0: no IPv6 routers present
root@beagleboard:~# iwlist wlan0 scan
wlan0 Scan completed :
Cell 01 - Address: 00:C0:49:54:EB:BE
ESSID:“ADCOMP”
Mode:Master
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=100/100 Signal level:34/100
Encryption key:off
IE: Unknown: 00064144434F4D50
IE: Unknown: 010482848B96
IE: Unknown: 03010B
IE: Unknown: 2A0102
IE: Unknown: 32080C1218243048606C
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Extra:tsf=000001583fd9b1dc
Extra: Last beacon: 39ms ago
root@beagleboard:~# iwconfig wlan0 essid “ADCOMP”
root@beagleboard:~# iwconfig
lo no wireless extensions.

usb0 no wireless extensions.

wmaster0 no wireless extensions.

wlan0 IEEE 802.11bg ESSID:“ADCOMP”
Mode:Managed Frequency:2.462 GHz Access Point: Not-Associated
Tx-Power=27 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:~# dmesg | tail
wlan0: disassociating by local choice (reason=3)
wlan0: no IPv6 routers present
wlan0: direct probe to AP 00:c0:49:54:eb:be try 1
wlan0 direct probe responded
wlan0: authenticate with AP 00:c0:49:54:eb:be
wlan0: authenticated
wlan0: associate with AP 00:c0:49:54:eb:be
wlan0: RX AssocResp from 00:c0:49:54:eb:be (capab=0x421 status=0 aid=3)
wlan0: associated
wlan0: disassociating by local choice (reason=3)
root@beagleboard:~#

(sorry for my poor english)

Bye

David [a.k.a] ADcomp
http://www.ad-comp.be/

Any issue for this ?

reason=3 is exactly what it says, “local choice” . That means you
decided to disconnect, or some software makes that choice for you… It
is most likely NetworkManager/wpa_supplicant. Try to make sure they
are not running, or at least configured to help you rather than mess
with you. Probably not a kernel problem.

Bye …

root@beagleboard:~# dmesg | tail
wlan0: disassociating by local choice (reason=3)
wlan0: no IPv6 routers present
wlan0: direct probe to AP 00:c0:49:54:eb:be try 1
wlan0 direct probe responded
wlan0: authenticate with AP 00:c0:49:54:eb:be
wlan0: authenticated
wlan0: associate with AP 00:c0:49:54:eb:be
wlan0: RX AssocResp from 00:c0:49:54:eb:be (capab=0x421 status=0 aid=3)
wlan0: associated
wlan0: disassociating by local choice (reason=3)
root@beagleboard:~#

Hi David,

Did you ever manage to get this working? I'm currently stuck at a very
similar point, except I'm using a Linksys WUSB54GC with the ra73.bin
firmware...

It seems to recognize the stick and the stick seems to associate with the
Access Point, but the shortly after disassociates with "reason=3" as in your
case. I have currently no clue why, which is why I would like to hear if you
managed to get up running?...

Best regards and thanks in advance
  Søren