bootloader icon indicating copy to clipboard operation
bootloader copied to clipboard

Support for multiple boot protocols

Open Andy-Python-Programmer opened this issue 3 years ago • 4 comments

It will be great to have support for multiple boot protocols preferably stivale, stivale2 and mutliboot2. Other boot protocols also exist but these are the "cool" ones :D

https://wiki.osdev.org/Stivale_Bare_Bones

Andy-Python-Programmer avatar May 09 '21 03:05 Andy-Python-Programmer

Do you mean that we should support booting kernels using these protocols? Or that we should support to create disk images that can be booted by other bootloaders (e.g. GRUB2) via these protocols?

phil-opp avatar May 13 '21 20:05 phil-opp

Support booting the kernel with these protocols.

Andy-Python-Programmer avatar May 13 '21 22:05 Andy-Python-Programmer

Hmm, I'm not sure if this is worth the effort. It would require a lot of boilerplate to set up the various C-style structures that these protocols require (e.g. for the boot info). It would also make this crate much more complex because we would need to support all the machine states required by these protocols. For example, we would need to also support loading 32 bit ELF files into protected mode for multiboot2 support (we currently do everything in 64 bit).

phil-opp avatar May 14 '21 09:05 phil-opp

Ah I see. Then I think chainloading will be great feature

Andy-Python-Programmer avatar May 14 '21 09:05 Andy-Python-Programmer