[PATCH] configs: visionfive2: Disable ENV_IS_NOWHERE
authorAurelien Jarno <aurelien@aurel32.net>
Sat, 27 Jan 2024 13:48:45 +0000 (14:48 +0100)
committerVagrant Cascadian <vagrant@debian.org>
Thu, 2 Jan 2025 21:47:07 +0000 (13:47 -0800)
The VisionFive 2 board supports saving the u-boot environment settings
are saved to on-board SPI flash. However the defconfig enables both
ENV_IS_NOWHERE and ENV_IS_IN_SPI_FLASH, preventing the "saveenv" command
to work. Fix that by disabling ENV_IS_NOWHERE.

Fixes: 7d79bed00c9e ("configs: starfive: Enable environment in SPI flash support")
Reported-by: E Shattow <lucent@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Gbp-Pq: Topic riscv64
Gbp-Pq: Name configs-visionfive2-Disable-ENV_IS_NOWHERE.patch

configs/starfive_visionfive2_defconfig

index 7b39a63359dc06afa55f6769d6c4d3013ba5abaa..00145b21f90e33d5bc3efee7c88585fdeaf327c0 100644 (file)
@@ -77,7 +77,6 @@ CONFIG_CMD_TFTPPUT=y
 CONFIG_CMD_BOOTSTAGE=y
 CONFIG_OF_BOARD=y
 CONFIG_ENV_OVERWRITE=y
-CONFIG_ENV_IS_NOWHERE=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_ENV_SECT_SIZE_AUTO=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y