From nobody Tue Aug 25 17:45:37 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hTwDS6Ssjz6pkTF for ; Tue, 25 Aug 2026 17:45:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hTwDR32Rzz3gpG for ; Tue, 25 Aug 2026 17:45:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1787679943; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Zjfi8XSuimLbCkRvgS87WstScZbnWtAquGIUHbqtclY=; b=qmRdxkgd7D5TuZWh3Os1ECo65VVNOJMzL2RwgGcTpZnIBvGJNcm3GzI2y1UaNgrXt6prtI I7jdetRJgidyhUqx6RC4VktXTjZBFV2B2C7KMPAI05N522dXgJ5aq2e6O8zClJNFTtp2Nl k0RlwoFtjw79gZ3/11121aCsTxM7kbEZZTP86EaucmnbZVlTVaAAPPRtMp8cQ+iTPx2OmD j86Y6swHJ61Nf3uk889HTIxj+gXG5+pbDC2Bk6pIhSuJMQp2m5IT51K7OLD9gJMgs82dBD qXzTpIHdbuLRtD1uqNYIc0QOLbXF6iWqiSint5g6UE9B6E7O2lDc67ZJJ7xdIQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1787679943; a=rsa-sha256; cv=none; b=SXkFlFAQIOBP6l0LF9FgsJE04K6SBFGv1dtrSDjwrauM65bBGZGfZTSeBdSJ3wz4q1A/lh g419y9T+Jq0UNKIfqlFvEYr4pNA0dt/DsKCMQCCRDwpMwq0MbA/xric2gOX5HC0nzu8jy1 FKMi2l29vxkF/XQ6SznPXKD3ouxS8sAiYz/bn5fkmHbpDe+h5qLtkLlmktqOfi/LyQ/mGb Mm7lMqygM8m58PBLRmJIyZjQlfS5jC9aWhGgJGt3oJcrdrXI+sHfT+hb+SGPj05CdeMRSD VrG1DmGbrS2o3R753uqmw/Dxre3C6/RsNakc2wGbxMPRgz8YzzDCy6K+0bPx2g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1787679943; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Zjfi8XSuimLbCkRvgS87WstScZbnWtAquGIUHbqtclY=; b=f0IlYZBkAfjgpjDEYanCY+6m8qKCW2FEPRABujy1eq24otFQFij/P/M1vZwIH9sRo4N26e k0vioKT/Nks+sfrN8L4lRNcB/gQeP3fpLzP/CNoBneVejxz0ZyaGddnQArICkYHje5U+Sv BVeF8xY31yOTbf9/Ey5ALPyC5UWbUvnoLUzFhG4dXJXVp+Rr97RDG4WRcT8O7dN0xrV1sc LSwYBzVeLcSOVupruBpUGkS0vgCgCCoUcMvlws/X4U4uxdx+NievKenMMDioYIiCV8YwR3 zp8K3IE94Z4/Ys21ZU7AzFJ43HD96iRKNzQyOPyvAkkQ4kxWXhcZ1h33M+dFZA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hTwDR1Tpvz121J for ; Tue, 25 Aug 2026 17:45:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3ddad by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 25 Aug 2026 17:45:37 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Brian Scott From: Mitchell Horne Subject: git: 179d779c6427 - stable/14 - g_part,mkimg: Add additional GPT partition types List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 179d779c6427fe0d8a9eedc83c43746e723b187c Auto-Submitted: auto-generated Date: Tue, 25 Aug 2026 17:45:37 +0000 Message-Id: <6a8dd4c1.3ddad.3f9870cc@gitrepo.freebsd.org> The branch stable/14 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=179d779c6427fe0d8a9eedc83c43746e723b187c commit 179d779c6427fe0d8a9eedc83c43746e723b187c Author: Brian Scott AuthorDate: 2026-05-11 16:24:46 +0000 Commit: Mitchell Horne CommitDate: 2026-08-25 17:44:30 +0000 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) --- lib/geom/part/gpart.8 | 8 +++++++- sys/geom/part/g_part.c | 1 + sys/geom/part/g_part.h | 2 ++ sys/geom/part/g_part_gpt.c | 2 ++ sys/sys/disk/gpt.h | 2 ++ usr.bin/mkimg/gpt.c | 6 ++++++ usr.bin/mkimg/scheme.c | 3 +++ usr.bin/mkimg/scheme.h | 3 +++ 8 files changed, 26 insertions(+), 1 deletion(-) diff --git a/lib/geom/part/gpart.8 b/lib/geom/part/gpart.8 index 66c7b7abcf56..120473529207 100644 --- a/lib/geom/part/gpart.8 +++ b/lib/geom/part/gpart.8 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd April 20, 2026 +.Dd May 12, 2026 .Dt GPART 8 .Os .Sh NAME @@ -1051,6 +1051,12 @@ A partition claimed by VMware VSAN. The scheme-specific type is .Qq Li "!381cfccc-7288-11e0-92ee-000c2911d0b2" for GPT. +.It Cm xbootldr +An Extended Boot Loader Partition (XBOOTLDR), secondary to the EFI system +partition, used to store additional firmware or boot loader menu entries. +The scheme-specific type is +.Qq Li "!bc13c2ff-59e6-4262-a352-b275fd6f7172" +for GPT. .El .Sh ATTRIBUTES The scheme-specific attributes for EBR: diff --git a/sys/geom/part/g_part.c b/sys/geom/part/g_part.c index 02c550d74620..d7cc260a751a 100644 --- a/sys/geom/part/g_part.c +++ b/sys/geom/part/g_part.c @@ -136,6 +136,7 @@ struct g_part_alias_list { { "vmware-vmfs", G_PART_ALIAS_VMFS }, { "vmware-vmkdiag", G_PART_ALIAS_VMKDIAG }, { "vmware-vsanhdr", G_PART_ALIAS_VMVSANHDR }, + { "xbootldr", G_PART_ALIAS_XBOOTLDR }, }; SYSCTL_DECL(_kern_geom); diff --git a/sys/geom/part/g_part.h b/sys/geom/part/g_part.h index 575d97623e9b..1355cfec66a0 100644 --- a/sys/geom/part/g_part.h +++ b/sys/geom/part/g_part.h @@ -108,6 +108,8 @@ enum g_part_alias { G_PART_ALIAS_VMKDIAG, /* A VMware vmkDiagnostic partition entry */ G_PART_ALIAS_VMRESERVED, /* A VMware reserved partition entry */ G_PART_ALIAS_VMVSANHDR, /* A VMware vSAN header partition entry */ + G_PART_ALIAS_XBOOTLDR, /* A Systemd/Linux extended boot partition + Also used by visionfive2 as part of the boot sequence */ /* Keep the following last */ G_PART_ALIAS_COUNT }; diff --git a/sys/geom/part/g_part_gpt.c b/sys/geom/part/g_part_gpt.c index 3e1f8dbde6dc..c93ef8ae567e 100644 --- a/sys/geom/part/g_part_gpt.c +++ b/sys/geom/part/g_part_gpt.c @@ -231,6 +231,7 @@ static struct uuid gpt_uuid_vmfs = GPT_ENT_TYPE_VMFS; static struct uuid gpt_uuid_vmkdiag = GPT_ENT_TYPE_VMKDIAG; static struct uuid gpt_uuid_vmreserved = GPT_ENT_TYPE_VMRESERVED; static struct uuid gpt_uuid_vmvsanhdr = GPT_ENT_TYPE_VMVSANHDR; +static struct uuid gpt_uuid_xbootldr = GPT_ENT_TYPE_XBOOTLDR; static struct g_part_uuid_alias { struct uuid *uuid; @@ -303,6 +304,7 @@ static struct g_part_uuid_alias { { &gpt_uuid_vmkdiag, G_PART_ALIAS_VMKDIAG, 0 }, { &gpt_uuid_vmreserved, G_PART_ALIAS_VMRESERVED, 0 }, { &gpt_uuid_vmvsanhdr, G_PART_ALIAS_VMVSANHDR, 0 }, + { &gpt_uuid_xbootldr, G_PART_ALIAS_XBOOTLDR, 0 }, { NULL, 0, 0 } }; diff --git a/sys/sys/disk/gpt.h b/sys/sys/disk/gpt.h index 426ae835c0c1..65b00f5de733 100644 --- a/sys/sys/disk/gpt.h +++ b/sys/sys/disk/gpt.h @@ -261,6 +261,8 @@ CTASSERT(sizeof(struct gpt_ent) == 128); #define GPT_ENT_TYPE_U_BOOT_ENV \ {0x3de21764,0x95bd,0x54bd,0xa5,0xc3,{0x4a,0xbe,0x78,0x6f,0x38,0xa8}} +#define GPT_ENT_TYPE_XBOOTLDR \ + {0xbc13c2ff,0x59e6,0x4262,0xa3,0x52,{0xb2,0x75,0xfd,0x6f,0x71,0x72}} /* * Boot partition used by GRUB 2. diff --git a/usr.bin/mkimg/gpt.c b/usr.bin/mkimg/gpt.c index 5fae98e0d4ef..dd822d928f39 100644 --- a/usr.bin/mkimg/gpt.c +++ b/usr.bin/mkimg/gpt.c @@ -50,6 +50,9 @@ static mkimg_uuid_t gpt_uuid_freebsd_zfs = GPT_ENT_TYPE_FREEBSD_ZFS; static mkimg_uuid_t gpt_uuid_mbr = GPT_ENT_TYPE_MBR; static mkimg_uuid_t gpt_uuid_ms_basic_data = GPT_ENT_TYPE_MS_BASIC_DATA; static mkimg_uuid_t gpt_uuid_prep_boot = GPT_ENT_TYPE_PREP_BOOT; +static mkimg_uuid_t gpt_uuid_hifive_bbl = GPT_ENT_TYPE_HIFIVE_BBL; +static mkimg_uuid_t gpt_uuid_xbootldr = GPT_ENT_TYPE_XBOOTLDR; +static mkimg_uuid_t gpt_uuid_hifive_fsbl = GPT_ENT_TYPE_HIFIVE_FSBL; static struct mkimg_alias gpt_aliases[] = { { ALIAS_EFI, ALIAS_PTR2TYPE(&gpt_uuid_efi) }, @@ -64,6 +67,9 @@ static struct mkimg_alias gpt_aliases[] = { { ALIAS_MS_BASIC_DATA, ALIAS_PTR2TYPE(&gpt_uuid_ms_basic_data) }, { ALIAS_NTFS, ALIAS_PTR2TYPE(&gpt_uuid_ms_basic_data) }, { ALIAS_PPCBOOT, ALIAS_PTR2TYPE(&gpt_uuid_prep_boot) }, + { ALIAS_HIFIVE_BBL, ALIAS_PTR2TYPE(&gpt_uuid_hifive_bbl) }, + { ALIAS_XBOOTLDR, ALIAS_PTR2TYPE(&gpt_uuid_xbootldr) }, + { ALIAS_HIFIVE_FSBL, ALIAS_PTR2TYPE(&gpt_uuid_hifive_fsbl) }, { ALIAS_NONE, 0 } /* Keep last! */ }; diff --git a/usr.bin/mkimg/scheme.c b/usr.bin/mkimg/scheme.c index 0af86f6d9111..7e2829d7d50b 100644 --- a/usr.bin/mkimg/scheme.c +++ b/usr.bin/mkimg/scheme.c @@ -57,6 +57,9 @@ static struct { { "ms-basic-data", ALIAS_MS_BASIC_DATA }, { "ntfs", ALIAS_NTFS }, { "prepboot", ALIAS_PPCBOOT }, + { "hifive-bbl", ALIAS_HIFIVE_BBL }, + { "xbootldr", ALIAS_XBOOTLDR }, + { "hifive-fsbl", ALIAS_HIFIVE_FSBL }, { NULL, ALIAS_NONE } /* Keep last! */ }; diff --git a/usr.bin/mkimg/scheme.h b/usr.bin/mkimg/scheme.h index 693f04983624..cb6806ce7979 100644 --- a/usr.bin/mkimg/scheme.h +++ b/usr.bin/mkimg/scheme.h @@ -46,6 +46,9 @@ enum alias { ALIAS_MS_BASIC_DATA, ALIAS_NTFS, ALIAS_PPCBOOT, + ALIAS_HIFIVE_BBL, + ALIAS_XBOOTLDR, + ALIAS_HIFIVE_FSBL, /* end */ ALIAS_COUNT /* Keep last! */ };