21 Nov, 2017

1 commit


16 Oct, 2017

1 commit


16 Aug, 2017

8 commits


15 Aug, 2017

3 commits

  • Set up a location driver for each supported environment location. At
    present this just points to the global functions and is not used. A
    later patch will switch this over to use private functions in each driver.

    There are several special cases here in various drivers to handle
    peculiarities of certain boards:

    1. Some boards define CONFIG_ENV_IS_IN_FAT and CONFIG_SPL_ENV_SUPPORT but
    do not actually load the environment in SPL. The env load code was
    optimised out before but with the driver, it is not. Therefore a special
    case is added to env/fat.c. The correct fix (depending on board testing
    might be to disable CONFIG_SPL_ENV_SUPPORT.

    2. A similar situations happens with CONFIG_ENV_IS_IN_FLASH. Some boards
    do not actually load the environment in SPL, so to reduce code size we
    need to drop that code. A similar fix may be possible with these boards,
    or it may be possible to adjust the environment CONFIG settings.

    Added to the above is that the CONFIG_SPL_ENV_SUPPORT option does not
    apply when the environment is in flash.

    Obviously the above has been discovered through painful and time-consuming
    trial and error. Hopefully board maintainers can take a look and figure
    out what is actually needed.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • At present we have three states for the environment, numbered 0, 1 and 2.
    Add an enum to record this to avoid open-coded values.

    Signed-off-by: Simon Glass
    Reviewed-by: Tom Rini

    Simon Glass
     
  • These functions are not used outside this file. Make them static and order
    them to avoid forward declarations.

    Signed-off-by: Simon Glass
    Reviewed-by: Tom Rini

    Simon Glass
     

23 Jul, 2017

1 commit

  • All current environments that implement redundancy use almost
    identical implementations. This patch implements the env_nand
    implementation as a function in env_common, and updates the
    env_export function to export an env_nand-style 'flags' field by
    default.

    Signed-off-by: Fiach Antaw
    Reviewed-by: Tom Rini

    Fiach Antaw
     

07 Apr, 2017

1 commit

  • The environment location is something that might change per board
    (depending on what storage options are availaible there) or depending on
    the user choice (when we have several options).

    Instead of hardcoding it in our configuration header, create a Kconfig
    choice with the options we use for now, and the symbols that depend on it.

    Once done, also remove the irrelevant sunxi defines.

    Signed-off-by: Maxime Ripard
    Reviewed-by: Tom Rini
    Reviewed-by: Jagan Teki

    Maxime Ripard
     

07 Oct, 2016

1 commit


02 Aug, 2014

2 commits


22 Mar, 2014

2 commits


24 Jul, 2013

1 commit


14 Jun, 2013

1 commit

  • The commit d196bd8 (env_mmc: add support for redundant environment)
    introduce the following compile error when enable redundant
    environment support with MMC
    ---88---

    Add this patch to fix it

    Signed-off-by: Bo Shen
    Reviewed-by: Michael Heimpold
    Signed-off-by: Andy Fleming

    Bo Shen
     

12 Apr, 2013

2 commits


14 Dec, 2012

4 commits


19 Sep, 2012

2 commits

  • Change the syntax (user API) for "env default":
    -f: override write-once variables
    var... : accept individual variable(s)
    -a: all (resetting the whole env is NOT the default behavior)

    Enable variable checking and make changes effective by
    enabling do_apply argument to himport_r().

    Signed-off-by: Gerlando Falauto

    Gerlando Falauto
     
  • Change hashtable so that a callback function will decide whether a
    variable can be overwritten, and possibly apply the changes.

    So add a new field to struct hsearch_data:

    o "apply" callback function to check whether a variable can be
    overwritten, and possibly immediately apply the changes;
    when NULL, no check is performed.

    And a new argument to himport_r():
    o "do_apply": whether to call the apply callback function

    NOTE: This patch does not change the current behavior.

    Signed-off-by: Gerlando Falauto
    Reviewed-by: Marek Vasut

    Gerlando Falauto
     

22 Jun, 2012

1 commit


05 Jan, 2012

1 commit


22 Nov, 2011

5 commits


01 Aug, 2011

1 commit


26 Jul, 2011

1 commit


16 Feb, 2011

1 commit