From: Tom Rini Date: Wed, 12 Mar 2014 17:05:25 -0400 Subject: [U-Boot] [U-Boot, 1/2] fw_env: calculate default number of env sectors In-Reply-To: <1394167703-11797-2-git-send-email-dustin@cumulusnetworks.com> References: <1394167703-11797-2-git-send-email-dustin@cumulusnetworks.com> Message-ID: <20140312210525.GJ16805@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 Thu, Mar 06, 2014 at 08:48:22PM -0800, Dustin Byford wrote: > The assumed number of environment sectors (always 1) leads to an > incorrect top_of_range calculation in fw.env.c when a flash device has > an erase block size smaller than the environment data size (number of > environment sectors > 1). > > This change updates the default number of environment sectors to at > least cover the size of the environment. > > Also corrected a false statement about the number of sectors column in > fw_env.config. > > Signed-off-by: Dustin Byford Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: