Skip to contentSkip to conversation

board/radxa/rockpi-n8:use partition-type-uuid for genimage-15

PATCH In review Giulio Benetti 2 participants 2 messages Feb 4, 2022 – Feb 13, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board/radxa/rockpi-n8:use partition-type-uuid for genimage-15

Genimage 15 restricted the partition-type option to mbr and hybrid partition-table-type and now prints a warning when it is used [1]:

ERROR: hdimage(disk.img): part boot: 'partition-type' is only valid for mbr and hybrid partition-table-type

[1] https://github.com/pengutronix/genimage/commit/1d72d8091f83790a0a35a1ea7dc25d46adba8876

So let's use for EFI System partition:
'partition-type-uuid = c12a7328-f81f-11d2-ba4b-00a0c93ec93b' and for Root partition (32-bit ARM):
'partition-type-uuid = 69DAD710-2CE4-4E3C-B16C-21A1D49ABED3'

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/1929717242

FTR, the magic UUID are from:
https://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GUIDs

---
 board/radxa/rockpi-n8/genimage.cfg | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
board/radxa/rockpi-n8/genimage.cfg +2 -2
index 2e064d48c0..909a646499 100644
@@ -26,14 +26,14 @@ image sdcard.img {
 	}
 
 	partition boot {
-		partition-type = 0xC
+		partition-type-uuid = c12a7328-f81f-11d2-ba4b-00a0c93ec93b
 		bootable = "true"
 		image = "boot.vfat"
 		offset = 16M
 	}
 
 	partition rootfs {
-		partition-type = 0x83
+		partition-type-uuid = 69dad710-2ce4-4e3c-b16c-21a1d49abed3
 		image = "rootfs.ext4"
 	}
 }
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 12 lines · Giulio Benetti

Genimage 15 restricted the partition-type option to mbr and hybrid partition-table-type and now prints a warning when it is used [1]:

ERROR: hdimage(disk.img): part boot: 'partition-type' is only valid for mbr and hybrid partition-table-type

[1] https://github.com/pengutronix/genimage/commit/1d72d8091f83790a0a35a1ea7dc25d46adba8876

So let's use for EFI System partition:
'partition-type-uuid = c12a7328-f81f-11d2-ba4b-00a0c93ec93b' and for Root partition (32-bit ARM):
'partition-type-uuid = 69DAD710-2CE4-4E3C-B16C-21A1D49ABED3'

Quoted 7 lines

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/1929717242

FTR, the magic UUID are from:
https://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GUIDs

I considered squashing it with the patch in the partition-type-uuid
abbreviation series, but since that's still a bit in the air: applied to master, thanks.

Regards,
Arnout

Quoted 15 lines
---
  board/radxa/rockpi-n8/genimage.cfg | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
board/radxa/rockpi-n8/genimage.cfg +1 -1
index 2e064d48c0..909a646499 100644
@@ -26,14 +26,14 @@ image sdcard.img {
  	}
 
  	partition boot {
-		partition-type = 0xC
+		partition-type-uuid = c12a7328-f81f-11d2-ba4b-00a0c93ec93b
  		bootable = "true"

board/radxa/rockpi-n8/genimage.cfg image sdcard.img { · line 39

Quoted 10 lines
board/radxa/rockpi-n8/genimage.cfg +1 -1
  		image = "boot.vfat"
  		offset = 16M
  	}
 
  	partition rootfs {
-		partition-type = 0x83
+		partition-type-uuid = 69dad710-2ce4-4e3c-b16c-21a1d49abed3
  		image = "rootfs.ext4"
  	}
  }

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot