fix(boot): resolve 'no suitable video mode found' on UEFI by requesting GOP framebuffer and loading all_video in GRUB

This commit is contained in:
Adam Eehan committed 2026-10-23 23:41:28 +05:30
1 parent a9b638972c
commit 5b7463be14
2 files changed
+34 -1

No files matched your search

+11
View File
@@ -25,7 +25,18 @@ multiboot2_header:
.long MB2_ARCH .long MB2_ARCH
.long MB2_LENGTH .long MB2_LENGTH
.long MB2_CHECKSUM .long MB2_CHECKSUM
/* Framebuffer Request Tag (Type 5) - Requests UEFI GOP / VBE 1024x768 @ 32bpp */
.align 8
.short 5 /* type = 5 (Framebuffer) */
.short 1 /* flags = 1 (Optional, safe on all firmware) */
.long 20 /* size = 20 bytes */
.long 1024 /* width = 1024 */
.long 768 /* height = 768 */
.long 32 /* depth = 32bpp */
/* End tag */ /* End tag */
.align 8
.short 0 .short 0
.short 0 .short 0
.long 8 .long 8
+23 -1
View File
@@ -21,15 +21,37 @@ mkdir -p "${ISO_DIR}/boot/grub"
cp "${KERNEL}" "${ISO_DIR}/boot/airlys.elf" cp "${KERNEL}" "${ISO_DIR}/boot/airlys.elf"
cat << 'EOF' > "${ISO_DIR}/boot/grub/grub.cfg" cat << 'EOF' > "${ISO_DIR}/boot/grub/grub.cfg"
insmod all_video
insmod efi_gop
insmod efi_uga
insmod font
set gfxmode=auto
set gfxpayload=keep
set timeout=5 set timeout=5
set default=0 set default=0
menuentry "Airlys Sovereign OS (x86_64 Long Mode)" { menuentry "Airlys Sovereign OS (x86_64 Long Mode - UEFI GOP)" {
insmod all_video
insmod efi_gop
insmod efi_uga
set gfxpayload=keep
multiboot2 /boot/airlys.elf
boot
}
menuentry "Airlys Sovereign OS (1024x768 TrueColor Framebuffer)" {
insmod all_video
set gfxmode=1024x768x32,auto
set gfxpayload=1024x768x32,keep
multiboot2 /boot/airlys.elf multiboot2 /boot/airlys.elf
boot boot
} }
menuentry "Airlys Sovereign OS (Fallback Multiboot 1)" { menuentry "Airlys Sovereign OS (Fallback Multiboot 1)" {
insmod all_video
set gfxpayload=keep
multiboot /boot/airlys.elf multiboot /boot/airlys.elf
boot boot
} }