Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • B, Ravi's avatar
    d2d9bdfc
    spl: saveenv: adding saveenv support in SPL · d2d9bdfc
    B, Ravi authored
    
    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: default avatarRavi Babu <ravibabu@ti.com>
    Reviewed-by: default avatarSimon Glass <sig@chromium.org>
    
    change in v1:
    	- dropped SUPPORT, use CONFIG_SPL_SAVEENV
    	- updates the comments in mmc_private.h
    d2d9bdfc
    History
    spl: saveenv: adding saveenv support in SPL
    B, Ravi authored
    
    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: default avatarRavi Babu <ravibabu@ti.com>
    Reviewed-by: default avatarSimon Glass <sig@chromium.org>
    
    change in v1:
    	- dropped SUPPORT, use CONFIG_SPL_SAVEENV
    	- updates the comments in mmc_private.h