Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with GRUB 2.12 Loading Signed Linux Kernel #684

Closed
haobinnan opened this issue Aug 19, 2024 · 7 comments
Closed

Issues with GRUB 2.12 Loading Signed Linux Kernel #684

haobinnan opened this issue Aug 19, 2024 · 7 comments

Comments

@haobinnan
Copy link

I previously used GRUB 2.06 and now need to upgrade to 2.12. However, during the Linux kernel loading stage, I receive this message. Could you please explain what might be causing this issue? The Linux kernel has also been signed.

@haobinnan
Copy link
Author

屏幕截图 2024-08-19 134919

@haobinnan
Copy link
Author

屏幕截图 2024-08-19 134935

@haobinnan
Copy link
Author

@steve-mcintyre

Thank you very much; I hope you can guide me on this. The same kernel works fine with GRUB 2.06 without any error messages, but after upgrading to 2.12, the error appears. Below is the code address: https://git.launchpad.net/ubuntu/+source/grub2/tag/?h=import/2.12-5ubuntu4

@haobinnan
Copy link
Author

grub2 menu.cfg

insmod part_gpt
insmod part_msdos
insmod png
insmod all_video
insmod gfxterm

loadfont $prefix/font.pf2

set timeout=0
set default=0
set gfxpayload=1024x768

menuentry 'EassosRestore' {
if cpuid -l; then
echo 'Loading ...'
linux /EassosRestoreBoot/bzImage loglevel=3
initrd /EassosRestoreBoot/initramfs
else
echo 'This CPU is not compatible with 64-bit mode.'
sleep 3
reboot
fi
}

@haobinnan
Copy link
Author

When using GRUB 2.12, do you need to apply any additional patches to the Linux kernel?

@kukrimate
Copy link
Contributor

Are you building the peimage module into your GRUB?

Also you need to have EFI stub enabled in your kernel Kconfig to boot.

@haobinnan
Copy link
Author

Thank you very much! The issue was that my GRUB2 didn't include the peimage module. After including peimage, it booted normally.
@kukrimate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants