News for hackers. Stuff that matters.
Re:Geeking Out with UEFI by ajxs on Sunday October 25, 2020 @08:17PM (#24891460)
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

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.

There are no comments on this comment yet.