View previous topic :: View next topic |
Author |
Message |
nxe9 Tux's lil' helper
Joined: 05 Jun 2021 Posts: 78
|
Posted: Tue Oct 22, 2024 6:51 pm Post subject: Gentoo hangs on "Loading initial ramdisk" |
|
|
Hi, I am asking for help again .
I'm trying to boot with encrypted root. The vfat parition (/boot) is not encrypted and I have grub as boot loader.
The grub window appears, then the console hangs during startup. They are basically two consoles that overlap.
First console:
Code: | EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path
EFI stub: Measured initrd data into PCR 9 |
Second console:
Code: | Loading Linux 6.10.14-gentoo ...
Loading initial ramdisk ... |
This is where it freezes.
Hardware: ThinkPad E14 Ultra 7 155H
Kernel: I first tried 6.6.52, same problem, currently 6.10.14 because in 6.6 the Intel graphics in this processor were probably not stable yet. My live usb is arch 6.10.10.
lspci -nnk output: https://bpa.st/5NVWE
I know there have been a lot of threads on this topic and the problem is often the lack of a framebuffer option in the kernel, which is why the console does not display everything.
Code: | Device Drivers / Graphics support / Console display driver support
[*] Framebuffer Console support |
Code: | Device Drivers / Graphics support / Frame buffer Devices
(other options are not active here)
<*> Support for frame buffer device drivers[
[*] VESA...
[*] EFI
<*> Simple framebuffer support
[*] Provide legacy /dev/fb* device |
I'm not sure about the last one " Provide legacy /dev/fb* device". Should it be deactivated? Or maybe the problem is somewhere else?
UPDATE: Same behavior after changing Provide legacy /dev/fb* device to [] (disabled).
UPDATE2: Could this be related to the microcode? https://forums.gentoo.org/viewtopic-p-8830499.html#8830499
From what I read, grub loads intel-uc.img automatically. But is there also dracut that also does this automatically using the initramfs that I generated with it? I don't know myself... |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4994 Location: Bavaria
|
|
Back to top |
|
|
nxe9 Tux's lil' helper
Joined: 05 Jun 2021 Posts: 78
|
Posted: Tue Oct 22, 2024 11:12 pm Post subject: |
|
|
Probably not UKI, unless I'm not fully aware of it and it's happening via the installkernel with the dracut flag behind my back.
I will paste my cheat sheet, which includes almost all the installation steps and is based on the gentoo handbook. It'll probably be easier this way. The listed kernel options are the options that I chose myself.
https://bpa.st/GBXRQ "#" means comment or commands I didn't use. So these lines can be omitted.
Thank you for your help. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4994 Location: Bavaria
|
|
Back to top |
|
|
nxe9 Tux's lil' helper
Joined: 05 Jun 2021 Posts: 78
|
Posted: Wed Oct 23, 2024 1:17 am Post subject: |
|
|
Thank you. Your contribution to documenting everything is great.
I quickly tried to add a few options from your entries, but it did not result in proper booting. The next day I would like to read your entries carefully, but now I am wondering if it is worth it.
I have not dealt with the topic of kernel distribution so far. I thought that it only made compilation and installation easier. However, now I am reading that "Distribution kernels default to a configuration supporting the majority of hardware". To be honest, I always thought that the default kernel configuration was already prepared for most devices and only required light tuning. For years, I used two other systems with a very simple manual configuration based on entries from the Gentoo wiki, and the systems worked without problems and very stably. So I guess I have to revise my views.
In short, if the distribution kernel is better configured by default, it will probably be better if I read the article about the distribution kernel and choose this route.
I will keep you posted on my progress. |
|
Back to top |
|
|
sMueggli Guru
Joined: 03 Sep 2022 Posts: 465
|
Posted: Wed Oct 23, 2024 9:02 am Post subject: |
|
|
What you can do:
1. Make sure that sshd is enabled on the system
2. Boot the system, wait a minute, enter the LUKS passphrase
3. Wait a minute and try to SSH into your machine
If you can SSH into your machine, then you can easily get information about the state of the machine.
If you cannot use SSH, you can ping the machine to see, whether the network part is working or not. |
|
Back to top |
|
|
nxe9 Tux's lil' helper
Joined: 05 Jun 2021 Posts: 78
|
Posted: Thu Oct 24, 2024 1:40 am Post subject: |
|
|
I tried the dist kernel (sys-kernel/gentoo-kernel-6.6.57). It took a long time to compile, but I can accept it. I know there is gentoo-kernel-bin, but I don't want to limit my configuration possibilities.
The most important information, the system started correctly with the gentoo-kernel configuration. I was able to decrypt the drive and log in.
Thank you again for your very helpful tips. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22556
|
Posted: Thu Oct 24, 2024 11:02 am Post subject: |
|
|
nxe9: what is the next step for this thread? Do you want to try to customize sys-kernel/gentoo-kernel down to some approximation of a minimum working kernel for your environment? Do you want to use some kernel other than that one? Do you want to consider this thread solved and stop work here, since your system is usable and you consider the compile time for this kernel to be acceptable? |
|
Back to top |
|
|
nxe9 Tux's lil' helper
Joined: 05 Jun 2021 Posts: 78
|
Posted: Thu Oct 24, 2024 5:10 pm Post subject: |
|
|
Currently I am satisfied and the compilation time is acceptable to me. Perhaps in the future I will take a closer look at Pietinger's articles and perhaps add snippets that will speed up the compilation.
One more question. From what I see, gentoo-kernel automatically calls installkernel. In turn, my installkernel is built with the dracut flag, which means that initramfs is created at this point. However, I also see that gentoo-kernel has an initrams flag. However, I also see that gentoo-kernel has an initrams flag, which I think also calls for dracut initramfs.
Do I understand correctly that I have the following two options and they will give me the same result?
Option 1:
gentoo-kernel with initramfs flag and installkernel without dracut flag
Option 2:
gentoo-kernel without initramfs flag and installkernel with dracut flag
What about option number 3? Will initramfs be created twice?
Option 3:
gentoo-kernel with initramfs flag and intallkernel with dracut flag |
|
Back to top |
|
|
|