linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] libertas: probing for Marvell USB8388 fails
@ 2007-11-17  1:35 Stefano Brivio
  2007-11-19  9:08 ` Holger Schurig
  2007-11-19 17:35 ` Dan Williams
  0 siblings, 2 replies; 13+ messages in thread
From: Stefano Brivio @ 2007-11-17  1:35 UTC (permalink / raw)
  To: linux-wireless

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?


-- 
Ciao
Stefano

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [BUG] libertas: probing for Marvell USB8388 fails
  2007-11-17  1:35 [BUG] libertas: probing for Marvell USB8388 fails Stefano Brivio
@ 2007-11-19  9:08 ` Holger Schurig
  2007-11-19  9:21   ` Stefano Brivio
  2007-11-19 17:35 ` Dan Williams
  1 sibling, 1 reply; 13+ messages in thread
From: Holger Schurig @ 2007-11-19  9:08 UTC (permalink / raw)
  To: linux-wireless; +Cc: Stefano Brivio

> 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.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [BUG] libertas: probing for Marvell USB8388 fails
  2007-11-19  9:08 ` Holger Schurig
@ 2007-11-19  9:21   ` Stefano Brivio
  2007-11-19 10:44     ` Holger Schurig
  0 siblings, 1 reply; 13+ messages in thread
From: Stefano Brivio @ 2007-11-19  9:21 UTC (permalink / raw)
  To: Holger Schurig; +Cc: linux-wireless, libertas-dev, Dan Williams

On Mon, 19 Nov 2007 10:08:26 +0100
Holger Schurig <hs4233@mail.mn-solutions.de> wrote:

> > 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

> 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?


-- 
Ciao
Stefano

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [BUG] libertas: probing for Marvell USB8388 fails
  2007-11-19  9:21   ` Stefano Brivio
@ 2007-11-19 10:44     ` Holger Schurig
  2007-11-19 11:44       ` Stefano Brivio
  0 siblings, 1 reply; 13+ messages in thread
From: Holger Schurig @ 2007-11-19 10:44 UTC (permalink / raw)
  To: linux-wireless; +Cc: Stefano Brivio, libertas-dev, Dan Williams

> 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.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [BUG] libertas: probing for Marvell USB8388 fails
  2007-11-19 10:44     ` Holger Schurig
@ 2007-11-19 11:44       ` Stefano Brivio
  0 siblings, 0 replies; 13+ messages in thread
From: Stefano Brivio @ 2007-11-19 11:44 UTC (permalink / raw)
  To: Holger Schurig; +Cc: linux-wireless, libertas-dev, Dan Williams

On Mon, 19 Nov 2007 11:44:02 +0100
Holger Schurig <hs4233@mail.mn-solutions.de> wrote:

> > 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. :)

> 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.

> 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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [BUG] libertas: probing for Marvell USB8388 fails
  2007-11-17  1:35 [BUG] libertas: probing for Marvell USB8388 fails Stefano Brivio
  2007-11-19  9:08 ` Holger Schurig
@ 2007-11-19 17:35 ` Dan Williams
  2007-11-19 18:07   ` Stefano Brivio
  1 sibling, 1 reply; 13+ messages in thread
From: Dan Williams @ 2007-11-19 17:35 UTC (permalink / raw)
  To: Stefano Brivio; +Cc: linux-wireless

On Sat, 2007-11-17 at 02:35 +0100, Stefano Brivio wrote:
> 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


> 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?
> 
> 


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [BUG] libertas: probing for Marvell USB8388 fails
  2007-11-19 17:35 ` Dan Williams
@ 2007-11-19 18:07   ` Stefano Brivio
  2007-11-19 20:05     ` Dan Williams
  0 siblings, 1 reply; 13+ messages in thread
From: Stefano Brivio @ 2007-11-19 18:07 UTC (permalink / raw)
  To: Dan Williams; +Cc: linux-wireless

On Mon, 19 Nov 2007 12:35:07 -0500
Dan Williams <dcbw@redhat.com> wrote:

> On Sat, 2007-11-17 at 02:35 +0100, Stefano Brivio wrote:
> > 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.

> Is this a usb8388 dev board you got from OLPC?

Yes.


-- 
Ciao
Stefano

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [BUG] libertas: probing for Marvell USB8388 fails
  2007-11-19 18:07   ` Stefano Brivio
