12 May, 2013

1 commit


11 May, 2013

2 commits


10 May, 2013

1 commit

  • The boot parameters are read from individual variables
    assigned for each of them. This been corrected and now
    they are stored as a part of the global data 'gd'
    structure. So read them from 'gd' instead.

    Signed-off-by: Sricharan R
    [trini: Add igep0033 hunk]
    Signed-off-by: Tom Rini

    SRICHARAN R
     

06 May, 2013

3 commits


02 May, 2013

9 commits

  • This patch add support for storing the environment redundant on
    mmc devices. Substantially it re-uses the logic from the NAND implementation,
    that means using an incremental counter for marking newer data.

    Signed-off-by: Michael Heimpold

    Michael Heimpold
     
  • Delete all occurrences of hang() and provide a generic function.

    Signed-off-by: Andreas Bießmann
    Acked-by: Albert ARIBAUD
    [trini: Modify check around puts() in hang.c slightly]
    Signed-off-by: Tom Rini

    Andreas Bießmann
     
  • log2 of the device block size serves as the shift value used to calculate
    the block number to read in file systems when implementing avaiable block
    sizes.
    It is needed quite often in file systems thus it is pre-calculated and
    stored in the block device descriptor.

    Signed-off-by: Egbert Eich

    Egbert Eich
     
  • Add "setexpr name gsub r s [t]" and "setexpr name sub r s [t]"
    commands which implement substring matching for the regular
    expression in the string , and substitution of the string .
    The result is assigned to the environment variable . If is
    not supplied, the previous value of is used instead. "gsub"
    performs global substitution, while "sub" will replace only the first
    substring.

    Both commands are closely modeled after the gawk functions with the
    same names.

    Examples:

    - Generate broadcast address by substituting the last two numbers of
    the IP address by "255.255":

    => print ipaddr
    ipaddr=192.168.1.104
    => setexpr broadcast sub "(.*\\.).*\\..*" "\\1255.255" $ipaddr
    broadcast=192.168.255.255

    - Depending on keyboard configuration (German vs. US keyboard) a
    barcode scanner may initialize the MAC address as C0:E5:4E:02:06:DC
    or as C0>E5>4E>02>06>DC. Make sure we always have a correct value:

    => print ethaddr
    ethaddr=C0>E5>4E>02>06>DC
    => setexpr ethaddr gsub > :
    ethaddr=C0:E5:4E:02:06:DC

    - Do the same, but substitute one step at a time in a loop until no
    futher matches:

    => setenv ethaddr C0>E5>4E>02>06>DC
    => while setexpr ethaddr sub > :
    > do
    > echo -----
    > done
    ethaddr=C0:E5>4E>02>06>DC
    -----
    ethaddr=C0:E5:4E>02>06>DC
    -----
    ethaddr=C0:E5:4E:02>06>DC
    -----
    ethaddr=C0:E5:4E:02:06>DC
    -----
    ethaddr=C0:E5:4E:02:06:DC
    -----
    C0:E5:4E:02:06:DC: No match
    => print ethaddr
    ethaddr=C0:E5:4E:02:06:DC

    etc.

    To enable this feature, the CONFIG_REGEX option has to be defined in
    the board config file.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     
  • Simplify the argument checking for the "setexpr" command. This is
    done mainly to make future extensions easier.

    Also improve the help message for the one argument version of the
    command - this does not "load an address", but a value, which in
    this context may be a plain number or a pointer dereference.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     
  • When CONFIG_REGEX is enabled, the new option "-e" becomes available
    which causes regular expression matches to be used. This allows for
    example things like these:

    - print all MAC addresses:

    => env grep -e eth.*addr
    eth1addr=00:10:ec:80:c5:15
    ethaddr=00:10:ec:00:c5:15

    - print all variables that have at least 2 colons in their value:

    => env grep -v -e :.*:
    addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev}:off
    panic=1
    eth1addr=00:10:ec:80:c5:15
    ethaddr=00:10:ec:00:c5:15
    ver=U-Boot 2013.04-rc1-00289-g497746b-dirty (Mar 22 2013 - 12:50:25)

    etc.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     
  • Add options to "env grep" command:

    -n : search only the envrironment variable names
    -v : search only their values
    -b : search both names and values (= default)

    An option "--" will stop parsing options, so to print variables that
    contain the striing "- " please use:

    env grep -- "- "

    Or to print all environment varioables which have a '-' in their name,
    use:

    env grep -n -- -

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     
  • Also drop hstrstr_r() which is not needed any more.
    The new code is way more flexible.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     
  • The output of "env grep" is unsorted, and printing is done by a
    private implementation to parse the hash table. We have all the
    needed code in place in hexport_r() alsready, so let's use this
    instead. Here we prepare the code for this, without any functional
    changes yet.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

