You are not logged in.

#26 2025-03-18 15:55:41

loqs
Member
Registered: 2014-03-06
Posts: 18,387

Re: How to obtain firmware information being used for compiling kernel.

rupeshforu3 wrote:

In Linux from scratch tutorials they said as follows.

Could you link to that please.  I could not find it.

Offline

#27 2025-03-19 01:34:16

rupeshforu3
Member
Registered: 2023-01-06
Posts: 98

Re: How to obtain firmware information being used for compiling kernel.

https://www.linuxfromscratch.org/blfs/v … rnel-image

In this tutorial one line is

'Early loading of microcode' and cat all the Intel blobs to GenuineIntel.bin

Offline

#28 2025-03-19 02:18:00

loqs
Member
Registered: 2014-03-06
Posts: 18,387

Re: How to obtain firmware information being used for compiling kernel.

microcode is not firmware unless you plan to patch the kernel to expect firmware files in the microcode bundles I would expect adding firmware to the microcode bundles to either break microcode updating or do nothing.  https://www.kernel.org/doc/html/latest/ … ocode.html does say

The loader supports also loading of a builtin microcode supplied through the regular builtin firmware method CONFIG_EXTRA_FIRMWARE.

That does not mean the reverse is true and the microcode loader can handle firmware.  As mkinitcpio supports globing why are you not using

FILES=(/usr/lib/firmware/rtlwifi/rtl8192eu_nic.bin.zst /usr/lib/firmware/amdgpu/*)

Offline

#29 2025-03-20 01:23:13

rupeshforu3
Member
Registered: 2023-01-06
Posts: 98

Re: How to obtain firmware information being used for compiling kernel.

In some Linux documentation they said that we must not use  /usr/lib/firmware/amdgpu/*

Instead we must enter each and every file name with absolute path.

Offline

#30 2025-03-20 02:36:12

loqs
Member
Registered: 2014-03-06
Posts: 18,387

Re: How to obtain firmware information being used for compiling kernel.

rupeshforu3 wrote:

In some Linux documentation they said that we must not use  /usr/lib/firmware/amdgpu/*

Instead we must enter each and every file name with absolute path.

Please provide the link to that.  You can achieve an expanded list with:

(FILES=$(echo /usr/lib/firmware/rtlwifi/rtl8192eu_nic.bin.zst /usr/lib/firmware/amdgpu/*);sed -r "s|^(FILES=\().?(\))$|\1$FILES\2|" -i /etc/mkinitcpio.conf)

Offline

#31 2025-03-20 15:39:10

rupeshforu3
Member
Registered: 2023-01-06
Posts: 98

Re: How to obtain firmware information being used for compiling kernel.

While reading Gentoo Linux kernel compile guide they suggested not to use global for CONFIG_EXTRA_FIRMWARE entry in kernel configuration file.

I thought it will be same for all the times.

Thanks for clarifying my doubts and I will follow what you have suggested.

Offline

#32 2025-03-20 16:56:41

loqs
Member
Registered: 2014-03-06
Posts: 18,387

Re: How to obtain firmware information being used for compiling kernel.

CONFIG_EXTRA_FIRMWARE requirements do not match that of mkinitcpio or any of the other initrd generators Arch support.  I suggest you use either add just the firmware files your current kernel needs and should those needs change they will be accompanied by failure to load firmware messages in dmesg or add the glob line.

Offline

#33 2025-03-21 01:25:37

rupeshforu3
Member
Registered: 2023-01-06
Posts: 98

Re: How to obtain firmware information being used for compiling kernel.

loqs wrote:

CONFIG_EXTRA_FIRMWARE requirements do not match that of mkinitcpio or any of the other initrd generators Arch support.  I suggest you use either add just the firmware files your current kernel needs and should those needs change they will be accompanied by failure to load firmware messages in dmesg or add the glob line.

Ok sure.

Offline

#34 2025-03-21 20:16:41

loqs
Member
Registered: 2014-03-06
Posts: 18,387

Re: How to obtain firmware information being used for compiling kernel.

After adding the firmware to the initrd is the kernel loading the firmware from there or is the initrd loaded too late?

Offline

#35 2025-03-22 01:11:16

rupeshforu3
Member
Registered: 2023-01-06
Posts: 98

Re: How to obtain firmware information being used for compiling kernel.

At present I am not compiling kernel source code because I am reading a book about

1) how grub, kernel boots
2) how initrd works
3) dracut

Offline

Board footer

Powered by FluxBB