[U-Boot] [U-Boot, v1] spl: saveenv: adding saveenv support in SPL

Tom Rini trini at konsulko.com
Sat Oct 8 19:08:26 CEST 2016


On Wed, Sep 28, 2016 at 02:46:18PM +0530, B, Ravi wrote:

> By default saveenv option is not supported for SPL. This patch
> enable the support for save environment variable for SPL build.
> 
> Enable save environment support in SPL after setenv. By default
> the saveenv option is not provided in SPL, but some boards need
> this support in 'Falcon' boot, where SPL need to boot from
> different images based on environment variable set by OS. For
> example OS may set "reboot_image" environment variable to
> "recovery" inorder to boot recovery image by SPL. The SPL read
> "reboot_image" and act accordingly and change the reboot_image
> to default mode using setenv and save the environemnt.
> 
> Signed-off-by: Ravi Babu <ravibabu at ti.com>
> Reviewed-by: Simon Glass <sig at chromium.org>
> 
> 
> change in v1:
> 	- dropped SUPPORT, use CONFIG_SPL_SAVEENV
> 	- updates the comments in mmc_private.h

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: <http://lists.denx.de/pipermail/u-boot/attachments/20161008/fe9a0f84/attachment.sig>


More information about the U-Boot mailing list