diff --git a/arch/x86_64/boot.s b/arch/x86_64/boot.s index 4592c2e..3c7784b 100644 --- a/arch/x86_64/boot.s +++ b/arch/x86_64/boot.s @@ -25,7 +25,18 @@ multiboot2_header: .long MB2_ARCH .long MB2_LENGTH .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 */ + .align 8 .short 0 .short 0 .long 8 diff --git a/scripts/build_iso.sh b/scripts/build_iso.sh index 5a3a3e4..a105822 100755 --- a/scripts/build_iso.sh +++ b/scripts/build_iso.sh @@ -21,15 +21,37 @@ mkdir -p "${ISO_DIR}/boot/grub" cp "${KERNEL}" "${ISO_DIR}/boot/airlys.elf" 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 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 boot } menuentry "Airlys Sovereign OS (Fallback Multiboot 1)" { + insmod all_video + set gfxpayload=keep multiboot /boot/airlys.elf boot }