21 Feb, 2014

1 commit


24 Jul, 2013

1 commit


02 Apr, 2013

1 commit

  • 'bool' is defined in random places. This patch consolidates them into a
    single header file include/linux/types.h, using stdbool.h introduced in C99.

    All other #define, typedef and enum are removed. They are all consistent with
    true = 1, false = 0.

    Replace FALSE, False with false. Replace TRUE, True with true.
    Skip *.py, *.php, lib/* files.

    Signed-off-by: York Sun

    York Sun
     

07 Mar, 2012

1 commit


17 Nov, 2011

1 commit

  • Fix:
    cmd_fdc.c: In function 'fdc_read_data':
    cmd_fdc.c:435:6: warning: variable 'flags' set but not used
    [-Wunused-but-set-variable]
    cmd_fdc.c:432:16: warning: variable 'pcn' set but not used
    [-Wunused-but-set-variable]
    cmd_fdc.c:431:20: warning: variable 'lastblk' set but not used
    [-Wunused-but-set-variable]

    Note: no attempts were made to otherwise cleanup the code.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

26 Jul, 2011

1 commit


12 Jan, 2011

1 commit


29 Nov, 2010

2 commits


25 Jul, 2010

1 commit

  • Lots of code use this construct:

    cmd_usage(cmdtp);
    return 1;

    Change cmd_usage() let it return 1 - then we can replace all these
    ocurrances by

    return cmd_usage(cmdtp);

    This fixes a few places with incorrect return code handling, too.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

05 Jul, 2010

1 commit

  • The hush shell dynamically allocates (and re-allocates) memory for the
    argument strings in the "char *argv[]" argument vector passed to
    commands. Any code that modifies these pointers will cause serious
    corruption of the malloc data structures and crash U-Boot, so make
    sure the compiler can check that no such modifications are being done
    by changing the code into "char * const argv[]".

    This modification is the result of debugging a strange crash caused
    after adding a new command, which used the following argument
    processing code which has been working perfectly fine in all Unix
    systems since version 6 - but not so in U-Boot:

    int main (int argc, char **argv)
    {
    while (--argc > 0 && **++argv == '-') {
    /* ====> */ while (*++*argv) {
    switch (**argv) {
    case 'd':
    debug++;
    break;
    ...
    default:
    usage ();
    }
    }
    }
    ...
    }

    The line marked "====>" will corrupt the malloc data structures and
    usually cause U-Boot to crash when the next command gets executed by
    the shell. With the modification, the compiler will prevent this with
    an
    error: increment of read-only location '*argv'

    N.B.: The code above can be trivially rewritten like this:

    while (--argc > 0 && **++argv == '-') {
    char *arg = *argv;
    while (*++arg) {
    switch (*arg) {
    ...

    Signed-off-by: Wolfgang Denk
    Acked-by: Mike Frysinger

    Wolfgang Denk
     

24 Jun, 2010

1 commit

  • The AmigaOneG3SE board has been orphaned or a very long time, and
    broken for more than 12 releases resp. more than 3 years. As nobody
    seems to be interested any more in this stuff we may as well ged rid
    of it, especially as it clutters many areas of the code so it is a
    continuous pain for all kinds of ongoing work.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

13 Jun, 2009

1 commit

  • Many of the help messages were not really helpful; for example, many
    commands that take no arguments would not print a correct synopsis
    line, but "No additional help available." which is not exactly wrong,
    but not helpful either.

    Commit ``Make "usage" messages more helpful.'' changed this
    partially. But it also became clear that lots of "Usage" and "Help"
    messages (fields "usage" and "help" in struct cmd_tbl_s respective)
    were actually redundant.

    This patch cleans this up - for example:

    Before:
    => help dtt
    dtt - Digital Thermometer and Thermostat

    Usage:
    dtt - Read temperature from digital thermometer and thermostat.

    After:
    => help dtt
    dtt - Read temperature from Digital Thermometer and Thermostat

    Usage:
    dtt

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

28 Jan, 2009

2 commits


19 Oct, 2008

1 commit


11 Sep, 2008

1 commit


14 Jul, 2008

1 commit


01 Jul, 2008

1 commit

  • Global FIT image operations like format check cannot be performed on
    a first sector data, defer them to the point when whole FIT image was
    uploaded to a system RAM.

    Signed-off-by: Marian Balakowicz
    Partial ('cmd_nand' case) Acked-by: Grant Erickson
    NAND and DOC bits Acked-by: Scott Wood

    Marian Balakowicz
     

21 May, 2008

1 commit

  • This commit gets rid of a huge amount of silly white-space issues.
    Especially, all sequences of SPACEs followed by TAB characters get
    removed (unless they appear in print statements).

    Also remove all embedded "vim:" and "vi:" statements which hide
    indentation problems.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

12 Mar, 2008

1 commit


29 Feb, 2008

1 commit

  • This patch introduces the following prefix convention for the
    image format handling and bootm related code:

    genimg_ - dual format shared code
    image_ - legacy uImage format specific code
    fit_ - new uImage format specific code
    boot_ - booting process related code

    Related routines are renamed and a few pieces of code are moved around and
    re-grouped.

    Signed-off-by: Marian Balakowicz

    Marian Balakowicz
     

25 Feb, 2008

1 commit

  • This patch adds framework for dual format images. Format detection is added
    and the bootm controll flow is updated to include cases for new FIT format
    uImages.

    When the legacy (image_header based) format is detected appropriate
    legacy specific handling is invoked. For the new (FIT based) format uImages
    dual boot framework has a minial support, that will only print out a
    corresponding debug messages. Implementation of the FIT specific handling will
    be added in following patches.

    Signed-off-by: Marian Balakowicz

    Marian Balakowicz
     

22 Feb, 2008

2 commits


07 Feb, 2008

1 commit


09 Jul, 2007

1 commit


04 Jul, 2007

1 commit


12 Mar, 2006

1 commit


02 Jul, 2003

1 commit


28 Jun, 2003

1 commit

  • - remove trailing white space, trailing empty lines, C++ comments, etc.
    - split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c)

    * Patches by Kenneth Johansson, 25 Jun 2003:
    - major rework of command structure
    (work done mostly by Michal Cendrowski and Joakim Kristiansen)

    wdenk
     

19 Nov, 2002

1 commit

  • Add code for AmigaOne board
    (preliminary merge to U-Boot, still WIP)

    * Patch by Jon Diekema, 12 Nov 2002:
    - Adding URL for IEEE OUI lookup
    - Making the autoboot #defines dependent on CONFIG_AUTOBOOT_KEYED
    being defined.
    - In the CONFIG_EXTRA_ENV_SETTINGS #define, the root-on-initrd and
    root-on-nfs macros are designed to switch how the default boot
    method gets defined.

    wdenk
     

18 Nov, 2002

1 commit


11 Nov, 2002

1 commit

  • Add "-n" to linker options to get rid of "Not enough room for
    program headers" problem

    * Patch by David Müller, 05 Nov 2002
    Rename CONFIG_PLL_INPUT_FREQ to CONFIG_SYS_CLK_FREQ
    so we can use an already existing name

    * Patch by Pierre Aubert, 05 Nov 2002
    Hardware related improvements in FDC boot code

    * Patch by Holger Schurig, 5 Nov 2002:
    Make the PXA really change it's frequency

    * Patch by Pierre Aubert, 05 Nov 2002
    Add support for slave serial Spartan 2 FPGAs

    * Fix uninitialized memory (MAC address) in 8xx SCC/FEC ethernet
    drivers

    wdenk
     

27 Aug, 2002

1 commit