Open
Description
I'm digesting the implications of the tryboot_a_b
update flow, and it's becoming clear that it is more designed for boot systems that depend on a ramdisk. Since the ramdisk would be named the same on the A/B boot partitions, it doesn't need any differences in cmdline.txt
, and init logic within it can then use the device tree's chosen/bootloader
properties to drive its dynamic logic.
But for systems that would prefer not to have a separate ramdisk, they are currently required to modify their kernel cmdline appropriately for the A/B partition that is being booted, and set up for that during their update process along with modifying the autoboot.txt
.
I can think of two possible ways that the rpi firmware could support this use-case:
- Support the
cmdline
setting in theautoboot.txt
in addition to theconfig.txt
. This way, the A/B boot partitions could be identical and contain bothcmdline_A.txt
andcmdline_B.txt
files with the appropriateroot=
values. - Support a
[boot_partition=n]
filter inconfig.txt
that would be filled by the active configuration from theautoboot.txt
logic. This way, theconfig.txt
could conditionally point to an appropriatecmdline*.txt
next to it.
Metadata
Metadata
Assignees
Labels
No labels
Activity