Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157378011
D56784.id177581.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D56784.id177581.diff
View Options
diff --git a/sys/geom/part.orig/g_part.h b/sys/geom/part/g_part.h
--- a/sys/geom/part.orig/g_part.h
+++ b/sys/geom/part/g_part.h
@@ -108,6 +108,8 @@
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.orig/g_part.c b/sys/geom/part/g_part.c
--- a/sys/geom/part.orig/g_part.c
+++ b/sys/geom/part/g_part.c
@@ -135,6 +135,7 @@
{ "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.orig/g_part_gpt.c b/sys/geom/part/g_part_gpt.c
--- a/sys/geom/part.orig/g_part_gpt.c
+++ b/sys/geom/part/g_part_gpt.c
@@ -230,6 +230,7 @@
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;
@@ -302,6 +303,7 @@
{ &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.orig b/sys/sys/disk/gpt.h
--- a/sys/sys/disk/gpt.h.orig
+++ b/sys/sys/disk/gpt.h
@@ -261,6 +261,8 @@
#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.orig/gpt.c b/usr.bin/mkimg/gpt.c
--- a/usr.bin/mkimg.orig/gpt.c
+++ b/usr.bin/mkimg/gpt.c
@@ -52,6 +52,9 @@
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) },
@@ -65,6 +68,9 @@
{ ALIAS_MBR, ALIAS_PTR2TYPE(&gpt_uuid_mbr) },
{ 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.orig/scheme.h b/usr.bin/mkimg/scheme.h
--- a/usr.bin/mkimg.orig/scheme.h
+++ b/usr.bin/mkimg/scheme.h
@@ -47,6 +47,9 @@
ALIAS_MBR,
ALIAS_NTFS,
ALIAS_PPCBOOT,
+ ALIAS_HIFIVE_BBL,
+ ALIAS_XBOOTLDR,
+ ALIAS_HIFIVE_FSBL,
/* end */
ALIAS_COUNT /* Keep last! */
};
diff --git a/usr.bin/mkimg.orig/scheme.c b/usr.bin/mkimg/scheme.c
--- a/usr.bin/mkimg.orig/scheme.c
+++ b/usr.bin/mkimg/scheme.c
@@ -58,6 +58,9 @@
{ "mbr", ALIAS_MBR },
{ "ntfs", ALIAS_NTFS },
{ "prepboot", ALIAS_PPCBOOT },
+ { "hifive-bbl", ALIAS_HIFIVE_BBL },
+ { "xbootldr", ALIAS_XBOOTLDR },
+ { "hifive-fsbl", ALIAS_HIFIVE_FSBL },
{ NULL, ALIAS_NONE } /* Keep last! */
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 21, 7:21 PM (11 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33402944
Default Alt Text
D56784.id177581.diff (3 KB)
Attached To
Mode
D56784: Add additional partition types to mkimg utility to allow creaation of riscv images
Attached
Detach File
Event Timeline
Log In to Comment