[PATCH] Expose active mmc boot partition to scripts
Reuben Dowle
reuben.dowle at 4rf.com
Wed Sep 2 00:01:18 CEST 2020
This patch allows uboot scripts make choices about where to boot from based on
the active mmc boot partition. This allows having two copies of kernel,
filesystems etc, and choosing which to boot from based off the active
bootloader partition.
Signed-off-by: Reuben Dowle <reuben.dowle at 4rf.com>
---
cmd/mmc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cmd/mmc.c b/cmd/mmc.c
index 1529a3e..88de0c4 100644
--- a/cmd/mmc.c
+++ b/cmd/mmc.c
@@ -784,6 +784,8 @@ static int mmc_partconf_print(struct mmc *mmc)
ack = EXT_CSD_EXTRACT_BOOT_ACK(mmc->part_config);
part = EXT_CSD_EXTRACT_BOOT_PART(mmc->part_config);
+ env_set_hex("activepart", part);
+
printf("EXT_CSD[179], PARTITION_CONFIG:\n"
"BOOT_ACK: 0x%x\n"
"BOOT_PARTITION_ENABLE: 0x%x\n"
--
2.7.4
More information about the U-Boot
mailing list