diff options
author | Roland Hieber <rhi@pengutronix.de> | 2023-10-20 11:05:16 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2023-10-20 12:54:11 +0200 |
commit | e0ca556db7983a99acc3330dc32cdae395e84003 (patch) | |
tree | a1720646675ff121dd6cc4c09a633d1b08d89c10 /configs/platform-v7a/barebox.config | |
parent | 1286893d608b0ea6dce88da0c3afdadf926ffa3c (diff) | |
download | DistroKit-e0ca556db7983a99acc3330dc32cdae395e84003.tar.gz DistroKit-e0ca556db7983a99acc3330dc32cdae395e84003.tar.xz |
v7a: barebox: pass root=mmcblkXpN instead of root=PARTUUID=… to kernel
Kernels prior to v5.10-rc1 could not ensure deterministic ordering for
MMC devices. For this reason, the default 'append-root' behaviour of
barebox for MMC block devices is to append a 'root=PARTUUID=XYZ' option
to the kernel command line. The PARTUUID is derived from the partition
table and is expected to be unique system-wide. This is however
susceptible to breakage if the exact same image is written to different
boot media in the system, e.g. SD and eMMC, so the PARTUUID will no
longer uniquely refer to a single partition.
Newer kernel versions honor the numbering used for 'mmc' aliases,
which makes 'root=mmcblkXpN' deterministic as long as barebox and
kernel aliases are identical. Since we're using kernel 6.4, enable this
option in barebox.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Link: https://lore.pengutronix.de/20231020090519.3320460-3-rhi@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/barebox.config')
-rw-r--r-- | configs/platform-v7a/barebox.config | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configs/platform-v7a/barebox.config b/configs/platform-v7a/barebox.config index 7bc38c8..2cb5df8 100644 --- a/configs/platform-v7a/barebox.config +++ b/configs/platform-v7a/barebox.config @@ -174,7 +174,7 @@ CONFIG_BOOTM_OFTREE=y # CONFIG_BOOTM_FITIMAGE is not set CONFIG_BLSPEC=y CONFIG_FLEXIBLE_BOOTARGS=y -# CONFIG_MMCBLKDEV_ROOTARG is not set +CONFIG_MMCBLKDEV_ROOTARG=y CONFIG_BAREBOX_UPDATE=y CONFIG_SYSTEM_PARTITIONS=y CONFIG_IMD=y |