From 7932d5fa95a2c246b57a05f4f3da60a7d7b97783 Mon Sep 17 00:00:00 2001 From: Alper Nebi Yasak Date: Mon, 13 Feb 2023 23:10:28 +0300 Subject: u-boot: Disable environment storage U-Boot can be configured via environment variables which can be saved to various storage devices. This usually defaults to MMC or SPI depending on where it boots from, but assumes the device's layout is controlled by U-Boot. We should store the environment in SPI flash, but we also need to configure coreboot FMAPs to reserve the area U-Boot would use as its environment storage. For now, disable environment storage by setting ENV_IS_NOWHERE=y to avoid overwriting random regions of SPI or MMC if someone tries to save the variables. Signed-off-by: Alper Nebi Yasak --- resources/u-boot/daisy_spring/config/default | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'resources/u-boot/daisy_spring/config/default') diff --git a/resources/u-boot/daisy_spring/config/default b/resources/u-boot/daisy_spring/config/default index c41de3be..85b45f44 100644 --- a/resources/u-boot/daisy_spring/config/default +++ b/resources/u-boot/daisy_spring/config/default @@ -200,8 +200,6 @@ CONFIG_EXYNOS_TMU=y CONFIG_NR_DRAM_BANKS=8 CONFIG_SPL_LDSCRIPT="board/samsung/common/exynos-uboot-spl.lds" CONFIG_ENV_SIZE=0x4000 -CONFIG_ENV_OFFSET=0x3FC000 -CONFIG_ENV_SECT_SIZE=0x4000 CONFIG_DM_GPIO=y CONFIG_DEFAULT_DEVICE_TREE="exynos5250-spring" CONFIG_SPL_TEXT_BASE=0x02023400 @@ -236,7 +234,6 @@ CONFIG_IMX_DCD_ADDR=0x00910000 CONFIG_IMX_CONTAINER_CFG="" CONFIG_SYS_MEM_TOP_HIDE=0x0 CONFIG_SYS_LOAD_ADDR=0x43e00000 -CONFIG_ENV_ADDR=0x0 # # ARM debug @@ -890,7 +887,7 @@ CONFIG_SAVEENV=y CONFIG_ENV_OVERWRITE=y CONFIG_ENV_MIN_ENTRIES=64 CONFIG_ENV_MAX_ENTRIES=512 -# CONFIG_ENV_IS_NOWHERE is not set +CONFIG_ENV_IS_NOWHERE=y # CONFIG_ENV_IS_IN_EEPROM is not set # CONFIG_ENV_IS_IN_FAT is not set # CONFIG_ENV_IS_IN_EXT4 is not set @@ -900,13 +897,7 @@ CONFIG_ENV_MAX_ENTRIES=512 # CONFIG_ENV_IS_IN_NVRAM is not set # CONFIG_ENV_IS_IN_ONENAND is not set # CONFIG_ENV_IS_IN_REMOTE is not set -CONFIG_ENV_IS_IN_SPI_FLASH=y -# CONFIG_ENV_SECT_SIZE_AUTO is not set -CONFIG_ENV_SPI_BUS=1 -CONFIG_ENV_SPI_CS=0 -CONFIG_ENV_SPI_MAX_HZ=50000000 -CONFIG_ENV_SPI_MODE=0x0 -# CONFIG_ENV_SPI_EARLY is not set +# CONFIG_ENV_IS_IN_SPI_FLASH is not set # CONFIG_SYS_REDUNDAND_ENVIRONMENT is not set CONFIG_SYS_RELOC_GD_ENV_ADDR=y # CONFIG_USE_DEFAULT_ENV_FILE is not set -- cgit v1.2.1