[PATCH] mx6qsabrelite: increase offset for environment on SPI

Stefano Babic sbabic at denx.de
Mon Sep 14 12:01:34 CEST 2020


On 14.09.20 11:56, Denis Pynkin wrote:
> The size of the binary created with the default U-boot config is much
> greater than the default offset for environment `0x60000`. If the new
> version is flashed onto SPI it overlaps with the stored environment.
> This leads to U-Boot corruption in case of saving environment onto
> SPI and non-bootable SabreLite board.
> 
> Signed-off-by: Denis Pynkin <denis.pynkin at collabora.com>
> ---
>  configs/mx6qsabrelite_defconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/configs/mx6qsabrelite_defconfig b/configs/mx6qsabrelite_defconfig
> index 008fcfe04c..6e7193e411 100644
> --- a/configs/mx6qsabrelite_defconfig
> +++ b/configs/mx6qsabrelite_defconfig
> @@ -4,7 +4,7 @@ CONFIG_SYS_TEXT_BASE=0x17800000
>  CONFIG_SYS_MALLOC_F_LEN=0x4000
>  CONFIG_NR_DRAM_BANKS=1
>  CONFIG_ENV_SIZE=0x2000
> -CONFIG_ENV_OFFSET=0x60000
> +CONFIG_ENV_OFFSET=0xC0000
>  CONFIG_MX6Q=y
>  CONFIG_TARGET_NITROGEN6X=y
>  CONFIG_DM_GPIO=y
> 

Reviewed-by: Stefano Babic <sbabic at denx.de>

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list