diff options
author | Samuel Holland <samuel@sholland.org> | 2021-04-18 22:16:21 -0500 |
---|---|---|
committer | Andre Przywara <andre.przywara@arm.com> | 2021-08-01 00:11:34 +0100 |
commit | 1011ebc72bda061cc9d34c1d6ff4506291a88657 (patch) | |
tree | cc6f21bcad1485023f6a5dafa7c2a428242506c4 /env | |
parent | 22ecb12132a2de80a08654f139ff978176034c38 (diff) | |
download | u-boot-1011ebc72bda061cc9d34c1d6ff4506291a88657.zip u-boot-1011ebc72bda061cc9d34c1d6ff4506291a88657.tar.gz u-boot-1011ebc72bda061cc9d34c1d6ff4506291a88657.tar.bz2 |
sunxi: Select environment MMC based on boot device
Currently, the environment is always stored in eMMC if eMMC is enabled
in the config. This means images written to SD and eMMC will cross-
contaminate their environments unless the configuration is changed.
By dropping the device number from the environment location string and
implementing mmc_get_env_dev, we will always use the environment from
the boot device when booting from SD/eMMC.
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'env')
-rw-r--r-- | env/Kconfig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/env/Kconfig b/env/Kconfig index 691f4d4..67ff172 100644 --- a/env/Kconfig +++ b/env/Kconfig @@ -446,8 +446,7 @@ config ENV_FAT_DEVICE_AND_PART depends on ENV_IS_IN_FAT default "0:1" if TI_COMMON_CMD_OPTIONS default "0:auto" if ARCH_ZYNQ || ARCH_ZYNQMP || ARCH_VERSAL - default "0:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA = -1 - default "1:auto" if ARCH_SUNXI && MMC_SUNXI_SLOT_EXTRA != -1 + default ":auto" if ARCH_SUNXI default "0" if ARCH_AT91 help Define this to a string to specify the partition of the device. It can |