Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub freezes when trying to boot kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1344
Location: Sweden

PostPosted: Tue Apr 02, 2024 9:36 am    Post subject: Grub freezes when trying to boot kernel Reply with quote

There was a recent version bump to Grub which I installed in mid march, and I have done:

Code:
# sudo grub-install --efi-directory=/boot --bootloader-id=GRUB
Installing for x86_64-efi platform.
Installation finished. No error reported.
# sudo grub-install --efi-directory=/boot --bootloader-id=GRUB --removable
Installing for x86_64-efi platform.
Installation finished. No error reported.
# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/kernel-6.6.21-gentoo
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done


That all looks fine, and on rebooting I get the expected grub menu.
However, trying to boot, the screen clears, the same menu reloads, and the machine freezes completely, and needs to be power-cycled to become responsive again.

I can get in to the system with a usb-stick and

Code:
set root=(hd4,gpt2)
linux /kernel-6.6.21-gentoo root=/dev/sdd4
boot


So everything "post-grub" works fine, and I'm trying this message from the same system, but obviously I'd like to not depend on a separate grub to boot.

I have no idea how to "debug" grub as there's no error message, and of course no logs written to disc as no disc is mounted at this point.

Help?

Edit: I realized I should try the manual boot from the hosed grub as well:

grub> set root=(hd4,gpt2)
grub> linux /kernel-6.6.21-gentoo root=/dev/sdd4
grub> boot
error: start_image() returned 0x8000000000000005.
grub> _

So that's an error message of some kind at least. The number of zeroes in the return value may be wrong, as I can't copy-paste from grub and it's been manually typed.
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1344
Location: Sweden

PostPosted: Wed Apr 03, 2024 6:47 am    Post subject: Reply with quote

When running a regular update, nvidia-drivers complained that the current compiler was GCC 13, but the kernel was compiled with GCC 12.
It had nothing to do with my grub issue, but I figured it wouldn't hurt to fix. So kernel 6.6.21 got recompiled with GCC 13, but that didn't make a difference.

I also tried poking around in grub but I guess my C is a bit rusty, as I couldn't find the start_image implementation, nor the error code returned.
Maybe the start_image function comes from an external library?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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