[U-Boot] [PATCH] env_sf: support embedded environments

Haavard Skinnemoen haavard.skinnemoen at atmel.com
Thu Dec 11 12:29:21 CET 2008


Mike Frysinger wrote:
> If both CONFIG_ENV_SECT_SIZE and CONFIG_ENV_SIZE are defined, and the sect
> size is larger than the env size, then it means the env is embedded in a
> block.  So we have to save/restore the part of the sector which is not the
> environment.  Previously, saving the environment in SPI flash in this
> setup would probably brick the board as the rest of the sector tends to
> contain actual U-Boot data/code.
> 
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>

Makes sense to me. Assuming this is how other types of flash work,

Acked-by: Haavard Skinnemoen <haavard.skinnemoen at atmel.com>


More information about the U-Boot mailing list