* [Buildroot] [PATCH] board/orangepi/orangepi-pc-plus: fix build after genimage update
@ 2021-12-27 17:34 Sergey Matyukevich
2021-12-27 20:05 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Sergey Matyukevich @ 2021-12-27 17:34 UTC (permalink / raw)
To: buildroot; +Cc: Sergey Matyukevich
ERROR: hdimage(sdcard.img): part boot: 'partition-type' is only valid for mbr and hybrid partition-table-type
To fix the first genimage error report, change 'partition-type' entries
to the appropriate 'partition-type-uuid'. Then genimage starts to
complain about overlaps:
ERROR: hdimage(sdcard.img): partition [GPT array] (offset 0x100000, size 0x4000) overlaps previous partition u-boot (offset 0x2000, size 0x102000)
ERROR: hdimage(sdcard.img): bootloaders, etc. that overlap with the partition table must declare the overlapping area as a hole.
To fix the second genimage error report, update the size of bootloader
file. Do not reserve additional space for GPT partition table since
new genimage is able to keep track of it.
Fixes https://gitlab.com/buildroot.org/buildroot/-/jobs/1915006300
Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
---
board/orangepi/orangepi-pc-plus/genimage.cfg | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/board/orangepi/orangepi-pc-plus/genimage.cfg b/board/orangepi/orangepi-pc-plus/genimage.cfg
index e730b38096..3812d785d5 100644
--- a/board/orangepi/orangepi-pc-plus/genimage.cfg
+++ b/board/orangepi/orangepi-pc-plus/genimage.cfg
@@ -24,11 +24,11 @@ image sdcard.img {
in-partition-table = "no"
image = "u-boot-sunxi-with-spl.bin"
offset = 8K
- size = 1032K # 1MB - 8KB + 16KB(GPT)
+ size = 1016K # 1MB - 8KB
}
partition boot {
- partition-type = 0xC
+ partition-type-uuid = "F"
bootable = "true"
image = "boot.vfat"
}
@@ -36,7 +36,7 @@ image sdcard.img {
# 'rootfs' will be used as the partition label, used
# with root=PARTLABEL=rootfs kernel command line
partition rootfs {
- partition-type = 0x83
+ partition-type-uuid = "L"
image = "rootfs.ext4"
size = 512M
}
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH] board/orangepi/orangepi-pc-plus: fix build after genimage update
2021-12-27 17:34 [Buildroot] [PATCH] board/orangepi/orangepi-pc-plus: fix build after genimage update Sergey Matyukevich
@ 2021-12-27 20:05 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2021-12-27 20:05 UTC (permalink / raw)
To: Sergey Matyukevich; +Cc: buildroot
On Mon, 27 Dec 2021 20:34:30 +0300
Sergey Matyukevich <geomatsi@gmail.com> wrote:
> ERROR: hdimage(sdcard.img): part boot: 'partition-type' is only valid for mbr and hybrid partition-table-type
>
> To fix the first genimage error report, change 'partition-type' entries
> to the appropriate 'partition-type-uuid'. Then genimage starts to
> complain about overlaps:
>
> ERROR: hdimage(sdcard.img): partition [GPT array] (offset 0x100000, size 0x4000) overlaps previous partition u-boot (offset 0x2000, size 0x102000)
> ERROR: hdimage(sdcard.img): bootloaders, etc. that overlap with the partition table must declare the overlapping area as a hole.
>
> To fix the second genimage error report, update the size of bootloader
> file. Do not reserve additional space for GPT partition table since
> new genimage is able to keep track of it.
>
> Fixes https://gitlab.com/buildroot.org/buildroot/-/jobs/1915006300
>
> Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
> ---
> board/orangepi/orangepi-pc-plus/genimage.cfg | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-27 20:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-27 17:34 [Buildroot] [PATCH] board/orangepi/orangepi-pc-plus: fix build after genimage update Sergey Matyukevich
2021-12-27 20:05 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox