]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Revert "board: synquacer: developerbox: Don't set gd->env_addr to default_environment"
authorMasami Hiramatsu <masami.hiramatsu@linaro.org>
Thu, 18 Nov 2021 05:45:25 +0000 (14:45 +0900)
committerTom Rini <trini@konsulko.com>
Thu, 18 Nov 2021 19:22:11 +0000 (14:22 -0500)
Without default setting of gd->env_addr, U-Boot will cause
a synchronous abort if the env-variables on the SPI flash is
broken or not saved corectly. Set gd->env_addr correctly.

This reverts commit 535870f3b0fb09ee9b2885409f05304111464643.

Signed-off-by: Masami Hiramatsu <masami.hiramatsu@linaro.org>
Reviewed-by: Marek BehĂșn <marek.behun@nic.cz>
board/socionext/developerbox/developerbox.c

index 31b1349514d53321822aa071e76c446338cc9fa3..9552bfcdc3bb64cbc3125057bfb50d615c6555c7 100644 (file)
@@ -82,6 +82,8 @@ int board_init(void)
 {
        gd->bd->bi_boot_params = CONFIG_SYS_LOAD_ADDR + LOAD_OFFSET;
 
+       gd->env_addr = (ulong)&default_environment[0];
+
        synquacer_setup_scbm_smmu();
 
        return 0;