summaryrefslogtreecommitdiffstats
path: root/libfdisk/src
diff options
context:
space:
mode:
authorIcenowy Zheng2019-01-24 11:33:34 +0100
committerKarel Zak2019-02-04 15:06:19 +0100
commit5d3a4aab64ec3b6d2db2a3bfe67379a114bd0ee0 (patch)
tree26c7a71215fa4e7b1f610508d41872812ce5aed5 /libfdisk/src
parentcal: use standout mode on monochrome terminals (diff)
downloadkernel-qcow2-util-linux-5d3a4aab64ec3b6d2db2a3bfe67379a114bd0ee0.tar.gz
kernel-qcow2-util-linux-5d3a4aab64ec3b6d2db2a3bfe67379a114bd0ee0.tar.xz
kernel-qcow2-util-linux-5d3a4aab64ec3b6d2db2a3bfe67379a114bd0ee0.zip
libfdisk: (gpt) add HiFive Unleashed bootloader partition UUIDs
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>
Diffstat (limited to 'libfdisk/src')
-rw-r--r--libfdisk/src/gpt.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libfdisk/src/gpt.c b/libfdisk/src/gpt.c
index d1d0c434d..b12a9cb60 100644
--- a/libfdisk/src/gpt.c
+++ b/libfdisk/src/gpt.c
@@ -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)