Expose active mmc boot partition to scripts
PATCH 1/1 Expose active mmc boot partition to scripts
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.
--- cmd/mmc.c | 2 ++ 1 file changed, 2 insertions(+)
cmd/mmc.c +2 -0
@@ -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"
Signature · 1 line
2.7.4
PATCH 1/1 Expose active mmc boot partition to scripts
Quoted 15 lines · Reuben Dowle
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 <[email protected]>--- cmd/mmc.c | 2 ++ 1 file changed, 2 insertions(+)cmd/mmc.c +0
-0
cmd/mmc.c static int mmc_partconf_print(struct mmc *mmc) · line 791
Quoted 8 lines
cmd/mmc.c +2
-0@@ -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"
Rather than hard-code a variable here I would like to see this work like similar commands that take the variable to place the value in to as an argument, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200901/15d3ea6c/attachment.sig>