public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RFC: install firmware in a kernel-dependent directory
@ 2009-02-14 12:25 Michael Riepe
  2009-02-14 19:02 ` Robert Hancock
  2009-02-14 19:15 ` Jaswinder Singh Rajput
  0 siblings, 2 replies; 7+ messages in thread
From: Michael Riepe @ 2009-02-14 12:25 UTC (permalink / raw)
  To: linux-kernel

Currently, make firmware_install puts all firmware blobs in
/lib/firmware. If you have several kernel versions installed, they will
overwrite each other's files, which may lead to problems if the blobs
eventually change. I think it would be better to use a separate
directory for every kernel version, like /lib/firmware/$(uname -r) or
/lib/modules/$(uname -r)/firmware (the latter is my favorite).

In either case, only a minimal modification in /lib/udev/firmware.sh is
required to make it look in the new directory first.

Comments?
-- 
Michael "Tired" Riepe <michael.riepe@googlemail.com>
X-Tired: Each morning I get up I die a little

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

* Re: RFC: install firmware in a kernel-dependent directory
  2009-02-14 12:25 RFC: install firmware in a kernel-dependent directory Michael Riepe
@ 2009-02-14 19:02 ` Robert Hancock
  2009-02-14 19:15 ` Jaswinder Singh Rajput
  1 sibling, 0 replies; 7+ messages in thread
From: Robert Hancock @ 2009-02-14 19:02 UTC (permalink / raw)
  To: Michael Riepe; +Cc: linux-kernel

Michael Riepe wrote:
> Currently, make firmware_install puts all firmware blobs in
> /lib/firmware. If you have several kernel versions installed, they will
> overwrite each other's files, which may lead to problems if the blobs
> eventually change. I think it would be better to use a separate
> directory for every kernel version, like /lib/firmware/$(uname -r) or
> /lib/modules/$(uname -r)/firmware (the latter is my favorite).
> 
> In either case, only a minimal modification in /lib/udev/firmware.sh is
> required to make it look in the new directory first.
> 
> Comments?

Seems reasonable to me, it seemed rather bizarre to me that this wasn't 
done in the first place..

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

* Re: RFC: install firmware in a kernel-dependent directory
  2009-02-14 12:25 RFC: install firmware in a kernel-dependent directory Michael Riepe
  2009-02-14 19:02 ` Robert Hancock
@ 2009-02-14 19:15 ` Jaswinder Singh Rajput
  2009-02-14 20:00   ` Michael Riepe
  2009-02-14 22:12   ` david
  1 sibling, 2 replies; 7+ messages in thread
From: Jaswinder Singh Rajput @ 2009-02-14 19:15 UTC (permalink / raw)
  To: Michael Riepe; +Cc: linux-kernel, David Woodhouse

On Sat, Feb 14, 2009 at 5:55 PM, Michael Riepe
<michael.riepe@googlemail.com> wrote:
> Currently, make firmware_install puts all firmware blobs in
> /lib/firmware. If you have several kernel versions installed, they will
> overwrite each other's files, which may lead to problems if the blobs
> eventually change. I think it would be better to use a separate
> directory for every kernel version, like /lib/firmware/$(uname -r) or
> /lib/modules/$(uname -r)/firmware (the latter is my favorite).
>
> In either case, only a minimal modification in /lib/udev/firmware.sh is
> required to make it look in the new directory first.
>
> Comments?

firmware version depends on hardware version not by kernel (software) version.

So /lib/firmware is absolutely OK.

--
JSR

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

* Re: RFC: install firmware in a kernel-dependent directory
  2009-02-14 19:15 ` Jaswinder Singh Rajput
@ 2009-02-14 20:00   ` Michael Riepe
  2009-02-14 20:50     ` David Woodhouse
  2009-02-14 22:12   ` david
  1 sibling, 1 reply; 7+ messages in thread
From: Michael Riepe @ 2009-02-14 20:00 UTC (permalink / raw)
  To: Jaswinder Singh Rajput, linux-kernel; +Cc: David Woodhouse

Hi!

Jaswinder Singh Rajput wrote:

> firmware version depends on hardware version not by kernel (software) version.

