2012-04-02 00:10:26

by Ben Gamari

[permalink] [raw]
Subject: Re: wl1271 NVS file loading

Ben Gamari <[email protected]> writes:

> Hello all,
>
> I'm running a PandaBoard with Linaro 12.03 and a patched 3.3
> kernel. While wl1271 works perfectly with the Linaro kernel, it fails to
> load in the case of my patched kernel with,
>
> wl12xx: ERROR could not get nvs file ti-connectivity/wl1271-nvs.bin: -2
>
> What is even more perplexing is the fact that the file in question
> clearly exists,
>
> $ ls /lib/firmware/ti-connectivity/*-nvs.bin -l
> -rw-r--r-- 1 root root 912 2012-03-24 16:28 /lib/firmware/ti-connectivity/wl1271-nvs.bin
> -rw-r--r-- 1 root root 912 2012-03-24 16:28 /lib/firmware/ti-connectivity/wl127x-nvs.bin
> -rw-r--r-- 1 root root 1113 2012-03-24 16:28 /lib/firmware/ti-connectivity/wl128x-nvs.bin
> lrwxrwxrwx 1 root root 14 2012-01-24 13:10 /lib/firmware/ti-connectivity/wl12xx-nvs.bin -> wl127x-nvs.bin
>
> It seems that there is no easy way to troubleshoot udev's
> /lib/udev/firmware script, so I have really no way of tracking this down
> any further. Any ideas what might be going on here?
>
It turns out I had neglected to compile wl1271 as a module and the
firmware hadn't made it into the initrd. I apologize for the noise.

Cheers,

- Ben



2012-04-02 08:54:05

by Luciano Coelho

[permalink] [raw]
Subject: Re: wl1271 NVS file loading

Hi Ben,


On Sun, 2012-04-01 at 20:10 -0400, Ben Gamari wrote:
> Ben Gamari <[email protected]> writes:
> > I'm running a PandaBoard with Linaro 12.03 and a patched 3.3
> > kernel. While wl1271 works perfectly with the Linaro kernel, it fails to
> > load in the case of my patched kernel with,
> >
> > wl12xx: ERROR could not get nvs file ti-connectivity/wl1271-nvs.bin: -2
> >
> > What is even more perplexing is the fact that the file in question
> > clearly exists,
> >
> > $ ls /lib/firmware/ti-connectivity/*-nvs.bin -l
> > -rw-r--r-- 1 root root 912 2012-03-24 16:28 /lib/firmware/ti-connectivity/wl1271-nvs.bin
> > -rw-r--r-- 1 root root 912 2012-03-24 16:28 /lib/firmware/ti-connectivity/wl127x-nvs.bin
> > -rw-r--r-- 1 root root 1113 2012-03-24 16:28 /lib/firmware/ti-connectivity/wl128x-nvs.bin
> > lrwxrwxrwx 1 root root 14 2012-01-24 13:10 /lib/firmware/ti-connectivity/wl12xx-nvs.bin -> wl127x-nvs.bin
> >
> > It seems that there is no easy way to troubleshoot udev's
> > /lib/udev/firmware script, so I have really no way of tracking this down
> > any further. Any ideas what might be going on here?
> >
> It turns out I had neglected to compile wl1271 as a module and the
> firmware hadn't made it into the initrd. I apologize for the noise.

I'm glad you managed to work around this bug. We need to fix this
according to some recent changes in the udev code. The change should be
simple and we just need to wait until the firmware is available if we
try to load it and it's not ready yet.

This fix will be queued up for 3.5.

--
Cheers,
Luca.