View previous topic :: View next topic |
Author |
Message |
rupeshforu3 n00b

Joined: 19 Aug 2024 Posts: 71
|
Posted: Sat Mar 01, 2025 1:42 am Post subject: |
|
|
I think that we must copy some files local file system to the kernel source code.
In your tutorial you specified the word INTO.
Now my question is which files are to be copied from local file system to the kernel source code. _________________ Regards,
Rupesh. |
|
Back to top |
|
 |
pietinger Moderator

Joined: 17 Oct 2006 Posts: 5453 Location: Bavaria
|
Posted: Sat Mar 01, 2025 2:30 am Post subject: |
|
|
rupeshforu3 wrote: | [...] In your tutorial you specified the word INTO. [...] |
I have specified this word because it is technical not quite correct. Yes, the fiirmware files (and also the CPU microcode) are part of the kernel IMAGE ... but not IN the kernel.
rupeshforu3 wrote: | [...] Now my question is which files are to be copied from local file system to the kernel source code. |
Okay ... you dont want to read this:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Before_you_start
so I must tell you:
1. Boot your computer with our GentooLiveCD (either CD or copied to USB stick)
2. Change with CTRL-ALT-F1 to the console (and login as root)
3. do this command: dmesg | grep "Loading firmware"
For my INTEL system I have:
Code: | # dmesg | grep "Loading firmware"
[ 8.895831] Loading firmware: i915/adls_dmc_ver2_01.bin
[ 8.910450] Loading firmware: i915/tgl_guc_70.bin
[ 8.910552] Loading firmware: i915/tgl_huc.bin
[ 14.504934] Loading firmware: rtl_nic/rtl8125b-2.fw
# grep "EXTRA_FIRMWARE" /usr/src/linux/.config
CONFIG_EXTRA_FIRMWARE="i915/adls_dmc_ver2_01.bin intel-ucode/06-b7-01 rtl_nic/rtl8125b-2.fw i915/tgl_guc_70.bin i915/tgl_huc.bin"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware" |
If you ask who (or how) copies this files "INTO" the kernel IMAGE, the answer is: This is done automatically when you compile the kernel with "make". _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
 |
rupeshforu3 n00b

Joined: 19 Aug 2024 Posts: 71
|
Posted: Sat Mar 01, 2025 4:09 am Post subject: |
|
|
Is it possible to run dmesg directly in the current Gentoo Linux.
At present I have Fedora 41 Live image so can I use it to obtain the modules loaded information.
If you say no then I must download Gentoo Linux live image and make usb and boot into it and run the commands you specified. _________________ Regards,
Rupesh. |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 54941 Location: 56N 3W
|
Posted: Sat Mar 01, 2025 10:18 am Post subject: |
|
|
rupeshforu3,
If your running kernel lists firmware as it's loaded, that is all that's needed.
Check your dmesg.
If not, you need a kernel that does. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
rupeshforu3 n00b

Joined: 19 Aug 2024 Posts: 71
|
Posted: Sat Mar 01, 2025 1:40 pm Post subject: |
|
|
Hi in the current Gentoo Linux with kernel version 6.12.16 I ran dmesg command I have seen the firmware loaded.
Another request is yesterday I have downloaded the book "Linux kernel in a nutshell" book at free of cost from the author and kernel developer Greg Kraoh website.
It consists of everything related to how to compile kernel myself but it was written and released in 2006.
Can you suggest whether it's enough to know how to compile kernel. _________________ Regards,
Rupesh. |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 54941 Location: 56N 3W
|
Posted: Sat Mar 01, 2025 2:01 pm Post subject: |
|
|
rupeshforu3,
The current print edition is dated 2009. Its a whole desktop reference too. Not just about the kernel.
A lot has changed over the last 20 years.
There are no shortcuts, Do it, get it wrong, learn from the error(s), fix the errors, try again.
Rinse and repeat until it works. You cannot learn about it by reading.
The good thing is that you do not start over every time. Just change what you already have.
It really is like this old post. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
rupeshforu3 n00b

Joined: 19 Aug 2024 Posts: 71
|
Posted: Sat Mar 01, 2025 3:21 pm Post subject: |
|
|
Thanks for your suggestions. _________________ Regards,
Rupesh. |
|
Back to top |
|
 |
|