From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 2 Dec 2019 22:10:29 -0500 Subject: [U-Boot] [PATCH v3] warp7: Fix U-Boot corruption after saving the environment In-Reply-To: <20191203030446.5667-1-festevam@gmail.com> References: <20191203030446.5667-1-festevam@gmail.com> Message-ID: <20191203031029.GJ15966@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Dec 03, 2019 at 12:04:46AM -0300, Fabio Estevam wrote: > U-Boot binary has grown in such a way that it goes beyond the reserved > area for the environment variables. > > Running "saveenv" followed by a "reset" causes U-Boot to hang because > of this overlap. > > Fix this problem by selecting CONFIG_SYS_THUMB_BUILD=y, which > generates a smaller u-boot-dtb.imx binary. > > Also, in order to prevent this same problem in the future, use > CONFIG_BOARD_SIZE_LIMIT, which will detect the overlap in build-time. > > CONFIG_BOARD_SIZE_LIMIT does not accept math expressions, so declare > CONFIG_ENV_OFFSET with its direct value instead. > > Signed-off-by: Fabio Estevam Thanks for the rework. Can you please look at what other i.MX boards are likely fine, or perhaps more clearly if any i.MX5/6 SoCs do have thumb2 related errata that might make it a bad idea to use thumb by default ? Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: