Mladen Horvat | 29 Jul 2009 13:32

zd1211rw couldn't load firmware. Error number -145 with Kernel 2.6.30

Hello all,

i am running Kernel 2.6.30 on a embedded linux stb and trying with two
different zd1211b usb wlan sticks to get the zd1211rw driver running.

just as a remark:  an rt73usb stick works without problems.

Dont know what you need. so here is some informations:

uname -a
Linux dm7025 2.6.30-dm7025 #1 Tue Jul 28 20:25:28 CEST 2009 mips unknown

lsmod
    Tainted: P
arc4 1536 2 - Live 0xc05c5000
ecb 2880 2 - Live 0xc05bc000
cryptomgr 87872 0 - Live 0xc059d000
crypto_hash 11840 1 cryptomgr, Live 0xc057a000
crypto_blkcipher 13232 2 ecb,cryptomgr, Live 0xc056c000
aead 7168 1 cryptomgr, Live 0xc0560000
pcompress 1952 1 cryptomgr, Live 0xc0558000
crypto_algapi 18176 7
arc4,ecb,cryptomgr,crypto_hash,crypto_blkcipher,aead,pcompress, Live 0xc054a000
zd1211rw 78736 0 - Live 0xc0527000
mac80211 174976 1 zd1211rw, Live 0xc04d6000
crypto 13360 8
ecb,cryptomgr,crypto_hash,crypto_blkcipher,aead,pcompress,crypto_algapi,
mac80211, Live
0xc048c000
cfg80211 79216 2 zd1211rw,mac80211, Live 0xc046e000
(Continue reading)

Hin-Tak Leung | 29 Jul 2009 15:39
Picon
Favicon

Re: zd1211rw couldn't load firmware. Error number -145 with Kernel 2.6.30

-145 is time out ('Use the source, Luke!'). mips is a bit exotic, not many people have that, and probably not
very well-tested; could try compat-wireless to see if there is any endian fixes. The other thing is, ohci
is a bit slow, and the ZyDAS chip draws a fair amount of power and doesn't really work on bus-powered usb 1.1
host, if that's what you have. I don't know if you would get a 'not enough power' message - I seem to recall I
did. 

--- On Wed, 29/7/09, Mladen Horvat <acid-burn <at> opendreambox.org> wrote:

> From: Mladen Horvat <acid-burn <at> opendreambox.org>
> Subject: [zd1211-devs] zd1211rw couldn't load firmware. Error number -145 with Kernel 2.6.30
> To: zd1211-devs <at> lists.sourceforge.net
> Date: Wednesday, 29 July, 2009, 12:32 PM
> Hello all,
> 
> i am running Kernel 2.6.30 on a embedded linux stb and
> trying with two
> different zd1211b usb wlan sticks to get the zd1211rw
> driver running.
> 
> just as a remark:  an rt73usb stick works without
> problems.
> 
> Dont know what you need. so here is some informations:
> 
> uname -a
> Linux dm7025 2.6.30-dm7025 #1 Tue Jul 28 20:25:28 CEST 2009
> mips unknown
> 
> lsmod
>     Tainted: P
(Continue reading)

Mladen Horvat | 29 Jul 2009 15:53

Re: zd1211rw couldn't load firmware. Error number -145 with Kernel 2.6.30

Hin-Tak Leung <hintak_leung <at> yahoo.co.uk> writes:

> 
> -145 is time out ('Use the source, Luke!'). mips is a bit exotic, not many
people have that, and probably not
> very well-tested; could try compat-wireless to see if there is any endian
fixes. The other thing is, ohci
> is a bit slow, and the ZyDAS chip draws a fair amount of power and doesn't
really work on bus-powered usb 1.1
> host, if that's what you have. I don't know if you would get a 'not enough
power' message - I seem to recall I
> did. 
> 

Hi Hin-Tak

thanks for your fast answer.

The same stb only booted with a rt73usb wlan stick attached has no
problems with the firmware upload and also wpa-supplicant connection and
everything works on wlan0.  only problem are these two zd1211b usb sticks in the
zd1211rw driver i have here.

the same stb running a kernel 2.6.12 and the original vendor driver 2.22.00
works without problems..

i will take a look what happens with an externally powered usb hub.

