kumquat-buildroot/board/orangepi/orangepi-zero-plus2/genimage.cfg
Sergey Matyukevich 194dbbfc92 board/orangepi-zero-plus2: switch to GPT for PARTLABEL support
Patch that pins mmc indexes was not accepted to mainline kernel. Drop that
patch and switch to GPT to use partition labels. For GPT the name of the
partition in genimage.cfg is used as the label for that partition. 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: Yann E. MORIN <yann.morin.1998@free.fr>
2021-02-03 23:13:34 +01:00

47 lines
790 B
INI

image boot.vfat {
vfat {
files = {
"Image",
"sun50i-h5-orangepi-zero-plus2.dtb",
"boot.scr"
}
}
size = 64M
}
image sdcard.img {
hdimage {
# for root=PARTLABEL support
gpt = true
# default GPT location conflicts with bootloaders, move it after
gpt-location = 1M
}
partition spl {
in-partition-table = "no"
image = "sunxi-spl.bin"
offset = 8192
}
partition u-boot {
in-partition-table = "no"
image = "u-boot.itb"
offset = 40K
size = 1024000 # 1MB - 40K + 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 = 256M
}
}