bootloader icon indicating copy to clipboard operation
bootloader copied to clipboard

BIOS booting: Consider framebuffer config of kernel ELF

Open phil-opp opened this issue 3 years ago • 2 comments

Right now the BIOS implementation does not consider the framebuffer configuration of the kernel. Instead, it just defaults to a hardcoded resolution.

To fix this, we would need to parse the kernel ELF file already in the real mode stages, which could be challenging because of the memory limits in real mode. Alternatively, we could copy the framebuffer settings to a small text file and place this file alongside the kernel executable on the FAT partition.

phil-opp avatar Nov 13 '22 15:11 phil-opp

We could load the file in long mode, extract the frame buffer configuration, drop down to real mode, do the VBE calls, and switch back to long mode.

Freax13 avatar Nov 28 '22 23:11 Freax13

Good idea! I never tried going back to real mode from long mode though, so I'm not sure if it will work.

phil-opp avatar Dec 29 '22 08:12 phil-opp