First steps in bare-metal programming using UEFI kevinboone.me · 85 points · 5 c...
HN Best 200 @best
First steps in bare-metal programming using UEFI kevinboone.me · 85 points · 5 comments · HN thread
TL;DR Kevin Boone's index page for a multi-part series on bare-metal programming for PC-type computers with UEFI firmware, written for experienced Linux developers who know nothing about UEFI. The series covers toolchains, compiling and linking, building a bootable disk, and basic file management, and is meant to be read in order.
- Target is a PC with UEFI firmware, developed from a Linux workstation.
- Assumes experienced Linux developers but no prior UEFI knowledge.
- Topics: software tools, compile and link, creating a bootable disk, basic file management.
- Articles build on each other and are explicitly meant to be read sequentially.
- The page itself is only an index; the substance is in the linked parts.
Discussion The thread is short and mostly appreciative, with a few commenters adding technical notes rather than debating the series. One commenter points to existing resources for the missing C standard library and to the Windows-style coding conventions behind EFI. Another, who has apparently worked through the path, adds practical pitfalls around ExitBootServices and recommends QEMU with OVMF. The mood is constructive, with one sharp dismissal of the text as LLM-generated.
- Useful resource and welcome for UEFI beginners (some): Commenters say they were looking for exactly this kind of introduction to UEFI development. Thanks are brief and positive.
- Add practical pitfalls: memory map key and ExitBootServices (a few): One commenter notes that 'bare metal' is misleading because firmware services remain available until ExitBootServices. They warn that a stale memory map key causes EFI_INVALID_PARAMETER and recommend QEMU with OVMF for faster iteration, since it is stricter than most real firmware.
- Point to existing C library and EFI history (a few): One commenter links edk2-libc as a replacement for the missing C standard library and explains that EFI and UEFI coding style derives from Windows conventions, citing an Intel Technology Journal paper.
- Dislike of LLM-generated writing (a few): One commenter says LLM-generated text is not welcome, and another replies dismissively. The article itself gives no direct evidence either way in the excerpt provided.
Links from the comments