[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNU-linux-libre] The "Free" Kernel In Debian Squeeze

From: Alexandre Oliva
Subject: Re: [GNU-linux-libre] The "Free" Kernel In Debian Squeeze
Date: Wed, 05 Jan 2011 08:11:48 -0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

On Jan  4, 2011, Richard Stallman <address@hidden> wrote:

>     That the kernel would include a session, build or release id as part of
>     the hashed string, and it would provide userland with that string so
>     that it would be included in the computation that searches for the
>     firmware.

> How could this be useful?  I just don't get it at all.

Varying the string would make it harder for people to publish “cheat
sheets” that would render the mangling obsolete, while still enabling
firmware to be found if it is installed.

Say, kernel driver used to request_firmware("foobar/blobname.fw"...)

We compute the hash of "`uname -r`/foobar/blobname.fw", and ask the
userland hotplug script for %x of that hash number.

Userland hotplug script runs e.g.

find /lib/firmware ! -type d -print |
sed "s,^/lib/firmware/,," |
  requested=`cat /sys/...`
  pfx=`uname -r`/ # could be /sys/.../hashprefix instead
  while read file; do
    if test `echo -n $pfx$file | md5sum` = "$requested  -"; then
  if test -n "$found"; then
    cat /lib/firmware/$found > /sys/...

Alexandre Oliva, freedom fighter
You must be the change you wish to see in the world. -- Gandhi
Be Free! --   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer

reply via email to

[Prev in Thread] Current Thread [Next in Thread]