Krzysztof Stankiewicz | 13 May 2011 10:28
Picon
Favicon

usb 1-1: Could not load firmware file zd1211/zd1211b_ub. Error number -2

Im developing on LPC3250 NPX Embedded system, Ive placed the firmawere where instructed,
and I keep getting this error no matter what I do?
Ive gone as far ast tracing the kernel stack but makes no sense to me.. can anyone help?


usb 1-1: Could not load firmware file zd1211/zd1211b_ub. Error number -2
zd1211rw 1-1:1.0: couldn't load firmware. Error number -2
ifconfig: SIOCSIFFLAGS: No such file or directory
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
Hin-Tak Leung | 13 May 2011 12:22
Picon
Favicon

Re: usb 1-1: Could not load firmware file zd1211/zd1211b_ub. Error number -2

ownership of the firmware files (and the containing directories)?

Krzysztof Stankiewicz wrote:
>   Im developing on LPC3250 NPX Embedded system, Ive placed the firmawere 
> where instructed,
> and I keep getting this error no matter what I do?
> Ive gone as far ast tracing the kernel stack but makes no sense to me.. 
> can anyone help?
> 
> 
> usb 1-1: Could not load firmware file zd1211/zd1211b_ub. Error number -2
> zd1211rw 1-1:1.0: couldn't load firmware. Error number -2
> ifconfig: SIOCSIFFLAGS: No such file or directory

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
Michael Tokarev | 13 May 2011 12:37
Picon

Re: usb 1-1: Could not load firmware file zd1211/zd1211b_ub. Error number -2

13.05.2011 14:22, Hin-Tak Leung wrote:
> ownership of the firmware files (and the containing directories)?

The firmware loading is done from a root process, so permissions
are largely irrelevant.  Especially with this error number
(-2 = ENOENT No such file or directory).

> Krzysztof Stankiewicz wrote:
>>   Im developing on LPC3250 NPX Embedded system, Ive placed the firmawere 
>> where instructed,
>> and I keep getting this error no matter what I do?
>> Ive gone as far ast tracing the kernel stack but makes no sense to me.. 
>> can anyone help?
>>
>> usb 1-1: Could not load firmware file zd1211/zd1211b_ub. Error number -2
>> zd1211rw 1-1:1.0: couldn't load firmware. Error number -2

This looks like the system can't run the firmware loader,
ie, it can't start /sbin/hotplug or whatever is configured
in /proc/sys/kernel/hotplug.  You need udev or hotplug package
or a simple script for /sbin/hotplug.

The file should be in /lib/firmware/zd1211/zd1211b_ub.

/mjt

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
Hin-Tak Leung | 13 May 2011 19:42
Picon
Favicon

Re: usb 1-1: Could not load firmware file zd1211/zd1211b_ub. Error number -2

Michael Tokarev wrote:
> 13.05.2011 14:22, Hin-Tak Leung wrote:
>> ownership of the firmware files (and the containing directories)?
> 
> The firmware loading is done from a root process, so permissions
> are largely irrelevant.  Especially with this error number
> (-2 = ENOENT No such file or directory).

That does not appear the case, as I seem to recall (I could be wrong)? i.e. The 
files could be readable by root but not by the firmware-loading process/thread.

>> Krzysztof Stankiewicz wrote:
>>>   Im developing on LPC3250 NPX Embedded system, Ive placed the firmawere 
>>> where instructed,
>>> and I keep getting this error no matter what I do?
>>> Ive gone as far ast tracing the kernel stack but makes no sense to me.. 
>>> can anyone help?
>>>
>>> usb 1-1: Could not load firmware file zd1211/zd1211b_ub. Error number -2
>>> zd1211rw 1-1:1.0: couldn't load firmware. Error number -2
> 
> This looks like the system can't run the firmware loader,
> ie, it can't start /sbin/hotplug or whatever is configured
> in /proc/sys/kernel/hotplug.  You need udev or hotplug package
> or a simple script for /sbin/hotplug.
> 
> The file should be in /lib/firmware/zd1211/zd1211b_ub.
> 
> /mjt
> 

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
zd1211-devs | 13 May 2011 11:53

