[U-Boot] [U-Boot, 1/2] fw_env: calculate default number of env sectors

Tom Rini trini at ti.com
Wed Mar 12 22:05:25 CET 2014


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 <dustin at cumulusnetworks.com>

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: <http://lists.denx.de/pipermail/u-boot/attachments/20140312/3d1b0230/attachment.pgp>


More information about the U-Boot mailing list