* libertas firmware naming confusing
@ 2009-05-22 8:02 Johannes Berg
2009-05-22 15:11 ` Dan Williams
0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2009-05-22 8:02 UTC (permalink / raw)
To: Andrey Yurovsky; +Cc: David Woodhouse, Dan Williams, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 1776 bytes --]
Hi,
I noticed yesterday that you updated the page at
http://wireless.kernel.org/en/users/Drivers/libertas to say the
following two things about firmware:
USB
* The Linux firmware tree contains libertas/usb8388_v5.bin and
libertas/usb8388_v9.bin. The firmware image must be placed
in /lib/firmware/usb8688.bin. The firmware image can also be
downloaded from OLPC's libertas firmware page.
GSPI
* The GSPI firmware is available in the Linux firmware tree. Copy
libertas/gspi8686_v9_helper.bin
to /lib/firmware/libertas/gspi8686_hlp.bin and
libertas/gspi8686_v9.bin
to /lib/firmware/libertas/gspi8686.bin.
This runs counter to the entire idea of the linux-firmware tree that the
tree is a drop-in for /lib/firmware/ (or wherever you need it on your
distribution) -- the tree should always contain the exact filenames as
required by the kernel drivers. Maybe this needs to be clarified more.
Additionally, if there's a need for different versions of a firmware,
then the driver should detect which one is required for the device, if
it's for different features it should select a good default and possibly
give the option to override it.
In this case, I suspect two things are needed:
1) rename the GSPI firmware files in the linux-firmware tree to match
what the driver loads, and document outside the filename what
version they are;
2) in the USB case change the driver to load libertas/usb8688.bin
instead of just usb8688.bin and move one of the versions to that
filename in the linux-firmware tree.
The current situation is very stupid -- users can find the firmware in a
proper repository but it doesn't work out of the box!
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libertas firmware naming confusing
2009-05-22 8:02 libertas firmware naming confusing Johannes Berg
@ 2009-05-22 15:11 ` Dan Williams
2009-05-22 15:31 ` Johannes Berg
0 siblings, 1 reply; 3+ messages in thread
From: Dan Williams @ 2009-05-22 15:11 UTC (permalink / raw)
To: Johannes Berg; +Cc: Andrey Yurovsky, David Woodhouse, linux-wireless
On Fri, 2009-05-22 at 10:02 +0200, Johannes Berg wrote:
> Hi,
>
> I noticed yesterday that you updated the page at
> http://wireless.kernel.org/en/users/Drivers/libertas to say the
> following two things about firmware:
I'm the main source of the firmware naming scheme in linux-firmware.
There is one major reason for this; the drivers support multiple
firmware versions, and for various reasons we'd like to keep multiple
firmware versions around and available. When I added all the libertas
firmware to linux-firmware, I was not quite sure how to handle this
case.
>
> USB
> * The Linux firmware tree contains libertas/usb8388_v5.bin and
> libertas/usb8388_v9.bin. The firmware image must be placed
> in /lib/firmware/usb8688.bin. The firmware image can also be
> downloaded from OLPC's libertas firmware page.
>
> GSPI
> * The GSPI firmware is available in the Linux firmware tree. Copy
> libertas/gspi8686_v9_helper.bin
> to /lib/firmware/libertas/gspi8686_hlp.bin and
> libertas/gspi8686_v9.bin
> to /lib/firmware/libertas/gspi8686.bin.
>
>
> This runs counter to the entire idea of the linux-firmware tree that the
> tree is a drop-in for /lib/firmware/ (or wherever you need it on your
> distribution) -- the tree should always contain the exact filenames as
> required by the kernel drivers. Maybe this needs to be clarified more.
> Additionally, if there's a need for different versions of a firmware,
> then the driver should detect which one is required for the device, if
> it's for different features it should select a good default and possibly
> give the option to override it.
>
> In this case, I suspect two things are needed:
> 1) rename the GSPI firmware files in the linux-firmware tree to match
> what the driver loads, and document outside the filename what
> version they are;
The problem with that is that then we can't have different firmware
versions in linux-firmware really.
> 2) in the USB case change the driver to load libertas/usb8688.bin
> instead of just usb8688.bin and move one of the versions to that
> filename in the linux-firmware tree.
Yes, this should be done. I was unsure what the policy of breaking
firmware filenames is, however.
> The current situation is very stupid -- users can find the firmware in a
> proper repository but it doesn't work out of the box!
Nope, though these cards aren't usually found by "normal" users anyway.
However, I'd like to preserve the the distribution of different firmware
versions in linux-firmware, so maybe we should simply point the drivers
at specific versions and use module parameters to change the firmware
version?
modprobe libertas_sdio fwver=8
would select libertas/86xx_v8_helper.bin for example, but by default we
use v9 or something like that. Would that be acceptable?
Dan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libertas firmware naming confusing
2009-05-22 15:11 ` Dan Williams
@ 2009-05-22 15:31 ` Johannes Berg
0 siblings, 0 replies; 3+ messages in thread
From: Johannes Berg @ 2009-05-22 15:31 UTC (permalink / raw)
To: Dan Williams; +Cc: Andrey Yurovsky, David Woodhouse, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 1173 bytes --]
On Fri, 2009-05-22 at 11:11 -0400, Dan Williams wrote:
> > 2) in the USB case change the driver to load libertas/usb8688.bin
> > instead of just usb8688.bin and move one of the versions to that
> > filename in the linux-firmware tree.
>
> Yes, this should be done. I was unsure what the policy of breaking
> firmware filenames is, however.
You can always try to load the new name, and fall back to the old name.
> > The current situation is very stupid -- users can find the firmware in a
> > proper repository but it doesn't work out of the box!
>
> Nope, though these cards aren't usually found by "normal" users anyway.
True.
> However, I'd like to preserve the the distribution of different firmware
> versions in linux-firmware, so maybe we should simply point the drivers
> at specific versions and use module parameters to change the firmware
> version?
>
> modprobe libertas_sdio fwver=8
>
> would select libertas/86xx_v8_helper.bin for example, but by default we
> use v9 or something like that. Would that be acceptable?
Sure. Might make sense to document why you would ever want to use that
though.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-05-22 15:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-22 8:02 libertas firmware naming confusing Johannes Berg
2009-05-22 15:11 ` Dan Williams
2009-05-22 15:31 ` Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox