[PATCH 3/9] ARM: k3: do not mount /boot when booting from eMMC
Sascha Hauer
s.hauer at pengutronix.de
Wed Feb 5 01:48:11 PST 2025
When booting from eMMC we load the subsequent stages from eMMC boot
partitions, so we do not need a boot FAT partition on eMMC. We can
use an unpartitioned area in the eMMC user area in this case, so
bail out from mounting /boot when eMMC boot is detected.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
arch/arm/mach-k3/common.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c
index 7ded1f3f04..97cb46d58e 100644
--- a/arch/arm/mach-k3/common.c
+++ b/arch/arm/mach-k3/common.c
@@ -275,6 +275,9 @@ static int omap_env_init(void)
if (bootsource_get() != BOOTSOURCE_MMC)
return 0;
+ if (k3_boot_is_emmc())
+ return 0;
+
instance = bootsource_get_instance();
cdevname = xasprintf("mmc%d", instance);
--
2.39.5
More information about the barebox
mailing list