13 Dec, 2013

1 commit


12 Jul, 2013

1 commit


20 Feb, 2013

1 commit


16 Oct, 2012

2 commits

  • This fixes warnings when compiling with ELDK-5.2.1 for MIPS64:

    cmd_elf.c: In function 'load_elf_image_phdr':
    cmd_elf.c:289:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    cmd_elf.c: In function 'load_elf_image_shdr':
    cmd_elf.c:343:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    cmd_elf.c:346:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

    Signed-off-by: Daniel Schwierzeck

    Daniel Schwierzeck
     
  • [Tom: Move valid_elf_image around and don't mark it as static as another
    board makes use of this function]

    Signed-off-by: Daniel Schwierzeck
    Signed-off-by: Tom Rini

    Daniel Schwierzeck
     

19 Mar, 2012

1 commit

  • This patch clear and disable the data cache for vxWorks.

    The entry point sysInit(int) intended by Windriver to be called from
    the vxWorks bootrom, a very small vxWorks system.
    The routine is called by the go() handler in the bootrom, that clears
    the cache from start of image to end of usable memory.

    The PowerPC implementations only invalidates and disable the cache,
    the ARM implementations also flush it.

    U-Boot will be on the safe side, if it disables the data cache before
    calling vxWorks sysInit(int).

    Signed-off-by: Reinhard Arlt

    Reinhard Arlt
     

27 Oct, 2011

1 commit


07 Oct, 2010

1 commit

  • The current ELF loading function does a lot of work above and beyond a
    simple "loading". It ignores the real load addresses and loads things
    into their virtual (runtime) address. This is undesirable when we just
    want it to load an ELF and let the ELF do the actual C runtime init.

    So add a command line option to let people choose to load via either the
    program or section headers. I'd prefer to have program header loading
    be the default, but this would break historical behavior, so I'll leave
    section header loading as the norm.

    Signed-off-by: Mike Frysinger

    Mike Frysinger
     

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
     

27 Jul, 2009

1 commit


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 Mar, 2009

1 commit

  • Current u-boot top of tree builds with warnings/errors for
    the following boards:

    ads5121 cpci5200 mecp5200 v38b IAD210 MBX MBX860T NX823
    RPXClassic debris PN62

    following patch solves this.

    Signed-off-by: Heiko Schocher
    Acked-by: Mike Frysinger

    Heiko Schocher
     

21 Mar, 2009

1 commit


28 Jan, 2009

1 commit

  • Remove command name from all command "usage" fields and update
    common/command.c to display "name - usage" instead of
    just "usage". Also remove newlines from command usage fields.

    Signed-off-by: Peter Tyser

    Peter Tyser
     

07 Dec, 2008

1 commit


02 Nov, 2008

1 commit


19 Oct, 2008

1 commit


18 Apr, 2008

1 commit


14 Apr, 2008

1 commit

  • It isn't generally save to execute applications outside of U-Boot with caches
    enabled due to the way the Blackfin processor handles caches (requires
    software assistance). This patch disables caches before booting an ELF or
    just booting raw code. The previous discussion on the patch was that we
    wanted to use weaks instead, but that proved to not be feasible when multiple
    symbols are involved, which puts us back at the ifdef solution. I've
    minimized the ugliness by moving the setup step outside of the main function.

    Signed-off-by: Mike Frysinger

    Mike Frysinger
     

21 Nov, 2007

1 commit


11 Jul, 2007

1 commit


09 Jul, 2007

1 commit


04 Jul, 2007

1 commit


29 Nov, 2006

1 commit


01 Apr, 2006

1 commit


01 Aug, 2005

1 commit


17 Dec, 2004

1 commit


24 Mar, 2004

1 commit

  • - show PCI clock frequency on MPC8260 systems
    - add FCC_PSMR_RMII flag for HiP7 processors
    - in do_jffs2_fsload(), take load address from load_addr if not set
    explicit, update load_addr otherwise
    - replaced printf by putc/puts when no formatting is needed
    (smaller code size, faster execution)

    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
     

28 Feb, 2003

1 commit

  • * Patch by Erwin Rol, 27 Feb 2003:
    Add support for RTEMS

    * Add image information to README

    * Fix dual PCMCIA slot support (when running with just one
    slot populated)

    * Add VFD type detection to trab board

    * extend drivers/cs8900.c driver to synchronize ethaddr environment
    variable with value in the EEPROM

    * Start adding MIPS support files

    wdenk
     

11 Nov, 2002

1 commit

  • Change behaviour of NetLoop(): return -1 for errors, filesize
    otherwise; return code 0 is valid an means no file loaded - in this
    case the environment still gets updated!

    * Patches by Jon Diekema, 9 Nov 2002:
    - improve ADC/DAC clocking on the SACSng board to align
    the failing edges of LRCLK and SCLK
    - sbc8260 configuration tweaks
    - add status LED support for 82xx systems
    - wire sspi/sspo commands into command handler; improved error
    handlering
    - add timestamp support and alternate memory test to the
    SACSng configuration

    wdenk
     

20 Sep, 2002

1 commit