01 May, 2013

9 commits


28 Apr, 2013

1 commit


22 Apr, 2013

1 commit

  • Sometimes it might make sense to verify the written data to NOR flash.
    This patch adds this feature. To enable this verify-after-write, you
    need to define CONFIG_FLASH_VERIFY in your board config header.

    Please note that this option is useless in nearly all cases,
    since such flash programming errors usually are detected earlier
    while unprotecting/erasing/programming. Please only enable
    this option if you really know what you are doing.

    Signed-off-by: Stefan Roese

    Stefan Roese
     

17 Apr, 2013

2 commits

  • eMMC vesrion is supported up to v4.5.
    But bootloader isn't saw the exact eMMC version.
    After applied this patch,
    if use the mmcinfo command, then can see the exactly mmc version.

    Signed-off-by: Jaehoon Chung
    Signed-off-by: Kyungmin Park
    Acked-by: Rommel Custodio

    Jaehoon Chung
     
  • In common/cmd_nvedit.c, en env_print(), the wrong type is used for len.
    hexport_r() returns -1 on error (like OOM), which is converted to
    0xffffffff when put in an unsigned. Said value is obviously bigger then
    0, and as a result an uninitialized string is then displayed. Other
    usages of hexport_r() in the code correctly uses ssize_t to keep its
    return value.

    Signed-off-by: Maxime Larocque

    Maxime Larocque
     

16 Apr, 2013

2 commits

  • Currently x86 has its own means of managing the global data and board data
    (bd_t), and this code resides in start.S. With generic board, we need to
    ensure that we leave this alone - i.e. don't clear it as we do on other
    archs.

    This fixes a problem where the memory init data is cleared which causes
    the video driver to operate very slowly.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • The intention of the memory init code is that it should work the same with
    CONFIG_SYS_GENERIC_BOARD and without. This is tricky because dram_init()
    is called prior to relocation with generic board (matching other archs)
    and after relocation without generic board.

    Adjust the init sequence so that dram_init() is not called in the generic
    board case, which seems like the easiest fix for now. Also ensure that
    relocation addresses are still calculated.

    Signed-off-by: Simon Glass

    Simon Glass
     

15 Apr, 2013

1 commit


13 Apr, 2013

2 commits

  • TPM command library implements a subset of TPM commands defined in TCG
    Main Specification 1.2 that are useful for implementing secure boot.
    More TPM commands could be added out of necessity.

    You may exercise these commands through the 'tpm' command. However, the
    raw TPM commands are too primitive for writing secure boot in command
    interpreter scripts; so the 'tpm' command also provides helper functions
    to make scripting easier.

    For example, to define a counter in TPM non-volatile storage and
    initialize it to zero:

    $ tpm init
    $ tpm startup TPM_ST_CLEAR
    $ tpm nv_define d 0x1001 0x1
    $ tpm nv_write d 0x1001 0

    And then increment the counter by one:

    $ tpm nv_read d 0x1001 i
    $ setexpr.l i $i + 1
    $ tpm nv_write d 0x1001 $i

    Signed-off-by: Che-Liang Chiou

    Che-liang Chiou
     
  • Conflicts:
    drivers/video/exynos_fb.c

    Albert ARIBAUD
     

12 Apr, 2013

6 commits