mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
Having the uboot environment defined on the SD card allows the user to use the uboot setenv and saveenv commands to make persistent changes (e.g. to change the boot order, or to set a server IP for PXE boot). Set the uboot-env partition type GUID to "U-Boot environment", see: https://github.com/u-boot/u-boot/blob/v2024.10/doc/README.gpt#L288 https://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GUIDs and enable CONFIG_PARTITION_TYPE_GUID such that uboot will automatically find the SD card partition to store/load the uboot environment to. We need to mark the root partition as bootable, otherwise uboot will no longer be able to boot the partition by default. (Most likely because the root partition is now no longer the first partition on the device.) Signed-off-by: Niklas Cassel <cassel@kernel.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
26 lines
410 B
INI
26 lines
410 B
INI
# SD card image for Radxa Rock 5b
|
|
|
|
image sdcard.img {
|
|
hdimage {
|
|
partition-table-type = "gpt"
|
|
}
|
|
|
|
partition uboot {
|
|
in-partition-table = "false"
|
|
image = "u-boot-rockchip.bin"
|
|
offset = 32K
|
|
}
|
|
|
|
partition uboot-env {
|
|
partition-type-uuid = 3de21764-95bd-54bd-a5c3-4abe786f38a8
|
|
offset = 16M
|
|
size = 64K
|
|
}
|
|
|
|
partition rootfs {
|
|
partition-type-uuid = L
|
|
image = "rootfs.ext2"
|
|
bootable = true
|
|
}
|
|
}
|