From: Tom Rini Date: Fri, 30 Aug 2019 14:14:41 -0400 Subject: [U-Boot] [PATCH] mx53loco: Fix U-Boot corruption after saving the environment In-Reply-To: <20190830165829.23016-1-festevam@gmail.com> References: <20190830165829.23016-1-festevam@gmail.com> Message-ID: <20190830181441.GN26850@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 Fri, Aug 30, 2019 at 01:58:29PM -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" causes U-Boot to hang because of this overlap. > > Fix this problem by increasing the CONFIG_ENV_OFFSET size. > > 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 Gah! Are there more i.mx platforms that are not setting BOARD_SIZE_LIMIT today? I assume there are, sadly. Can you audit and catch the rest of these likely problems, and add limits so we won't repeat this again. Thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: