[PATCH] board: freescale: imx93_evk: Fix MMC environment offset boot conflict.
Tom Rini
trini at konsulko.com
Fri Jun 30 00:58:46 CEST 2023
On Tue, Apr 11, 2023 at 04:05:31PM -0400, Ken Sloat wrote:
> Currently, the imx93_evk is configured with CONFIG_ENV_IS_IN_MMC and the
> chosen environment offset in the config is 0x400000. Unless the user
> programs the associated fuses, this offset is the default secondary boot
> image offset used by the i.MX 93 ROM bootloader. With certain
> combinations of environmental variables, the CRC and beginning of the
> environment can potentially falsely appear as a valid boot image
> container header. If the expected "sw_version" offset within this
> mistaken boot image container is greater than the primary's, the ROM
> bootloader can skip booting of the primary image altogether and attempt
> to boot with the content of the environment data. This will then hang
> the system.
>
> To fix this, move the environment from 0x400000 to 0x700000 reserving up
> to 3 MB at 0x400000 for any actual secondary user image container.
>
> Signed-off-by: Ken Sloat <ken.s at variscite.com>
> Reviewed-by: Peng Fan <peng.fan at nxp.com>
> Reviewed-by: Fabio Estevam <festevam at denx.de>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230629/c8de2adc/attachment.sig>
More information about the U-Boot
mailing list