@ 2007-11-19 20:05     ` Dan Williams
  2007-11-19 20:31       ` Stefano Brivio
  2007-11-29  8:05       ` Stefano Brivio
  0 siblings, 2 replies; 13+ messages in thread
From: Dan Williams @ 2007-11-19 20:05 UTC (permalink / raw)
  To: Stefano Brivio; +Cc: linux-wireless

On Mon, 2007-11-19 at 19:07 +0100, Stefano Brivio wrote:
> On Mon, 19 Nov 2007 12:35:07 -0500
> Dan Williams <dcbw@redhat.com> wrote:
> 
> > On Sat, 2007-11-17 at 02:35 +0100, Stefano Brivio wrote:
> > > 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.
> 
> > Is this a usb8388 dev board you got from OLPC?
> 
> Yes.

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

Dan


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [BUG] libertas: probing for Marvell USB8388 fails
  2007-11-19 20:05     ` Dan Williams
@ 2007-11-19 20:31       ` Stefano Brivio
  2007-11-29  9:20         ` Holger Schurig
  2007-11-29  8:05       ` Stefano Brivio
  1 sibling, 1 reply; 13+ messages in thread
From: Stefano Brivio @ 2007-11-19 20:31 UTC (permalink / raw)
  To: Dan Williams; +Cc: linux-wireless

On Mon, 19 Nov 2007 15:05:46 -0500
Dan Williams <dcbw@redhat.com> wrote:

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

Branch everything, head: 1efded8eb6a7554748ca9486a9902fa6e86ff4a7.


-- 
Ciao
Stefano

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [BUG] libertas: probing for Marvell USB8388 fails
  2007-11-19 20:05     ` Dan Williams
  2007-11-19 20:31       ` Stefano Brivio
@ 2007-11-29  8:05       ` Stefano Brivio
  2007-11-29 19:35         ` Dan Williams
  1 sibling, 1 reply; 13+ messages in thread
From: Stefano Brivio @ 2007-11-29  8:05 UTC (permalink / raw)
  To: Dan Williams; +Cc: linux-wireless, libertas-dev

On Mon, 19 Nov 2007 15:05:46 -0500
Dan Williams <dcbw@redhat.com> wrote:

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

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


-- 
Ciao
Stefano

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [BUG] libertas: probing for Marvell USB8388 fails
  2007-11-19 20:31       ` Stefano Brivio
@ 2007-11-29  9:20         ` Holger Schurig
  2007-11-29 13:10           ` Luis R. Rodriguez
  0 siblings, 1 reply; 13+ messages in thread
From: Holger Schurig @ 2007-11-29  9:20 UTC (permalink / raw)
  To: linux-wireless; +Cc: Stefano Brivio, Dan Williams

> > 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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [BUG] libertas: probing for Marvell USB8388 fails
  2007-11-29  9:20         ` Holger Schurig
@ 2007-11-29 13:10           ` Luis R. Rodriguez
  0 siblings, 0 replies; 13+ messages in thread
From: Luis R. Rodriguez @ 2007-11-29 13:10 UTC (permalink / raw)
  To: Holger Schurig; +Cc: linux-wireless, Stefano Brivio, Dan Williams

On Nov 29, 2007 4:20 AM, Holger Schurig <hs4233@mail.mn-solutions.de> wrote:
> > > 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

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [BUG] libertas: probing for Marvell USB8388 fails
  2007-11-29  8:05       ` Stefano Brivio
@ 2007-11-29 19:35         ` Dan Williams
  0 siblings, 0 replies; 13+ messages in thread
From: Dan Williams @ 2007-11-29 19:35 UTC (permalink / raw)
  To: Stefano Brivio; +Cc: linux-wireless, libertas-dev

On Thu, 2007-11-29 at 09:05 +0100, Stefano Brivio wrote:
> On Mon, 19 Nov 2007 15:05:46 -0500
> Dan Williams <dcbw@redhat.com> 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



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2007-11-29 19:40 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-17  1:35 [BUG] libertas: probing for Marvell USB8388 fails Stefano Brivio
2007-11-19  9:08 ` Holger Schurig
2007-11-19  9:21   ` Stefano Brivio
2007-11-19 10:44     ` Holger Schurig
2007-11-19 11:44       ` Stefano Brivio
2007-11-19 17:35 ` Dan Williams
2007-11-19 18:07   ` Stefano Brivio
2007-11-19 20:05     ` Dan Williams
2007-11-19 20:31       ` Stefano Brivio
2007-11-29  9:20         ` Holger Schurig
2007-11-29 13:10           ` Luis R. Rodriguez
2007-11-29  8:05       ` Stefano Brivio
2007-11-29 19:35         ` Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).