I've created a simple boot loader in the spirit of suckless.org. I got fed up how difficult it is to use grub-install, and how much dependencies grub-mkrescue has. So I created a dependency-free tool (portable executable available on Windows and Linux as well), a single command which can create a bootable disk image with ease or make existing images or actual devices bootable. Free and Open Source, MIT licensed.
Simpleboot
Usage:
Code: Select all
simpleboot (input directory) (output image file)
Supported kernel formats:
- ELF (32-bit CDECL, 64-bit SysV ABI with Multiboot2 protocol)
- COFF/PE32+ (32-bit CDECL, 64-bit MS fastcall ABI with Multiboot2 protocol)
- Linux kernel (x86 boot protocol)
Minimal example kernels are provided in the repo, the Multiboot2 version is almost 100% the same as in the Multiboot2 spec, but it prints the info on the serial console and not as VGA text (Simpleboot sets up the framebuffer for you). There's also a Linux kernel mock up example, in case you want to support the Linux boot protocol in your kernel. Makfile rules to boot under qemu (UEFI and BIOS) and bochs (BIOS) also provided.
Cheers