diff options
author | Alper Nebi Yasak <alpernebiyasak@gmail.com> | 2023-02-13 23:10:28 +0300 |
---|---|---|
committer | Alper Nebi Yasak <alpernebiyasak@gmail.com> | 2023-02-14 00:58:08 +0300 |
commit | 7932d5fa95a2c246b57a05f4f3da60a7d7b97783 (patch) | |
tree | 1dc4e9363ef930e859a2a2f3feb278d5e39e78b1 /resources/u-boot/qemu_arm64_12mb/config | |
parent | 8d57468ee53a9097305999ea5f31d26a5d4fced0 (diff) |
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 <alpernebiyasak@gmail.com>
Diffstat (limited to 'resources/u-boot/qemu_arm64_12mb/config')
-rw-r--r-- | resources/u-boot/qemu_arm64_12mb/config/default | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/resources/u-boot/qemu_arm64_12mb/config/default b/resources/u-boot/qemu_arm64_12mb/config/default index d8e53f90..b870bcb8 100644 --- a/resources/u-boot/qemu_arm64_12mb/config/default +++ b/resources/u-boot/qemu_arm64_12mb/config/default @@ -170,7 +170,6 @@ CONFIG_SYS_MALLOC_LEN=0x1000000 CONFIG_SYS_MALLOC_F_LEN=0x2000 CONFIG_NR_DRAM_BANKS=1 CONFIG_ENV_SIZE=0x40000 -CONFIG_ENV_SECT_SIZE=0x40000 # CONFIG_DM_GPIO is not set CONFIG_DEFAULT_DEVICE_TREE="qemu-arm64" CONFIG_BOARD_SPECIFIC_OPTIONS=y @@ -208,7 +207,6 @@ CONFIG_ARMV8_CE_SHA256=y CONFIG_IMX_DCD_ADDR=0x00910000 CONFIG_SYS_MEM_TOP_HIDE=0x0 CONFIG_SYS_LOAD_ADDR=0x40200000 -CONFIG_ENV_ADDR=0x4000000 CONFIG_MTDPARTS_NOR0="64m(u-boot)" CONFIG_MTDPARTS_NOR1="64m(u-boot-env)" @@ -766,11 +764,11 @@ CONFIG_SAVEENV=y # CONFIG_ENV_OVERWRITE is not set 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 -CONFIG_ENV_IS_IN_FLASH=y +# CONFIG_ENV_IS_IN_FLASH is not set # CONFIG_ENV_IS_IN_NAND is not set # CONFIG_ENV_IS_IN_NVRAM is not set # CONFIG_ENV_IS_IN_ONENAND is not set |