Hope this helps. 
If any other logs are needed i will provide them.
(Continue reading)

Mladen Horvat | 29 Jul 2009 16:20

Re: zd1211rw couldn't load firmware. Error number -145 with Kernel 2.6.30

Hin-Tak Leung <hintak_leung <at> yahoo.co.uk> writes:

> 
> -145 is time out ('Use the source, Luke!'). mips is a bit exotic, not many
people have that, and probably not
> very well-tested; could try compat-wireless to see if there is any endian
fixes. The other thing is, ohci
> is a bit slow, and the ZyDAS chip draws a fair amount of power and doesn't
really work on bus-powered usb 1.1
> host, if that's what you have. I don't know if you would get a 'not enough
power' message - I seem to recall I
> did. 
> 

Ok. Just added a external usb hub but now there are even more errors ;-)
http://pastebin.com/m37023ceb
perhaps it helps.

regards

Mladen

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Hin-Tak Leung | 29 Jul 2009 16:30
Picon
Favicon

Re: zd1211rw couldn't load firmware. Error number -145 with Kernel 2.6.30

--- On Wed, 29/7/09, Mladen Horvat <acid-burn <at> opendreambox.org> wrote:

> Hi Hin-Tak
> 
> thanks for your fast answer.
> 
> The same stb only booted with a rt73usb wlan stick attached
> has no
> problems with the firmware upload and also wpa-supplicant
> connection and
> everything works on wlan0.  only problem are these two
> zd1211b usb sticks in the
> zd1211rw driver i have here.
> 
> the same stb running a kernel 2.6.12 and the original
> vendor driver 2.22.00
> works without problems..
> 
> i will take a look what happens with an externally powered
> usb hub.
> 
> Hope this helps. 
> If any other logs are needed i will provide them.

