Skip to contentSkip to conversation

libertas: probing for Marvell USB8388 fails

BUG Stefano Brivio 4 participants 13 messages Nov 17, 2007 – Nov 29, 2007

lore
Share & tools
lore
#0 lore raw

Marvell USB8388, running on wireless-2.6. Firmware is:
421964206b0699014a11256ac48dd0a8 /lib/firmware/usb8388.bin

Loading the usb8xxx module, I get:

[203681.684283] usb8xxx: URB in failure status: -71
[203681.814072] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[203683.193744] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[203684.563428] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[203685.933099] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[203687.303025] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[203688.672443] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[203690.042118] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[203691.411789] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[203692.781455] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[203694.151134] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[203695.520804] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[203695.672729] usb8xxx: probe of 1-4:1.0 failed with error -12
[203695.672915] usbcore: registered new interface driver usb8xxx

Any clues?

Signature · 2 lines
Ciao
Stefano
#1 lore raw
Quoted 2 lines

Marvell USB8388, running on wireless-2.6. Firmware is:
421964206b0699014a11256ac48dd0a8 /lib/firmware/usb8388.bin

lsusb says "Bus 001 Device 003: ID 1286:2001". And when I insert the card, I see

usb 1-1: new high speed USB device using ehci_hcd and address 3 usb 1-1: configuration #1 chosen from 1 choice

When I modprobes usb8xxx.ko (I have it in my module blacklist), I get an additional two lines:

libertas: eth1: Marvell WLAN 802.11 adapter
usbcore: registered new interface driver usb8xxx

After this, the USB stick works.

I use this firmware:

$ md5sum /lib/firmware/usb8388.bin
f1dfa0042efd61dc138b01fdf8c0cdab  /lib/firmware/usb8388.bin

As I got this firmware some months ago (and I hardly use this device), I cannot say which download link I've used.

#2 lore raw
Quoted 4 lines · On Mon, 19 Nov 2007 10:08:26 +0100 Holger Schurig…
Quoted 2 lines

Marvell USB8388, running on wireless-2.6. Firmware is:
421964206b0699014a11256ac48dd0a8 /lib/firmware/usb8388.bin

lsusb says "Bus 001 Device 003: ID 1286:2001".

Same here:
P: Vendor=1286 ProdID=2001 Rev=30.06

Quoted 7 lines

I use this firmware:

$ md5sum /lib/firmware/usb8388.bin
f1dfa0042efd61dc138b01fdf8c0cdab  /lib/firmware/usb8388.bin

As I got this firmware some months ago (and I hardly use this device), I cannot say which download link I've used.

As long as probing fails, I doubt that my issue is firmware related...

Any clues about how to debug this further?

Signature · 2 lines
Ciao
Stefano
#3 lore raw
Quoted 2 lines

As long as probing fails, I doubt that my issue is firmware related...

I was not sure that probing failed for you. I saw an URB submit error.

If usb8xxx.ko and libertas.ko get loaded, then it might be a wrong firmware. When the USB driver loads, it first uses URBs to send a helper firmware to the card. Then this helper firmware get's started. And then it sends again URBs to the card, e.g. for setup stuff. Now if the helper firmware is bogus and doesn't accept the URBs to download the real firmware ...

If probing fails and udev doesn't even load usb8xxx.ko, then you have an USB problem and the wireless mailing list might not be of much help to you.

#4 lore raw
Quoted 5 lines · On Mon, 19 Nov 2007 11:44:02 +0100 Holger Schurig…
Quoted 2 lines

As long as probing fails, I doubt that my issue is firmware related...

I was not sure that probing failed for you. I saw an URB submit error.

Right, it looks like I didn't read carefully my logs. :)

Quoted 6 lines

If usb8xxx.ko and libertas.ko get loaded, then it might be a wrong firmware. When the USB driver loads, it first uses URBs to send a helper firmware to the card. Then this helper firmware get's started. And then it sends again URBs to the card, e.g. for setup stuff. Now if the helper firmware is bogus and doesn't accept the URBs to download the real firmware ...

I tried these ones,
4d80059fe935edef77c0745a426f6aab usb8388.bin.olpc 9854fff247b970cc34fd14785384ffeb usb8388.bin.rh
(I found both URLs in some Fedora installation script), but I still get the same error message.

Quoted 3 lines

If probing fails and udev doesn't even load usb8xxx.ko, then you have an USB problem and the wireless mailing list might not be of much help to you.

This is what I get when loading the libertas module with libertas_debug set to 255:

[421322.049447] usb8xxx enter: if_usb_exit_module():1044
[421322.049502] usbcore: deregistering interface driver usb8xxx
[421322.049717] usb8xxx leave: if_usb_exit_module():1054
[421323.407779] libertas enter: libertas_exit_module():1527
[421323.407878] libertas leave: libertas_exit_module():1531
[421327.355499] libertas enter: libertas_init_module():1519
[421327.355618] libertas leave: libertas_init_module():1521
[421330.901950] usb8xxx enter: if_usb_init_module():1028
[421336.502698] usb8xxx: URB in failure status: -71
[421336.622483] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[421337.992174] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[421339.361828] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[421340.731494] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[421342.101171] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[421343.470845] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[421344.840515] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[421346.210185] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[421347.579869] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[421348.949530] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[421350.319203] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[421350.471152] usb8xxx: probe of 1-4:1.0 failed with error -12
[421350.471354] usbcore: registered new interface driver usb8xxx
[421350.471415] usb8xxx leave: if_usb_init_module():1036, ret 0

So I would exclude that an USB problem is going on. Plus, if I load both modules without any firmware being available, usb8xxx tells me that request_firmware() failed:

