Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin"

Trent Piepho
2008-07-05T00:51:18Z

On Fri, 4 Jul 2008, Henrique de Moraes Holschuh wrote:
> On Sat, 05 Jul 2008, Olivier Galibert wrote:
>> Won't that break multiple kernel installs on any binary packaging
>> system that cares about file collisions? Multiple kernel rpms
>> providing the same /lib/firmware files would break things wouldn't
>> they ?
>
> We will probably need per-kernel directories, exactly like what is done for
> modules. And since there are (now) both kernel-version-specific, and
> non-kernel-version-specific firmware, this means the firmware loader should
> look first on the version-specific directory (say, /lib/firmware/$(uname
> -r)/), then if not found, on the general directory (/lib/firmware).

How about /lib/modules/`uname -r`/firmware

Keeps all the stuff for a given kernel together in one directory. Easier to
delete, e.g. when getting ride of an old kernel or when wiping a broken kernel
install clean. The non-kernel-specific directory could be for firmwares that
don't come with the kernel and aren't specific to the driver version. That
avoids the complexity of providing kernel version specific packages when it's
not necessary.