buildroot/board/orangepi/orangepi-pc-plus/genimage.cfg
Sergey Matyukevich 81175e5580 board/orangepi-pc-plus: switch to GPT partitions for PARTLABEL support
In new kernels sunxi-mmc driver has been switched to asynchronous probe.
As a result, mmc (SD/eMMC) indexes can be shuffled breaking board boot.
Switch to GPT partitions to use partition labels instead of explicit
mmcblk device names. Note that the default GPT partition table location
conflicts with the SPL location, so move GPT table after bootloaders.

Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2021-07-13 21:57:15 +02:00

43 lines
762 B
INI

# Minimal SD card image for the OrangePi PC Plus
#
image boot.vfat {
vfat {
files = {
"zImage",
"sun8i-h3-orangepi-pc-plus.dtb",
"boot.scr"
}
}
size = 10M
}
image sdcard.img {
hdimage {
# for root=PARTLABEL support
gpt = true
# default GPT location conflicts with bootloaders, move it after
gpt-location = 1M
}
partition u-boot {
in-partition-table = "no"
image = "u-boot-sunxi-with-spl.bin"
offset = 8192
size = 1056768 # 1MB - 8K + 16K(GPT)
}
partition boot {
partition-type = 0xC
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
image = "rootfs.ext4"
size = 512M
}
}