3 ms·
I'm guessing this might also be of interest: https://www.kernel.org/doc/html/latest/admin-guide/efi-stub.html https://www.kernel.org/doc/html/latest/admin-guid
by e12e 6y ago
I'm guessing this might also be of interest:
https://www.kernel.org/doc/html/latest/admin-guide/efi-stub.html https://www.kernel.org/doc/html/latest/admin-guide/efi-stub....
Seems to be a little bit out of date, though:
> The code that modifies the bzImage header, along with the EFI-specific entry point that the firmware loader jumps to are collectively known as the “EFI boot stub”, and live in arch/x86/boot/header.S and arch/x86/boot/compressed/eboot.c
I found:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/x86/boot/header.S?h=v5.7.9 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux...
But no eboot.c - there's this however:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/x86/boot/compressed/efi_thunk_64.S?h=v5.7.9 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux...
- codetrotter 6y agoAnother potential point of interest that I remember is that in the Zig 0.5.0 release notes, where UEFI support is mentioned [1], they provide a few links relating to UEFI programming with Zig: uefi-examples - tutorials https://github.com/nrdmn/uefi-examples https://github.com/nrdmn/uefi-examples uefi-paint - UEFI-bootable touch paint app https://github.com/nrdmn/uefi-paint https://github.com/nrdmn/uefi-paint uefi-freetype - changing the system BIOS to use Comic Sans https://github.com/nrdmn/uefi-freetype https://github.com/nrdmn/uefi-freetype https://twitter.com/andy_kelley/status/1176561072398098432 https://twitter.com/andy_kelley/status/1176561072398098432 [1]: https://ziglang.org/download/0.5.0/release-notes.html#UEFI-Support https://ziglang.org/download/0.5.0/release-notes.html#UEFI-S...