]> git.baikalelectronics.ru Git - uboot.git/commit
mx6qsabrelite: increase the environment offset
authorDenis Pynkin <denis.pynkin@collabora.com>
Tue, 15 Sep 2020 11:37:14 +0000 (14:37 +0300)
committerStefano Babic <sbabic@denx.de>
Thu, 17 Sep 2020 12:40:40 +0000 (14:40 +0200)
commit8bb6096083bdb485829f36ccbeebe8861a9e6bf2
treeedce3cdfe7de8f6b76fae5896d3c728291515cba
parenta8c100f1e886f5502a85e2dfd1ed3e6e13820e09
mx6qsabrelite: increase the environment offset

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 cea21c6 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 <denis.pynkin@collabora.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
configs/mx6qsabrelite_defconfig