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

Pierre-Louis Bossart pierre-louis.bossart at linux.intel.com
Mon Dec 10 22:01:36 CET 2018


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?


More information about the Sound-open-firmware mailing list