Question on busybox and loading firmware?
farmatito at tiscali.it
farmatito at tiscali.it
Mon Sep 22 16:14:50 UTC 2014
Il 22.09.2014 16:27 Michael D. Setzer II ha scritto:
> On 22 Sep 2014 at 10:32, Gustavo Zacarias wrote:
>
> Date sent: Mon, 22 Sep 2014 10:32:43 -0300
> From: Gustavo Zacarias
> To: "Michael D. Setzer II" ,
> busybox at busybox.net [3]Subject: Re: Question on busybox and loading
> firmware?
>
>> On 09/22/2014 09:56 AM, Michael D. Setzer II wrote:
>>
>>> Was already able to find the firmware since it was included with
>>> the
>>> installation of the fedora 20 on the notebook. Issue is that I
>>> placed
>>> the firmware files into the /lib/firmware directory, but on booting
>>> from my project kernel it seems to try and load firmware during the
>>> kernel loading before the ramdisk.lzma is loaded. The kernel is
>>> built
>>> with the option to not include firmware, since I don't know what if
>>> any firmware will be needed by end users. This seems to have worked
>>> with bnx2 and bnx2x firmware that another end user needed. But the
>>> booting showed the messages before the ramdisk.lzma is recognized,
>>> and then shows messages with =-12, and =-2. Didn't save the output
>>> since this was a ram only load. Was thinking that mdev -s might
>>> cause
>>> it to load firmware. Kernel contains most disk and ethernet devices
>>> included.
>> Hi. Make the driver a module instead of built into the kernel. The
>> driver might initialize before the kernel/userland has
>> access/mounted a
>> root filesystem and that's what happens.
>
> Thanks for the reply. Problem is that iso has the option of select 7
> different
> kernels, so if I changed it to using moduals I would have to include
> them
> for
> multiple kernels and also come up with a script to load the moduals.
> Right
> now everything works by having the kernels handle the hardware.
>
>> Regards.
>
Hi,
maybe this helps:
Firmware loading
================
If the hotplug variable FIRMWARE is set, the kernel is requesting
firmware
for a device (identified by $DEVPATH). To provide the firmware to the
kernel,
do the following:
echo 1 > /sys/$DEVPATH/loading
cat /path/to/$FIRMWARE > /sys/$DEVPATH/data
echo 0 > /sys/$DEVPATH/loading
Note that "echo -1 > /sys/$DEVPATH/loading" will cancel the firmware
load
and return an error to the kernel, and /sys/class/firmware/timeout
contains a
timeout (in seconds) for firmware loads.
See Documentation/firmware_class/ for more information.
Ciao,
Tito
Scopri istella, il nuovo motore per il web italiano.
Istella garantisce risultati di qualità e la possibilità di
condividere, in modo semplice e veloce, documenti, immagini, audio e
video.
Usa istella, vai su http://www.istella.it?wtk=amc138614816829636
More information about the busybox
mailing list