View previous topic :: View next topic |
Author |
Message |
enrico68 Apprentice
Joined: 21 Oct 2016 Posts: 213
|
Posted: Fri Dec 06, 2024 4:02 pm Post subject: System won't boot |
|
|
Hello,
I have a new laptop that has been giving me quite a few issues when trying to install Gentoo. I tried with other easier distributions and I do not have any issues, even Arch works with no issues, but not Gentoo...
I am using the minimal installation cd as the Live GUI CD will not take me to KDE but to a login console, and I tried quite a few different Live GUI CDs in the past weeks, but none seems to work.
But let's start with the first issue: I installed Gentoo, as usual following the official Handbook using OpenRC as my init system, I configured the Kernel manually, following both the Handbook and Pietinger's extensive tutorial, and installkernel. I see in boot all the necessary files for booting, but when I restart my laptop I see:
Code: | Loading Linux.6.6.62-gentoo...Loading Initial ramdisk... |
and a prompt....I looked at the grub.cfg file and I do not see anything wrong that pops out of the ordinary...any help is much appreciated. I have been installing Gentoo for quite a few years on different machines, and this is the first time I cannot find a solution no matter what I try...my laptop is a Lenovo Thinkpad T16 Gen 3.
Pardon me if I am not posting any screen with my lsbkl or else, I am writing this using my work computer, my Lenovo is just a black screen... |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5239 Location: Bavaria
|
|
Back to top |
|
|
enrico68 Apprentice
Joined: 21 Oct 2016 Posts: 213
|
Posted: Sat Dec 07, 2024 10:32 am Post subject: |
|
|
Hi pietinger,
here is the link to my kernel's .config file: http://0x0.st/X7Cs.txt |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5239 Location: Bavaria
|
|
Back to top |
|
|
enrico68 Apprentice
Joined: 21 Oct 2016 Posts: 213
|
Posted: Sat Dec 07, 2024 3:43 pm Post subject: |
|
|
Hi pietenger,
these have all been enabled.
Code: | # CONFIG_X86_X2APIC is not set
# CONFIG_MTRR is not set
# CONFIG_MSDOS_PARTITION is not set
# CONFIG_MFD_INTEL_LPSS_PCI is not set |
And now, (at least for me) the hardest part...meaning I have never done this before...maybe it is time I start to learn something new...
1) I have a Intel Meteor Lake-P [Intel Graphics] and there is no kernel driver in lsmod. I believe it requires the i915 driver, and the newer Xe (which I read should not be available before Linux Kernel version 6.8, the Gentoo minimal CD is still at Kernel 6.6.62). At least, it is what the other distros used when I tried them . The i915 though should be downloaded when installing the Xorg server, once setting the VIDEO_CARDS to "intel, i915 "in the make.conf file, but I did that, and I could not run startx, or boot into a DE the time when somehow I managed to boot into the new system last week. Besides, even after installing the X server, I did not see no driver in lsmod for the Intel Graphics.
Through the lspci -nkk command I see two subsystems with no drivers: 8086:7d02 and 8086:7d45.
Starting with"cateee 8086:7d02 " , it sends me to a web page with two ceteee.net links, where it says what to enable in the kernel. But I cannot see the " intel-ucode/06-b7-01 rtl_nic/rtl8125b-2.fw i915/adls_dmc_ver2_01.bin i915/tgl_guc_70.bin i915/tgl_huc.bin" files that you added in the CONFIG_EXTRA FIRMWARE of your tutorial...where did you get those file?? I am really lost here...if you can tell me step by step where you found those file I would really appreciate it, as it is the part that I am the least proficient at. Of course, those files will be different for my laptop...
2) Check also (after booting with our GentooLiveCD) if you see in lsmod this driver:
Code: | # CONFIG_INTEL_IDMA64 is not set |
(If yes, enable it also)
I have to download the GentooLiveCD to do that...I will leave it for later and report back...
Last edited by enrico68 on Sun Dec 08, 2024 12:04 pm; edited 1 time in total |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5239 Location: Bavaria
|
|
Back to top |
|
|
enrico68 Apprentice
Joined: 21 Oct 2016 Posts: 213
|
Posted: Sat Dec 07, 2024 5:31 pm Post subject: |
|
|
All right then...once I can download the Live CD I will run "dmesg | grep firmware" as per your instructions, and report back.
Thank you for being patient with me, but I am doing something which I find fascinating and not easy at the same time. This is the biggest lesson in configuring the kernel that I have ever had since starting using Linux... |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5239 Location: Bavaria
|
|
Back to top |
|
|
enrico68 Apprentice
Joined: 21 Oct 2016 Posts: 213
|
Posted: Tue Dec 10, 2024 2:46 pm Post subject: |
|
|
Hi pietinger,
I just read your last reply. I came to the same conclusion about the Kernel 6.12 after doing some research, it seems the i915 is not supported before that version.
I will give your links a careful reading and let's see what I can accomplish...all I know is that if other distros work without a fuss (and they all use the latest kernel, I believe), it has got to work on Gentoo as well, I have no doubt...
Unfortunately I am busy with work, so I am trying my best to get to the root of my issues whenever I have a chance... I will get back to you at due time...and as always, a big thank you for your support |
|
Back to top |
|
|
enrico68 Apprentice
Joined: 21 Oct 2016 Posts: 213
|
Posted: Sun Dec 15, 2024 2:21 pm Post subject: |
|
|
I read the whole discussion, thank you for pointing this out, at least I know there is a solution.
Agree.I have a question: I tried to emerge more advanced kernels from the gentoo sources, but whenever I input the whole name of the kernel (e.g. sys-kerne/gentoo sources-6.12.3), portage says it is an atom which canot be downloded. So, what is the correct way to choose a different kernel from the sys-kernel-gentoo-sources page? I thought maybe by using links and the URL from the gentoo sources page: would this be correct?
I will go through it, but first I need to know the correct way tu upgrade my kernel to 6.12 or higher.
Thank you for all the support provided. It will take some time but I know it will be resolved. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5239 Location: Bavaria
|
Posted: Sun Dec 15, 2024 4:23 pm Post subject: |
|
|
enrico68 wrote: | [...] I will go through it, but first I need to know the correct way tu upgrade my kernel to 6.12 or higher. |
gentoo-sources is slotted, so you can use one of these commands:
Code: | # emerge -1v gentoo-sources:6.12.5
# emerge -1v =gentoo-sources-6.12.5 |
because it is not stable you must add it also in your /etc/portage/accept_keywords ... I have in this file:
Code: | sys-firmware/intel-microcode
sys-kernel/gentoo-sources
sys-kernel/linux-headers
x11-apps/igt-gpu-tools
app-crypt/ima-evm-utils
games-board/xboard
games-board/polyglot
games-board/stockfish
app-admin/kernel-hardening-checker
games-strategy/wesnoth
app-arch/7zip |
_________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
enrico68 Apprentice
Joined: 21 Oct 2016 Posts: 213
|
Posted: Sun Dec 22, 2024 9:52 am Post subject: |
|
|
I read all that was posted in the previous posts, found the needed drivers, and loaded them under
Device Drivers ------>
Generic Drivers Options ------>
Firmware loader------->
intel-ucode/06-aa-04 i915/mtl.....etc etc..
I then saved the kernel, but....upon running Code: | make && make modules_install |
I get a bunch of errors related to the firmware I added above....
Quote: | No rule to make target '/lib/firmware/i915/mtl..... |
and the same for the firmware added....
The good news is I can finally boot into Gentoo, but the bad news is the errors above in the kernel...
Any insight is much appreciated. As I never added firmware before because there was no need, these error messages are new to me and I do not know how to proceed...
Since we are at it, I looked at the Code: | dmesg | grep firmware | and there is a sof firmware missing: sof-audio-pci-intel-mtl 0000:00:1f.3. I looked for it but I could not find it in the sof directory...I checked the sof-firmware and I have the latest version from the Gentoo Repository. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22867
|
Posted: Sun Dec 22, 2024 2:42 pm Post subject: |
|
|
What is the output of emerge --pretend --verbose sys-kernel/linux-firmware ; grep -n EXTRA_FIRMWARE /path/to/kernel/.config? |
|
Back to top |
|
|
enrico68 Apprentice
Joined: 21 Oct 2016 Posts: 213
|
Posted: Sun Dec 22, 2024 4:29 pm Post subject: |
|
|
Code: | [b]emerge --pretend --verbose [color=blue]sys-kernel/linux-firmware[/color] |
[ebuild R ] sys-kernel/linux-firmware-20241210-r1::gentoo
Code: | [quote]grep -n EXTRA_FIRMWARE [/b][i]/path/to/kernel/.config[/i] |
1438:CONFIG_EXTRA_FIRMWARE="intel_ucode/06-aa-04 i915/mtl_guc_70_bin i915/mtl_dcm.bi i915/mtl_huc_gsc_1.bin
1439:CONFIG_EXTRA_FIRMWARE_DIR"/lib/firmware" |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22867
|
Posted: Sun Dec 22, 2024 5:08 pm Post subject: |
|
|
How did you determine those filenames? With the caveat that I am looking at a slightly older linux-firmware here, I see no sign of mtl_dcm.bi. I see a mtl_dmc.bin, which is similar, but not the same. Likewise, I don't have in my older version a mtl_huc_gsc_1.bin. Are you sure all of those i915 paths were installed by your linux-firmware? What is the output of grep -Hn -e i915/mtl_guc_70_bin -e i915/mtl_dcm.bi -e i915/mtl_huc_gsc_1.bin /var/db/pkg/sys-kernel/linux-firmware-*/CONTENTS? |
|
Back to top |
|
|
enrico68 Apprentice
Joined: 21 Oct 2016 Posts: 213
|
Posted: Sun Dec 22, 2024 5:38 pm Post subject: |
|
|
I determined those file names by looking at the distros that used them with a working Linux.
Of course, I double checked inside lib/firmware/i915, and I have them.
Unfortunately, when I typed them inside the EXTRA_FIRMWARE I mispelled them, my bad.... Here is their correct names: i915/mtl_guc_70.bin; i915/mtl_dmc.bin; i915/mtl_huc_gsc.bin. I corrected them, and I have run Code: | make && make modules_install | , and after that, . No errors to be reported. I know I am kind of terrible at typing ... |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22867
|
Posted: Sun Dec 22, 2024 7:03 pm Post subject: |
|
|
In the future, use your terminal's copy-paste mechanism instead of retyping filenames, so that there is no opportunity for mistakes. I suspected they were misspelled in the .config, but since it does not do spelling correction, those spelling errors are fatal.
Now that your make install worked, are there any remaining problems to solve in this thread? |
|
Back to top |
|
|
|