diff mbox

[U-Boot] mx7dsabresd: Increase CONFIG_ENV_OFFSET

Message ID 1495991244-25957-1-git-send-email-festevam@gmail.com
State Accepted
Commit da384fc67a30ff4685b679a822ef005a8f1aeaa7
Delegated to: Stefano Babic
Headers show

Commit Message

Fabio Estevam May 28, 2017, 5:07 p.m. UTC
From: Fabio Estevam <fabio.estevam@nxp.com>

After running 'saveenv' we can no longer boot.

Adjust CONFIG_ENV_OFFSET so that U-Boot binary and the environment
section do not overlap.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 include/configs/mx7dsabresd.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stefano Babic May 31, 2017, 8:05 a.m. UTC | #1
On 28/05/2017 19:07, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@nxp.com>
> 
> After running 'saveenv' we can no longer boot.
> 
> Adjust CONFIG_ENV_OFFSET so that U-Boot binary and the environment
> section do not overlap.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
> ---
>  include/configs/mx7dsabresd.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/configs/mx7dsabresd.h b/include/configs/mx7dsabresd.h
> index 39291a2..fe9fd66 100644
> --- a/include/configs/mx7dsabresd.h
> +++ b/include/configs/mx7dsabresd.h
> @@ -207,7 +207,7 @@
>  #define CONFIG_APBH_DMA_BURST8
>  #endif
>  
> -#define CONFIG_ENV_OFFSET		(8 * SZ_64K)
> +#define CONFIG_ENV_OFFSET		(12 * SZ_64K)
>  #ifdef CONFIG_NAND_MXS
>  #define CONFIG_SYS_FSL_USDHC_NUM	1
>  #else
> 

Applied to u-boot-imx -master, thanks !

Best regards,
Stefano Babic
diff mbox

Patch

diff --git a/include/configs/mx7dsabresd.h b/include/configs/mx7dsabresd.h
index 39291a2..fe9fd66 100644
--- a/include/configs/mx7dsabresd.h
+++ b/include/configs/mx7dsabresd.h
@@ -207,7 +207,7 @@ 
 #define CONFIG_APBH_DMA_BURST8
 #endif
 
-#define CONFIG_ENV_OFFSET		(8 * SZ_64K)
+#define CONFIG_ENV_OFFSET		(12 * SZ_64K)
 #ifdef CONFIG_NAND_MXS
 #define CONFIG_SYS_FSL_USDHC_NUM	1
 #else