15 Mar, 2016

3 commits


12 Sep, 2015

1 commit


23 Nov, 2014

1 commit


09 Aug, 2014

1 commit


08 Jul, 2014

1 commit

  • Use get_device_and_partition() is better since:
    1. It will call the device initialize function internally. So we can
    remove the mmc intialization code to save many lines.
    2. It is used by fatls/fatload/fatwrite. So saveenv & load env should
    use it too.
    3. It can parse the "D:P", "D", "D:", "D:auto" string to get correct
    device and partition information by run-time.

    Also we remove the FAT_ENV_DEVICE and FAT_ENV_PART. We use a string:
    FAT_ENV_DEVICE_AND_PART.
    For at91sam9m10g45ek, it is "0". That means use device 0 and if:
    a)device 0 has no partition table, use the whole device as a FAT file
    system.
    b)device 0 has partittion table, use the partition #1.

    Refer to the commit: 10a37fd7a4 for details of device & partition string.

    Signed-off-by: Josh Wu
    Reviewed-by: Stephen Warren

    Wu, Josh
     

22 Mar, 2014

1 commit

  • Implement env_export() wrapper, so that all implementers of saveenv() don't
    have to call hexport_r(), crc32() etc. sequence . This trims down a bit of
    code duplication.

    Signed-off-by: Marek Vasut

    Marek Vasut
     

15 Oct, 2013

1 commit


24 Jul, 2013

1 commit


06 Apr, 2013

1 commit


03 Apr, 2013

1 commit


14 Dec, 2012

1 commit

  • When printing all variables with env print, don't print variables that
    begin with '.'. If env print is called with a '-a' switch, then
    include variables that begin with '.' (just like the ls command).

    Variables printed explicitly will be printed even without the -a.

    Signed-off-by: Joe Hershberger

    Joe Hershberger
     

27 Sep, 2012

2 commits


31 Mar, 2012

1 commit

  • The following must be defined:

    CONFIG_ENV_IS_IN_FAT
    Enable this saving environment to FAT.

    FAT_ENV_INTERFACE
    Interface the FAT resides on (e.g. mmc).

    FAT_ENV_DEVICE
    The interface device number (e.g. 0 for mmc0)

    FAT_ENV_PART
    The device part (e.g. 1 for mmc0:1)

    FAT_ENV_FILE
    The filename of the environment file.

    Author: Maximilian Schwerin

    Removed dead DEBUG comment.
    Signed-off-by: Wolfgang Denk

    Maximilian Schwerin