]> git.baikalelectronics.ru Git - uboot.git/commit
sunxi: Select environment MMC based on boot device
authorSamuel Holland <samuel@sholland.org>
Mon, 19 Apr 2021 03:16:21 +0000 (22:16 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Sat, 31 Jul 2021 23:11:34 +0000 (00:11 +0100)
commitc38515e1e0428b78341624fcddd673c3ba1687cd
treecc6f21bcad1485023f6a5dafa7c2a428242506c4
parent319a8086ac809f213329c828e58fb575addad307
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>
board/sunxi/board.c
env/Kconfig