Well, if the vendor driver 2.22.00 works with 2.6.12, you can grab my patch set (sorry it is 'pathset' in the
web location - I made a mistake in May and haven't fixed it yet):
http://htl10.users.sourceforge.net/ZD1211LnxDrv_2_22_0_0_2009May_pathset/ 

which would take you up to 2.6.29. I haven't tried 2.6.30 as I already moved to the vendor driver 3.0 by then.
You need the other patch set
(Continue reading)

Mladen Horvat | 29 Jul 2009 16:59

Re: zd1211rw couldn't load firmware. Error number -145 with Kernel 2.6.30

Hin-Tak Leung <hintak_leung <at> yahoo.co.uk> writes:

> 
> --- On Wed, 29/7/09, Mladen Horvat <acid-burn <at> opendreambox.org> wrote:
> 
> > Hi Hin-Tak
> > 
> > thanks for your fast answer.
> > 
> > The same stb only booted with a rt73usb wlan stick attached
> > has no
> > problems with the firmware upload and also wpa-supplicant
> > connection and
> > everything works on wlan0.  only problem are these two
> > zd1211b usb sticks in the
> > zd1211rw driver i have here.
> > 
> > the same stb running a kernel 2.6.12 and the original
> > vendor driver 2.22.00
> > works without problems..
> > 
> > i will take a look what happens with an externally powered
> > usb hub.
> > 
> > Hope this helps. 
> > If any other logs are needed i will provide them.
> 
> Well, if the vendor driver 2.22.00 works with 2.6.12, you can grab my patch
set (sorry it is 'pathset' in the
> web location - I made a mistake in May and haven't fixed it yet):
(Continue reading)

Hin-Tak Leung | 29 Jul 2009 17:27
Picon
Favicon

Re: zd1211rw couldn't load firmware. Error number -145 with Kernel 2.6.30

--- On Wed, 29/7/09, Mladen Horvat <acid-burn <at> opendreambox.org> wrote:

> Hi again,
> 
> perhaps this is an idea to try the vendor 3.0 driver with
> the new kernel.
> 
> Just a question. Is the driver using the new mac80211
> wireless interface so i
> can use it over wpa supllicant 0.6.9 and the build-in wext
> interface ?
> 
> Just saw sth about wpa-s 0.4.8 and was wondering if this
> will work ?

old stack, but it does wext and should just work regardless of wpa supplicant version.
(I don't use that - I run it in AP mode). Basically whatever you did with 2..22 should just work with 3.0 - only
better and less buggy :-).

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Hin-Tak Leung | 30 Jul 2009 10:39
Picon
Favicon

Re: zd1211rw couldn't load firmware. Error number -145 with Kernel 2.6.30

Do not write directly - all traffic should go into the mailing list archive.. That's very selfish behavior.
I do not work for you and I'll have to charge you on private consultancy rate for that.

Your kernel headers do not match your kernel. (supposedly 2.6.30), nothing to do with 
compiler version.

--- On Thu, 30/7/09, acid-burn <acid-burn <at> opendreambox.org> wrote:

> Hello,
> 
> thought i write you directlyand not bother the list with
> compile problems..
> 
> i am currently trying to compile the 3.0 src with your
> patches.
> 
> I get a bunch of warnings about undefined things and
> errors.
> 
> Could this be related on the used gcc compiler ?
> 
> I have to use gcc-4.4.0
> 
> 
> Perhaps you have an idea ?
> 
> Regards
> 
> Mladen

(Continue reading)

Mladen Horvat | 30 Jul 2009 14:15

Re: zd1211rw couldn't load firmware. Error number -145 with Kernel 2.6.30

Hin-Tak Leung <hintak_leung <at> yahoo.co.uk> writes:

> Well, if the vendor driver 2.22.00 works with 2.6.12, you can grab my patch
set (sorry it is 'pathset' in the
> web location - I made a mistake in May and haven't fixed it yet):
> http://htl10.users.sourceforge.net/ZD1211LnxDrv_2_22_0_0_2009May_pathset/ 
> 
> which would take you up to 2.6.29. I haven't tried 2.6.30 as I already moved
to the vendor driver 3.0 by then.
> You need the other patch set
> 
> http://htl10.users.sourceforge.net/LinuxUSB_AR2524-3.0.0.56_2009May_pathset/
> to take you up to 2.6.29, and the last one (attached) to take you to 2.6.30..
It may also work for the 2.22
> driver but I haven't tried, but it will at least give you some ideas if you
like to make the vendor 2.22 driver
> work on 2.6.30.
> 
> The 3.0 vendor driver is at:
>
http://www.kernel.org/pub/linux/kernel/people/mcgrof/zd1211/LinuxUSB_AR2524-3.0.0.56.tgz
> 
> Hmm, the firmware upload problem seems to have come up from time to time...
> 
> if either versions of the vendor drivers work (but the rw driver does not) I
like to know. You will need to set
> up the blacklist to stop udev from autoloading kernel modules, but presumably
you already know that.
> 

(Continue reading)

Hin-Tak Leung | 30 Jul 2009 15:27
Picon
Favicon

Re: zd1211rw couldn't load firmware. Error number -145 with Kernel 2.6.30

--- On Thu, 30/7/09, Mladen Horvat <acid-burn <at> opendreambox.org> wrote:

> Ok, finally managed with the help of a friend to compile
> the vender driver
> 3.0.0.56 with the mips 2.6.30 kernel i use here.
> Here is a patch that was needed to get it finally compiled
> under 2.6.30.
> http://pastebin.com/m17687d4e

Hmm, the net_ops is new and should only generates a warning with vanilla 2.6.30 . Your kernel source tree is
not vanilla 2.6.30, is it? If you need the net_ops change, your tree is probably closer to 2.6.31 rcX .
(since it generates a warning on ifconfig up, I know about it and it is just not urgent/immediate yet in 2.6.30)

> Firmware Upload works !!!  and interface comes up as
> ath0.

Yes, the renaming is a visible change.

> 
> But: looks like the driver doesnt work or like my
> WPA-Supplicant 0.6.9
> 
> Here is a Bootlog and outputs that come:  http://pastebin.com/m232e0dfa

The log looks okay to me... sorry I only use it in AP mode & with WEP, can't help you there.

I did find the driver in AP mode has a curious behavior: it won't talk to a client after loading until I do
something like 'iwlist scan' or 'iwpriv card_reset' first. (the latter hangs the machine 1/2 of the time,
but iwlist scan is quite reliable and I only need to do it once per reboot of the AP which isn't bad). May be you
can try iwlist scan as a client also. 
(Continue reading)


Gmane