[Sound-open-firmware] How do you provide the firmware binary, e.g sof-byt.ri file?

Daniel Baluta daniel.baluta at gmail.com
Tue Dec 11 09:29:57 CET 2018


On Mon, Dec 10, 2018 at 11:01 PM Pierre-Louis Bossart
<pierre-louis.bossart at linux.intel.com> wrote:
>
>
> On 12/10/18 2:48 PM, Daniel Baluta wrote:
> > On Mon, Dec 10, 2018 at 5:00 PM Liam Girdwood
> > <liam.r.girdwood at linux.intel.com> wrote:
> >> On Mon, 2018-12-10 at 07:48 -0600, Pierre-Louis Bossart wrote:
> >>>> I am having this problem where SOF is compiled as built in the
> >>>> kernel and the firmware binary is on the rootfs.
> >>>>
> >>>> When request_firmware is called in sof_probe the rootfs
> >>>> is not yet mounted so the call to request_firmware fails.
> >>>>
> >>>> Just curious, how do you provide the firmware binary?
> >>> it's a known issue that we haven't fixed since we use modules both for
> >>> development and production. Other drivers have the same problem IIRC.
> >>>
> >> You could try adding the image to initramfs, but as Pierre says this is a
> >> general problem with loading FW on Linux, not just related to audio.
> > I used CONFIG_EXTRA_FIRMWARE and compiled the firmware binary
> > inside the kernel Image and it works just fine for the moment.
> >
> > Yes, the easiest solution would be to add the image to initramfs.
> We use request_firmware as well for the topology file. Did you also
> include it in the kernel image?

I haven't got that far. For the moment I am just hacking around loading the
various sections of the firmware into memory (btw, I'm working on ARM board :D).

Anyhow, I assume that for the topology file it won't be necessary to compile
it inside the kernel image because it is used later when the rootfs is already
mounted.

thanks,
Daniel.


More information about the Sound-open-firmware mailing list