That means that it shouldn't be delivered with the kernel in the first
place, right? Neither built in nor as a separate file. Maybe that's an
even better solution: distribute it separately.

Which firmware to use is a matter of policy, in my opinion. I may want
to use a modified firmware, for example, and put that into /lib/firmware
where it belongs. But each time I install a new kernel, it will be
replaced with the standard version.

-- 
Michael "Tired" Riepe <michael.riepe@googlemail.com>
X-Tired: Each morning I get up I die a little

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

* Re: RFC: install firmware in a kernel-dependent directory
  2009-02-14 20:00   ` Michael Riepe
@ 2009-02-14 20:50     ` David Woodhouse
  0 siblings, 0 replies; 7+ messages in thread
From: David Woodhouse @ 2009-02-14 20:50 UTC (permalink / raw)
  To: Michael Riepe; +Cc: Jaswinder Singh Rajput, linux-kernel

On Sat, 2009-02-14 at 21:00 +0100, Michael Riepe wrote:
>  
> That means that it shouldn't be delivered with the kernel in the first
> place, right? Neither built in nor as a separate file. Maybe that's an
> even better solution: distribute it separately.

We do. See the linux-firmware.git repository, which contains a bunch of
extra firmware too; not just the bits we've stripped out of legacy
drivers.

You can completely ignore the firmware that's shipped with the kernel,
and you're right -- it should go away. In time I hope it will.

-- 
dwmw2


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

* Re: RFC: install firmware in a kernel-dependent directory
  2009-02-14 22:12   ` david
@ 2009-02-14 21:13     ` David Woodhouse
  0 siblings, 0 replies; 7+ messages in thread
From: David Woodhouse @ 2009-02-14 21:13 UTC (permalink / raw)
  To: david; +Cc: Jaswinder Singh Rajput, Michael Riepe, linux-kernel

On Sat, 2009-02-14 at 14:12 -0800, david@lang.hm wrote:
> are you sure? different firmware could have different interfaces for
> the kernel to use.
> 
> I don't know if this is a problem in practice (I think I've heard of 
> this), but there is no reason it couldn't be.

It would need different filenames then anyway (like sonames).

-- 
dwmw2


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

* Re: RFC: install firmware in a kernel-dependent directory
  2009-02-14 19:15 ` Jaswinder Singh Rajput
  2009-02-14 20:00   ` Michael Riepe
@ 2009-02-14 22:12   ` david
  2009-02-14 21:13     ` David Woodhouse
  1 sibling, 1 reply; 7+ messages in thread
From: david @ 2009-02-14 22:12 UTC (permalink / raw)
  To: Jaswinder Singh Rajput; +Cc: Michael Riepe, linux-kernel, David Woodhouse

On Sun, 15 Feb 2009, Jaswinder Singh Rajput wrote:

> On Sat, Feb 14, 2009 at 5:55 PM, Michael Riepe
> <michael.riepe@googlemail.com> wrote:
>> Currently, make firmware_install puts all firmware blobs in
>> /lib/firmware. If you have several kernel versions installed, they will
>> overwrite each other's files, which may lead to problems if the blobs
>> eventually change. I think it would be better to use a separate
>> directory for every kernel version, like /lib/firmware/$(uname -r) or
>> /lib/modules/$(uname -r)/firmware (the latter is my favorite).
>>
>> In either case, only a minimal modification in /lib/udev/firmware.sh is
>> required to make it look in the new directory first.
>>
>> Comments?
>
> firmware version depends on hardware version not by kernel (software) version.

are you sure? different firmware could have different interfaces for the 
kernel to use.

I don't know if this is a problem in practice (I think I've heard of 
this), but there is no reason it couldn't be.

David Lang

> So /lib/firmware is absolutely OK.
>
> --
> JSR
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

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

end of thread, other threads:[~2009-02-14 21:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-14 12:25 RFC: install firmware in a kernel-dependent directory Michael Riepe
2009-02-14 19:02 ` Robert Hancock
2009-02-14 19:15 ` Jaswinder Singh Rajput
2009-02-14 20:00   ` Michael Riepe
2009-02-14 20:50     ` David Woodhouse
2009-02-14 22:12   ` david
2009-02-14 21:13     ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox