38d04e6b13
GPT provides partition labels, which can be used to tell the kernel to find the rootfs based on it (root=PARTLABEL=rootfs) as a nicer/more extensible solution than the MBR disk signature / PARTUUID. When using GPT, the name of the partition in genimage.cfg is used as the label for that partition. The default GPT partition table location unfortunately conflicts with the SPL location, so move the 16KB GPT table after it. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> [yann.morin.1998@free.fr: add the comment about 'rootfs'] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
43 lines
754 B
INI
43 lines
754 B
INI
# Minimal SD card image for the OrangePi R1
|
|
#
|
|
image boot.vfat {
|
|
vfat {
|
|
files = {
|
|
"zImage",
|
|
"sun8i-h2-plus-orangepi-r1.dtb",
|
|
"boot.scr"
|
|
}
|
|
}
|
|
size = 10M
|
|
}
|
|
|
|
image sdcard.img {
|
|
hdimage {
|
|
# for root=PARTLABEL support
|
|
gpt = true
|
|
# default GPT location conflicts with spl, 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 - 8192 + 16384 (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 commadn line
|
|
partition rootfs {
|
|
partition-type = 0x83
|
|
image = "rootfs.ext4"
|
|
size = 512M
|
|
}
|
|
}
|