From mboxrd@z Thu Jan 1 00:00:00 1970 From: sbabic at denx.de Date: Fri, 18 Sep 2020 16:06:44 +0200 (CEST) Subject: [PATCH v2] mx6qsabrelite: increase the environment offset In-Reply-To: <20200915113714.1174226-1-denis.pynkin@collabora.com> Message-ID: <20200918140644.BEE93824A2@phobos.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > The size of the binary created with the default U-boot config is much > greater than the default offset for environment `0x60000`. > In case if that binary is used for booting via MMC it is overlapped with > the environment stored on MMC. > This leads to U-Boot corruption while saving environment with `saveenv` > command and non-bootable SabreLite board. > The offset for environment `CONFIG_ENV_OFFSET=0x60000` was added in > commit a09fea1 but did not count in the change to `0xC0000` if option > `CONFIG_ENV_IS_IN_MMC` is used. > The offset is also used for variant with environment saving onto SPI NOR > flash (with enabled option `CONFIG_ENV_IS_IN_SPI_FLASH`). In that case the > U-Boot binary flashed on SPI NOR is also corrupted after environment > saving with the original 0x60000 offset. > Signed-off-by: Denis Pynkin > Reviewed-by: Tom Rini Applied to u-boot-imx, master, thanks ! 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 =====================================================================