Skip to content

Commit

Permalink
board/orangepi/orangepi-zero-plus2: fix build after genimage update
Browse files Browse the repository at this point in the history
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/2021478371

Signed-off-by: Sergey Matyukevich <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
  • Loading branch information
geomatsi authored and tpetazzoni committed Feb 6, 2022
1 parent 7551164 commit 0f72e01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions board/orangepi/orangepi-zero-plus2/genimage.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ 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"
}

# '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 = 256M
}
Expand Down

0 comments on commit 0f72e01

Please sign in to comment.