Util-Linux Archive on lore.kernel.org
 help / Atom feed
* [PATCH] libfdisk: (gpt) add HiFive Unleashed bootloader partition UUIDs
@ 2019-01-24 10:33 Icenowy Zheng
  2019-02-04 14:07 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Icenowy Zheng @ 2019-01-24 10:33 UTC (permalink / raw)
  To: util-linux; +Cc: Icenowy Zheng

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 | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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)
-- 
2.18.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] libfdisk: (gpt) add HiFive Unleashed bootloader partition UUIDs
  2019-01-24 10:33 [PATCH] libfdisk: (gpt) add HiFive Unleashed bootloader partition UUIDs Icenowy Zheng
@ 2019-02-04 14:07 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2019-02-04 14:07 UTC (permalink / raw)
  To: Icenowy Zheng; +Cc: util-linux

On Thu, Jan 24, 2019 at 06:33:34PM +0800, Icenowy Zheng wrote:
>  libfdisk/src/gpt.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)

Applied, thanks.

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-24 10:33 [PATCH] libfdisk: (gpt) add HiFive Unleashed bootloader partition UUIDs Icenowy Zheng
2019-02-04 14:07 ` Karel Zak

Util-Linux Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/util-linux/0 util-linux/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 util-linux util-linux/ https://lore.kernel.org/util-linux \
		util-linux@vger.kernel.org util-linux@archiver.kernel.org
	public-inbox-index util-linux


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.util-linux


AGPL code for this site: git clone https://public-inbox.org/ public-inbox