* [PATCH 1/1] configs: SiFive Unmatched: enable 'env erase' sub-command
@ 2024-11-12 10:42 Heinrich Schuchardt
2024-11-18 9:12 ` Leo Liang
0 siblings, 1 reply; 2+ messages in thread
From: Heinrich Schuchardt @ 2024-11-12 10:42 UTC (permalink / raw)
To: Paul Walmsley, Green Wan; +Cc: Yong-Xuan Wang, u-boot, Heinrich Schuchardt
With the move from script based booting to using bootmeth a lot of
environment variables have changed. To always use the default environment
it is recommendable to erase the environment stored in the SPI flash.
This can be done with the 'env erase' sub-command.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
configs/sifive_unmatched_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/sifive_unmatched_defconfig b/configs/sifive_unmatched_defconfig
index 1ea744ffa80..565373ea04f 100644
--- a/configs/sifive_unmatched_defconfig
+++ b/configs/sifive_unmatched_defconfig
@@ -42,6 +42,7 @@ CONFIG_SPL_SYS_MALLOC=y
CONFIG_SPL_DM_SPI_FLASH=y
CONFIG_SPL_DM_RESET=y
CONFIG_SPL_SPI_LOAD=y
+CONFIG_CMD_ERASEENV=y
CONFIG_CMD_EEPROM=y
CONFIG_CMD_MEMINFO=y
CONFIG_CMD_PWM=y
--
2.45.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] configs: SiFive Unmatched: enable 'env erase' sub-command
2024-11-12 10:42 [PATCH 1/1] configs: SiFive Unmatched: enable 'env erase' sub-command Heinrich Schuchardt
@ 2024-11-18 9:12 ` Leo Liang
0 siblings, 0 replies; 2+ messages in thread
From: Leo Liang @ 2024-11-18 9:12 UTC (permalink / raw)
To: Heinrich Schuchardt; +Cc: Paul Walmsley, Green Wan, Yong-Xuan Wang, u-boot
On Tue, Nov 12, 2024 at 11:42:23AM +0100, Heinrich Schuchardt wrote:
> With the move from script based booting to using bootmeth a lot of
> environment variables have changed. To always use the default environment
> it is recommendable to erase the environment stored in the SPI flash.
> This can be done with the 'env erase' sub-command.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> ---
> configs/sifive_unmatched_defconfig | 1 +
> 1 file changed, 1 insertion(+)
Applied to u-boot-riscv/master, thanks!
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-11-18 9:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-12 10:42 [PATCH 1/1] configs: SiFive Unmatched: enable 'env erase' sub-command Heinrich Schuchardt
2024-11-18 9:12 ` Leo Liang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox