[PATCH] mx6qsabrelite: increase offset for environment on SPI

Denis Pynkin denis.pynkin at collabora.com
Mon Sep 14 11:56:00 CEST 2020


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
-- 
2.25.4



More information about the U-Boot mailing list