All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mx6qsabrelite: increase offset for environment on SPI
@ 2020-09-14  9:56 Denis Pynkin
  2020-09-14 10:01 ` Stefano Babic
  2020-09-14 11:03 ` Fabio Estevam
  0 siblings, 2 replies; 13+ messages in thread
From: Denis Pynkin @ 2020-09-14  9:56 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-09-18 14:06 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-14  9:56 [PATCH] mx6qsabrelite: increase offset for environment on SPI Denis Pynkin
2020-09-14 10:01 ` Stefano Babic
2020-09-14 11:03 ` Fabio Estevam
2020-09-14 12:33   ` Tom Rini
2020-09-14 13:20     ` Denis Pynkin
2020-09-14 13:29       ` Tom Rini
2020-09-14 14:11         ` Tom Rini
2020-09-14 17:08           ` Denis Pynkin
2020-09-14 18:50             ` Tom Rini
2020-09-14 19:48               ` Denis Pynkin
2020-09-15 11:37                 ` [PATCH v2] mx6qsabrelite: increase the environment offset Denis Pynkin
2020-09-15 12:49                   ` Tom Rini
2020-09-18 14:06                   ` sbabic at denx.de

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.