View previous topic :: View next topic |
Author |
Message |
Letharion Veteran
Joined: 13 Jun 2005 Posts: 1344 Location: Sweden
|
Posted: Tue Apr 02, 2024 9:36 am Post subject: Grub freezes when trying to boot kernel |
|
|
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 |
|
|
Letharion Veteran
Joined: 13 Jun 2005 Posts: 1344 Location: Sweden
|
Posted: Wed Apr 03, 2024 6:47 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|