Page MenuHomeFreeBSD

Switch to NetBSD's implementation of El Torito EFI handling
ClosedPublic

Authored by benno on Mar 30 2018, 10:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 6, 11:32 AM
Unknown Object (File)
Sat, Mar 30, 9:48 PM
Unknown Object (File)
Feb 17 2024, 3:54 AM
Unknown Object (File)
Jan 27 2024, 4:22 AM
Unknown Object (File)
Jan 25 2024, 1:17 PM
Unknown Object (File)
Dec 16 2023, 9:26 AM
Unknown Object (File)
Dec 10 2023, 1:39 AM
Unknown Object (File)
Dec 4 2023, 2:34 PM
Subscribers
None

Details

Summary

NetBSD took a different approach to implementing EFI support in El Torito. The primary difference is that they didn't overload the system ID in the way I did which appears to be a better idea.

For more detail, an El Torito boot catalog has Sections, each Section starts with a Section Header that indicates a Platform. Inside that Section there are Section Entries which roughly resemble the Initial Boot Entry in which fields they have, including the System ID that indicates what kind of environment they're set up to boot. For a dual-mode BIOS/UEFI image it looks like the "right" way is to have the BIOS no-emulation image as the "default" and then an ESP FAT image as an i386-system-tagged entry in an EFI-platform-tagged section. This lets us indicate this without having to overload things.

Test Plan

Generate ISO images and have them look right (done).

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Regenerated diff with -U9999

I like it. I can see no compelling reason to not adopt this, and it looks way cleaner than some of the other alternatives.

This revision is now accepted and ready to land.Mar 30 2018, 11:21 PM
This revision was automatically updated to reflect the committed changes.