Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Update 5.15.11 hangs at Loading Initial Ramdisk
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
tfake
n00b
n00b


Joined: 29 Nov 2021
Posts: 4

PostPosted: Mon Dec 27, 2021 6:52 pm    Post subject: Kernel Update 5.15.11 hangs at Loading Initial Ramdisk Reply with quote

Hi Everyone,

Today I updated to Kernel 5.15.11 from 5.10.76 R1 and boot now gets stuck at "Loading Initial Ramdisk".

The .config for 5.10.76 can be found here: https://pastebin.com/83BgWLAM
The .config for 5.15.11 can be found here: https://pastebin.com/VH054Yjx
The init script can be found here: https://pastebin.com/nMYNNXt6
The grub.cfg file can be found here: https://pastebin.com/eAhMxiE6

When making the kernel .config I used "make olddefconfig" after copying over my .config file using zcat /proc/config.gz > /usr/src/linux/.config. I am using OpenRC and Grub2.

I have found a number of posts indicating that this might be due to a graphics driver problem. One suggested using nomodeset but that didn't resolve my problem. The most recent post that I found was using a virtual machine to test the Kernel and the suggested solution was enabling virtual machine modules so that didn't fit the bill since I am testing on bare metal.

I am grateful for any help that you can give me including methods of getting more logs that might be able to help troubleshoot.


Last edited by tfake on Mon Dec 27, 2021 7:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23093

PostPosted: Mon Dec 27, 2021 7:22 pm    Post subject: Reply with quote

Please don't hide content behind a URL shortener. This is not Twitter. We can use full length URLs here, and some members refuse to follow blind shorteners.

When you boot the new kernel, in what way is it stuck? If you tap the power button, does the system turn off immediately, or are you only able to power down by using a long press-and-hold (which causes the firmware to halt the system, even if the OS is completely broken)? If you let the system sit while it is apparently stuck, does it eventually become visible on the network? After you reboot into the old kernel, are there any log messages recorded from the time of the attempted boot of the new kernel, which would indicate that the new kernel was working, albeit without video output?
Back to top
View user's profile Send private message
tfake
n00b
n00b


Joined: 29 Nov 2021
Posts: 4

PostPosted: Tue Dec 28, 2021 2:37 pm    Post subject: Reply with quote

It appears to hang at "Loading Initial Ramdisk" but upon further investigation of /var/log/messages, entering my LUKS key and hitting enter allows the boot process to continue but nothing changes on the screen; "Loading Initial Ramdisk" is still the last thing displayed on the screen.

Here are the relevant contents of /var/log/messages: https://pastebin.com/AkfuE90i
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1227
Location: Massachusetts USA

PostPosted: Tue Dec 28, 2021 9:23 pm    Post subject: Reply with quote

It may help to have grup setup a framebuffer.
In /etc/default/grub
Code:
GRUB_GFXMODE=auto
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_THEME="/boot/grub/themes/starfield/theme.txt"


The kernel config option CONFIG_FB_SIMPLE should be able to detect the frame buffer.
You could also add CONFIG_FB_EFI but it should not be needed.
Back to top
View user's profile Send private message
smartding
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2021
Posts: 129

PostPosted: Wed Dec 29, 2021 5:49 am    Post subject: Reply with quote

I had a similar issue after upgrading to 5.15.11 from 5.10.76: nothing after "Loading Initial Ramdisk".

After some digging, it's because the CONFIG_X86_SYSFB kernel config in 5.10.x is now renamed to CONFIG_SYSFB_SIMPLEFB in 5.15.x

This config means "Mark VGA/VBE/EFI FB as generic system framebuffer", which should be turned on to make simple framebuffer work with nvidia card according to https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers
Back to top
View user's profile Send private message
tfake
n00b
n00b


Joined: 29 Nov 2021
Posts: 4

PostPosted: Wed Dec 29, 2021 2:43 pm    Post subject: Reply with quote

Thank you very much for all of your suggestions.

The problem was resolved through smartding's suggestion. For future reference, how would I go about finding issues like this (other than trying to wade through the kernel diffs)?

I like the starfield theme jburns.
Back to top
View user's profile Send private message
smartding
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2021
Posts: 129

PostPosted: Thu Dec 30, 2021 2:49 am    Post subject: Reply with quote

tfake wrote:
Thank you very much for all of your suggestions.

The problem was resolved through smartding's suggestion. For future reference, how would I go about finding issues like this (other than trying to wade through the kernel diffs)?

I like the starfield theme jburns.


I usually run /usr/src/linux/scripts/diffconfig .config.old .config to compare the difference. Pay attention to the configs that I turned on in the old kernel but are no longer there in the new kernel.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Dec 30, 2021 2:52 am    Post subject: Reply with quote

For me 'make oldconfig' brought it up. This is what oldconfig target is for.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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