4 ms·
In case anyone is interested in how a UEFI bootloader could be implemented, I wrote a deliberately simple, teachable example: https://github.com/ajxs/uefi-elf-b
by ajxs 6y ago
In case anyone is interested in how a UEFI bootloader could be implemented, I wrote a deliberately simple, teachable example: https://github.com/ajxs/uefi-elf-bootloader https://github.com/ajxs/uefi-elf-bootloader
When I was learning there was definitely a lack of well-documented UEFI bootloader code publicly available. As someone new to the technology, you definitely don't want to sift through ELILO to find out how Linux uses UEFI.
If I did this again, which I'm sure I will, I would not use GNU-EFI. I would use a cross-compiler to build a PE executable for the EFI executable directly, without using GNU-EFI. Still, GNU-EFI is a good place to start. It's much easier to work with than EDK2.
Forgive my self-promotion here, I feel it could be relevant to interested parties here.