Re: usb 1-1: Could not load firmware file zd1211/zd1211b_ub. Error number -2


if you do an strace on ifconfig as it is bringing the interface up you will
see the device that the driver is looking for to load the firmware and not
finding. i am not that expert to know what it is , but i have found a way
around the problem for all drivers that have this firmware loading problem,
and that is to use the facility available to compile the firmware "blob" directly
into the kernel.

put the firmware in the subdirectory of the kernel tree named firmware 
and then go into the kernel configuration(Device drivers/Generic Driver
Options/Include in-kernel firmware blobs in kernel binary)  and list their names there.
it seems customary to put them in a subdir in  exactly the same way as in the /lib/firmware
dir and then list the  path/name (eg zd1211/zd1211b_ub) in the config
option.

recompile the kernel. no more firmware problems.

fractoid

On Fri, May 13, 2011 at 06:28:42PM +1000, Krzysztof Stankiewicz wrote:
> 
> Im developing on LPC3250 NPX Embedded system, Ive placed the firmawere where instructed,
> and I keep getting this error no matter what I do?
> Ive gone as far ast tracing the kernel stack but makes no sense to me.. can anyone help?
> 
> 
> usb 1-1: Could not load firmware file zd1211/zd1211b_ub. Error number -2
> zd1211rw 1-1:1.0: couldn't load firmware. Error number -2
> ifconfig: SIOCSIFFLAGS: No such file or directory
>  		 	   		  

> ------------------------------------------------------------------------------
> Achieve unprecedented app performance and reliability
> What every C/C++ and Fortran developer should know.
> Learn how Intel has extended the reach of its next-generation tools
> to help boost performance applications - inlcuding clusters.
> http://p.sf.net/sfu/intel-dev2devmay

> _______________________________________________
> Zd1211-devs mailing list - http://zd1211.wiki.sourceforge.net/
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/zd1211-devs

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
zd1211-devs | 13 May 2011 11:08

Re: usb 1-1: Could not load firmware file zd1211/zd1211b_ub. Error number -2


if you do an strace on ifconfig as it is bringing the interface up you will
see the device that the driver is looking for to load the firmware and not
finding. i am not that expert to know what it is , but i have found a way
around the problem for all drivers that have this firmware loading problem,
and that is to use the facility available to compile the firmware "blob" directly
into the kernel.

put the firmware in the subdirectory of the kernel tree named firmware 
and then go into the kernel configuration(Device drivers/Generic Driver
Options/Include in-kernel firmware blobs in kernel binary)  and list their names there.
it seems customary to put them in a subdir in  exactly the same way as in the /lib/firmware
dir and then list the  path/name (eg zd1211/zd1211b_ub) in the config
option.

recompile the kernel. no more firmware problems.

fractoid

On Fri, May 13, 2011 at 06:28:42PM +1000, Krzysztof Stankiewicz wrote:
> 
> Im developing on LPC3250 NPX Embedded system, Ive placed the firmawere where instructed,
> and I keep getting this error no matter what I do?
> Ive gone as far ast tracing the kernel stack but makes no sense to me.. can anyone help?
> 
> 
> usb 1-1: Could not load firmware file zd1211/zd1211b_ub. Error number -2
> zd1211rw 1-1:1.0: couldn't load firmware. Error number -2
> ifconfig: SIOCSIFFLAGS: No such file or directory
>  		 	   		  

> ------------------------------------------------------------------------------
> Achieve unprecedented app performance and reliability
> What every C/C++ and Fortran developer should know.
> Learn how Intel has extended the reach of its next-generation tools
> to help boost performance applications - inlcuding clusters.
> http://p.sf.net/sfu/intel-dev2devmay

> _______________________________________________
> Zd1211-devs mailing list - http://zd1211.wiki.sourceforge.net/
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/zd1211-devs

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay

Gmane