[421274.018749] usb8xxx enter: if_usb_init_module():1028
[421274.097904] usb8xxx: request_firmware() failed with 0xfffffffe
[421274.097956] usb8xxx: firmware usb8388.bin not found
[421274.217406] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[421274.369547] usb8xxx: probe of 1-4:1.0 failed with error -12
[421274.369732] usbcore: registered new interface driver usb8xxx
[421274.369792] usb8xxx leave: if_usb_init_module():1036, ret 0

--
Ciao
Stefano

#5 lore raw
In reply to Stefano Brivio
Quoted 2 lines · Stefano Brivio

Marvell USB8388, running on wireless-2.6. Firmware is:
421964206b0699014a11256ac48dd0a8 /lib/firmware/usb8388.bin

Try a later firmware from:

http://dev.laptop.org/pub/firmware/libertas/

Is this a usb8388 dev board you got from OLPC?

Dan

Quoted 19 lines

Loading the usb8xxx module, I get:

[203681.684283] usb8xxx: URB in failure status: -71
[203681.814072] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[203683.193744] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[203684.563428] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[203685.933099] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[203687.303025] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[203688.672443] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[203690.042118] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[203691.411789] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[203692.781455] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[203694.151134] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[203695.520804] usb 1-4: reset high speed USB device using ehci_hcd and address 6
[203695.672729] usb8xxx: probe of 1-4:1.0 failed with error -12
[203695.672915] usbcore: registered new interface driver usb8xxx

Any clues?

#6 lore raw
Quoted 7 lines · On Mon, 19 Nov 2007 12:35:07 -0500 Dan Williams <[email protected]> wrote:
Quoted 2 lines · Stefano Brivio

Marvell USB8388, running on wireless-2.6. Firmware is:
421964206b0699014a11256ac48dd0a8 /lib/firmware/usb8388.bin

Try a later firmware from:

http://dev.laptop.org/pub/firmware/libertas/

I tried these ones, it still doesn't work.

Quoted 1 line

Is this a usb8388 dev board you got from OLPC?

Yes.

Signature · 2 lines
Ciao
Stefano
#7 lore raw
Quoted 9 lines · Stefano Brivio
Quoted 6 lines · On Mon, 19 Nov 2007 12:35:07 -0500 Dan Williams <[email protected]> wrote:
Quoted 2 lines · Stefano Brivio

Marvell USB8388, running on wireless-2.6. Firmware is:
421964206b0699014a11256ac48dd0a8 /lib/firmware/usb8388.bin

Try a later firmware from:

Quoted 7 lines
Quoted 1 line

http://dev.laptop.org/pub/firmware/libertas/

I tried these ones, it still doesn't work.

Quoted 1 line

Is this a usb8388 dev board you got from OLPC?

Yes.

Which branch of wireless-2.6 are you running? What kernel version?

Dan

#8 lore raw
Quoted 1 line · On Mon, 19 Nov 2007 15:05:46 -0500 Dan Williams <[email protected]> wrote:

Which branch of wireless-2.6 are you running? What kernel version?

Branch everything, head: 1efded8eb6a7554748ca9486a9902fa6e86ff4a7.

Signature · 2 lines
Ciao
Stefano
#9 lore raw
Quoted 5 lines
Quoted 2 lines

Which branch of wireless-2.6 are you running? What kernel version?

Branch everything, head:
1efded8eb6a7554748ca9486a9902fa6e86ff4a7.

I can't find this.

$ git clone --reference /usr/src/linux-git git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git
$ cd wireless-2.6; git checkout -b everything origin/everything
$ git show 1efded8eb6a7554748ca9486a9902fa6e86ff4a7
fatal: bad object 1efded8eb6a7554748ca9486a9902fa6e86ff4a7

My head is

$ git log | head -1
commit 301df40749bdf144c72637795ba93d82e4b84682
#10 lore raw
Quoted 13 lines · Holger Schurig
Quoted 5 lines
Quoted 2 lines

Which branch of wireless-2.6 are you running? What kernel version?

Branch everything, head:
1efded8eb6a7554748ca9486a9902fa6e86ff4a7.

I can't find this.

$ git clone --reference /usr/src/linux-git git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git
$ cd wireless-2.6; git checkout -b everything origin/everything
$ git show 1efded8eb6a7554748ca9486a9902fa6e86ff4a7
fatal: bad object 1efded8eb6a7554748ca9486a9902fa6e86ff4a7
Quoted 4 lines

My head is

$ git log | head -1
commit 301df40749bdf144c72637795ba93d82e4b84682

That is indeed the latest SHA for #everything. Anyway the SHA on each commit changes upon rebase. It seems this is what happened. You're probably better off checking based on date. I believe Stefano's issues are the same ones as the one I reported. Would it have to do with the old bcdVersion? Does the device need its firmware upgraded first? If so how do we do this?

Luis

#11 lore raw
In reply to Dan Williams
Quoted 1 line · On Mon, 19 Nov 2007 15:05:46 -0500 Dan Williams <[email protected]> wrote:

Which branch of wireless-2.6 are you running? What kernel version?

Any news? Should I provide any additional debugging information? Thank you.

Signature · 2 lines
Ciao
Stefano
#12 lore raw
Quoted 6 lines · Stefano Brivio
Quoted 1 line · On Mon, 19 Nov 2007 15:05:46 -0500 Dan Williams <[email protected]> wrote:

Which branch of wireless-2.6 are you running? What kernel version?

Any news? Should I provide any additional debugging information? Thank you.

I tried this last week with the wireless-2.6/everything libertas bits on 2.6.22 and it worked fine there, with the latest firmware from laptop.org. Is your bcdDevice 3006 you said? You may need to flash the Boot2 firmware.

Dan