book
book copied to clipboard
guidance on implementing custom loaders
trafficstars
a loader is just a program that
- parses config/binary formats
- loads data to memory
- uses kexec and reboot syscalls
u-root already has lots of parsers, and different OS kernels have different expectations from the loader, e.g. initial page table setup (FreeBSD, Haiku).
Clarify how instead of chaining a standalone binary a loader is implemented as a Linux userland program for LinuxBoot.
We may want to hint on loading other Linux programs from external sources instead of just kernels.