Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
System won't boot
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: 210

PostPosted: Fri Dec 06, 2024 4:02 pm    Post subject: System won't boot 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...
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5219
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: 210

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: 5219
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: 210

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: 5219
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: 210

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: 5219
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: 210

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: 210

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: 5219
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
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