]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: (gpt) add HiFive Unleashed bootloader partition UUIDs
authorIcenowy Zheng <icenowy@aosc.io>
Thu, 24 Jan 2019 10:33:34 +0000 (18:33 +0800)
committerKarel Zak <kzak@redhat.com>
Tue, 2 Apr 2019 10:21:35 +0000 (12:21 +0200)
The HiFive Unleashed SBC's bootloader seeks for GPT partitions with
specific UUID for loading the next stage bootloader (ZSBL loads FSBL,
and FSBL loads BBL).

Add these partition type UUIDs.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
libfdisk/src/gpt.c

index d1d0c434dfe1a8e617e73c837cd703b49fd579de..b12a9cb60a806c455ad2978d4b2f23306ecb968c 100644 (file)
@@ -284,7 +284,11 @@ static struct fdisk_parttype gpt_parttypes[] =
        DEF_GUID("CEF5A9AD-73BC-4601-89F3-CDEEEEE321A1", N_("QNX6 file system")),
 
        /* Plan 9 */
-       DEF_GUID("C91818F9-8025-47AF-89D2-F030D7000C2C", N_("Plan 9 partition"))
+       DEF_GUID("C91818F9-8025-47AF-89D2-F030D7000C2C", N_("Plan 9 partition")),
+
+       /* HiFive Unleased bootloaders */
+       DEF_GUID("5B193300-FC78-40CD-8002-E86C45580B47", N_("HiFive Unleashed FSBL")),
+       DEF_GUID("2E54B353-1271-4842-806F-E436D6AF6985", N_("HiFive Unleashed BBL")),
 };
 
 #define alignment_required(_x)  ((_x)->grain != (_x)->sector_size)