From: Tom Rini Date: Mon, 28 Nov 2016 20:04:42 -0500 Subject: [U-Boot] [U-Boot, v2] tools/env: fix environment alignment tests for block devices In-Reply-To: <1479560336-8385-1-git-send-email-max.krummenacher@toradex.com> References: <1479560336-8385-1-git-send-email-max.krummenacher@toradex.com> Message-ID: <20161129010442.GG2546@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 Sat, Nov 19, 2016 at 01:58:56PM +0100, Max Krummenacher wrote: > commit 183923d3e412500bdc597d1745e2fb6f7f679ec7 enforces that the > environment must start at an erase block boundary. > > For block devices the sample fw_env.config does not mandate a erase block size > for block devices. A missing setting defaults to the full env size. > > Depending on the environment location the alignment check now errors out for > perfectly legal settings. > > Fix this by defaulting to the standard blocksize of 0x200 for environments > stored in a block device. > That keeps the fw_env.config files for block devices working even with that > new check. > > Signed-off-by: Max Krummenacher Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: