Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
System won't boot [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 216

PostPosted: Fri Dec 06, 2024 4:02 pm    Post subject: System won't boot [Solved] Reply with quote

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...


Last edited by enrico68 on Tue Dec 24, 2024 8:59 am; edited 2 times in total
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5271
Location: Bavaria

PostPosted: Fri Dec 06, 2024 6:01 pm    Post subject: Reply with quote

Please chroot into your installation ( https://wiki.gentoo.org/wiki/User:Pietinger/New_at_Gentoo#Pause_during_Installation ) and give us your kernel .config file. Please use wgetpaste for this ( https://wiki.gentoo.org/wiki/Wgetpaste )
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 216

PostPosted: Sat Dec 07, 2024 10:32 am    Post subject: Reply with quote

Hi pietinger,

here is the link to my kernel's .config file: http://0x0.st/X7Cs.txt
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5271
Location: Bavaria

PostPosted: Sat Dec 07, 2024 11:48 am    Post subject: Reply with quote

Hi enrico,

enable all these:
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 ... fill here your CPU microcode and all firmware files:
Code:
CONFIG_EXTRA_FIRMWARE=""

(you have seen after doing number 2 of https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Before_you_start
also explained here: https://wiki.gentoo.org/wiki/User:Pietinger/Experimental/Manual_Configuring_Current_Kernel#Device_Drivers ).

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)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 216

PostPosted: Sat Dec 07, 2024 3:43 pm    Post subject: Reply with quote

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)
Quote:
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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5271
Location: Bavaria

PostPosted: Sat Dec 07, 2024 4:37 pm    Post subject: Reply with quote

I will be offline now ... so very short:

1. You need i915. You dont need XE
2. Do a "dmesg | grep firmware" (after booting with LiveCD). this gives you all needed firmware files.
3. Do a "dmesg | grep stepping" (-""-) and read https://forums.gentoo.org/viewtopic-t-1065464.html
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 216

PostPosted: Sat Dec 07, 2024 5:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5271
Location: Bavaria

PostPosted: Sun Dec 08, 2024 4:25 pm    Post subject: Reply with quote

enrico,

you are not alone with a MeteorLake ... see also: https://forums.gentoo.org/viewtopic-t-1171781-highlight-.html

BTW: I suggest to use 6.12.x instead old 6.6 ... maybe you want read: https://wiki.gentoo.org/wiki/User:Pietinger/Experimental/Manual_Configuring_Current_Kernel

and I added a new chapter in my old wiki article: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Easy_Takeover (just read it to see how important it is to add the firmware, if you have i915 static in your .config)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 216

PostPosted: Tue Dec 10, 2024 2:46 pm    Post subject: Reply with quote

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 :wink:
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 216

PostPosted: Sun Dec 15, 2024 2:21 pm    Post subject: Reply with quote

pietinger wrote:
enrico,

you are not alone with a MeteorLake ... see also: https://forums.gentoo.org/viewtopic-t-1171781-highlight-.html


I read the whole discussion, thank you for pointing this out, at least I know there is a solution.

Quote:
BTW: I suggest to use 6.12.x instead old 6.6 ... maybe you want read: https://wiki.gentoo.org/wiki/User:Pietinger/Experimental/Manual_Configuring_Current_Kernel


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?

Quote:
and I added a new chapter in my old wiki article: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Easy_Takeover (just read it to see how important it is to add the firmware, if you have i915 static in your .config


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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5271
Location: Bavaria

PostPosted: Sun Dec 15, 2024 4:23 pm    Post subject: Reply with quote

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


:lol:
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 216

PostPosted: Sun Dec 22, 2024 9:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22893

PostPosted: Sun Dec 22, 2024 2:42 pm    Post subject: Reply with quote

What is the output of emerge --pretend --verbose sys-kernel/linux-firmware ; grep -n EXTRA_FIRMWARE /path/to/kernel/.config?
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 216

PostPosted: Sun Dec 22, 2024 4:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22893

PostPosted: Sun Dec 22, 2024 5:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 216

PostPosted: Sun Dec 22, 2024 5:38 pm    Post subject: Reply with quote

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,
Code:
make install
. No errors to be reported. I know I am kind of terrible at typing ...
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22893

PostPosted: Sun Dec 22, 2024 7:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 216

PostPosted: Tue Dec 24, 2024 7:32 am    Post subject: Reply with quote

The system boots, the kernel seems to be working with the 6.12 version, therefore everything considered, I decide to consider the thread issue as solved.

Thank you everyone for giving me all the input and help I needed, this forum is awesome, and I can attest that I always find a helping hand when in need of support!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum