194dbbfc92
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>
47 lines
790 B
INI
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
|
|
}
|
|
}
|