HomeFreeBSD

g_part,mkimg: Add additional GPT partition types

Description

g_part,mkimg: Add additional GPT partition types

Add the hifive-fsbl, hifive-bbl, and xbootldr aliases to mkimg(1).
Add the xbootldr alias to geom(4), and thus gpart(8).

The "hifive" partition types are defined and used by various RISC-V SBCs
for locating firmware.

"xbootldr", or the Extended Boot Loader Partition is defined here:
https://uapi-group.org/specifications/specs/boot_loader_specification/

Reviewed by: emaste, markj, mhorne
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D56784

(cherry picked from commit dab8138e13dea539a387c458979403980a137bf2)
(cherry picked from commit 54d0ae979d9596399f33dc7d7245866f86ab7f8e)

Details

Provenance
bscott_bunyatech.com.auAuthored on May 11 2026, 4:24 PM
mhorneCommitted on Aug 25 2026, 5:44 PM
Reviewer
emaste
Differential Revision
D56784: Add additional partition types to mkimg utility to allow creaation of riscv images
Parents
rG6bfd894c8b14: posixshm: Fix a TOCTOU race in the FIOSSHMLPGCNF handler
Branches
Unknown
Tags
Unknown