24 Jul, 2013

1 commit


25 Jun, 2013

1 commit


13 Mar, 2013

1 commit

  • Refactor linker-generated array code so that symbols
    which were previously linker-generated are now compiler-
    generated. This causes relocation records of type
    R_ARM_ABS32 to become R_ARM_RELATIVE, which makes
    code which uses LGA able to run before relocation as
    well as after.

    Note: this affects more than ARM targets, as linker-
    lists span possibly all target architectures, notably
    PowerPC.

    Conflicts:
    arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds
    arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds
    arch/arm/cpu/armv7/omap-common/u-boot-spl.lds
    board/ait/cam_enc_4xx/u-boot-spl.lds
    board/davinci/da8xxevm/u-boot-spl-da850evm.lds
    board/davinci/da8xxevm/u-boot-spl-hawk.lds
    board/vpac270/u-boot-spl.lds

    Signed-off-by: Albert ARIBAUD

    Albert ARIBAUD
     

04 Feb, 2013

1 commit


12 Dec, 2012

1 commit

  • Provide u-boot console functions to access IO space registers. A no
    thrills implementation, accessing one register at a time.

    For example:
    boot > iod 80
    0080: 00000094
    boot > iod.w 80
    0080: 0094
    boot > iod.b 80
    0080: 94
    boot > iow.b 0x80 12
    boot > iod 0x80
    0080: 00000012

    Signed-off-by: Vadim Bendebury
    Signed-off-by: Simon Glass

    Vadim Bendebury
     

22 Oct, 2012

2 commits

  • The command declaration now uses the new LG-array method to generate
    list of commands. Thus the __u_boot_cmd section is now superseded and
    redundant and therefore can be removed. Also, remove externed symbols
    associated with this section from include/command.h .

    Signed-off-by: Marek Vasut
    Cc: Joe Hershberger
    Cc: Mike Frysinger

    Marek Vasut
     
  • This patch converts the old method of creating a list of command
    onto the new LG-arrays code. The old u_boot_cmd section is converted
    to new u_boot_list_cmd subsection and LG-array macros used as needed.

    Minor adjustments had to be made to the common code to work with the
    LG-array macros, mostly the fixup_cmdtable() calls are now passed the
    ll_entry_start and ll_entry_count instead of linker-generated symbols.

    The command.c had to be adjusted as well so it would use the newly
    introduced LG-array API instead of directly using linker-generated
    symbols.

    Signed-off-by: Marek Vasut
    Cc: Joe Hershberger
    Cc: Mike Frysinger

    Marek Vasut
     

26 Sep, 2012

1 commit


07 Mar, 2012

2 commits


22 Nov, 2011

1 commit

  • Cleanup the cmd_nvedit.c checkpatch warnings, errors and coding style.
    There are 10 wanrings left about the simple_strtoul() function:
    WARNING: simple_strtoul is obsolete, use kstrtoul instead
    #359: FILE: cmd_nvedit.c:359:
    + load_addr = simple_strtoul(argv[2], NULL, 16);

    ...

    total: 0 errors, 10 warnings, 1043 lines checked

    Signed-off-by: Igor Grinberg

    Igor Grinberg
     

18 Oct, 2011

1 commit

  • By default sections are 16-byte aligned on some architectures, but the
    command name structure (struct cmd_tbl_s) does not have padding to
    16 bytes. This reduces the alignment to 4-bytes so that the command
    table can be accessed correctly on any architecture.

    (Note: this needs doing properly)

    Signed-off-by: Simon Glass

    Simon Glass
     

26 Jul, 2011

2 commits


29 Nov, 2010

5 commits


30 Oct, 2010

1 commit

  • By now, the majority of architectures have working relocation
    support, so the few remaining architectures have become exceptions.
    To make this more obvious, we make working relocation now the default
    case, and flag the remaining cases with CONFIG_NEEDS_MANUAL_RELOC.

    Signed-off-by: Wolfgang Denk
    Tested-by: Heiko Schocher
    Tested-by: Reinhard Meyer

    Wolfgang Denk
     

20 Sep, 2010

1 commit

  • fixup_cmdtable() did all work for fixing up the cmdtable,
    if CONFIG_RELOC_FIXUP_WORKS is not defined.

    CONFIG_RELOC_FIXUP_WORKS is missing for i386! I talked
    with Graeme Russ, and he will fix this soon.

    Portions of this work were supported by funding from
    the CE Linux Forum.

    Signed-off-by: Heiko Schocher

    Heiko Schocher
     

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
     

13 Jun, 2009

1 commit

  • In case of incorrect command invocations U-Boot used to print pretty
    useless "usage" messages, for example:

    => nand markbad
    Usage:
    nand - NAND sub-system

    In the result, the user would have to run the "help" command to get
    the (available) information about correct command usage. Change this,
    so that this information gets always printed.

    Note that this changes the user interface of all commands, but
    hopefully to the better.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

28 Mar, 2009

1 commit


28 Jan, 2009

2 commits


19 Oct, 2008

2 commits


11 Sep, 2008

1 commit


06 Aug, 2008

1 commit


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
     

09 Jul, 2007

1 commit


16 Apr, 2004

1 commit

  • - add auto-complete support to the U-Boot CLI
    - add support for NETTA and NETPHONE boards; fix NETVIA board

    * Patch by Yuli Barcohen, 28 Mar 2004:
    - Add support for MPC8272 family including MPC8247/8248/8271/8272
    - Add support for MPC8272ADS evaluation board (another flavour of MPC8260ADS)
    - Change configuration method for MPC8260ADS family

    wdenk
     

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
     

27 Aug, 2002

1 commit