24 Jul, 2013

1 commit


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

  • 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

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
     

19 Oct, 2008

1 commit


09 Jul, 2007

1 commit


04 Jul, 2007

1 commit


12 Jun, 2007

1 commit


11 Jul, 2006

1 commit

  • Notes:
    - Board-dependend code for RPXLITE and RPXCLASSIC-based boards
    placed to the drivers/rpx_pmcia.c file to avoid duplication.
    Same for TQM8xx-based boards (drivers/tqm8xx_pmcia.c).
    - drivers/i82365.c has been split into two parts located at
    board/atc/ti113x.c and board/cpc45/pd67290.c (ATC and CPC45 are
    the only boards using CONFIG_82365).
    - Changes were tested for clean build and *very* *few* boards.

    Wolfgang Denk
     

15 May, 2006

1 commit


12 May, 2006

2 commits


13 Oct, 2005

1 commit


31 Dec, 2004

1 commit

  • * Cleanup confusing use of CONFIG_ETH*ADDR - ust his only to
    pre-define a MAC address; use CONFIG_HAS_ETH* to enable support for
    additional ethernet addresses.

    * Cleanup drivers/i82365.c - avoid duplication of code

    * Fix bogus "cannot span across banks" flash error message

    * Add support for CompactFlash for the CPC45 Board.

    wdenk
     

19 Dec, 2004

1 commit


19 Apr, 2004

1 commit

  • * Patch by Rune Torgersen, 16 Apr 2004:
    LBA48 fixes

    * Patches by Pantelis Antoniou, 16 Apr 2004:
    - Fix some compile problems;
    add "once" functionality for the netretry variable

    wdenk
     

18 Apr, 2004

1 commit

  • - add support for a new version of an Intracom board and fix
    various other things on others.
    - add verify support to the crc32 command (define
    CONFIG_CRC32_VERIFY to enable it)
    - fix FEC driver for MPC8xx systems:
    1. fix compilation problems for boards that use dynamic
    allocation of DPRAM
    2. shut down FEC after network transfers
    - HUSH parser fixes:
    1. A new test command was added. This is a simplified version of
    the one in the bourne shell.
    2. A new exit command was added which terminates the current
    executing script.
    3. Fixed handing of $? (exit code of last executed command)

    wdenk
     

16 Apr, 2004

2 commits

  • Add support for Picture Elements JSE board

    * Patch by Christian Pell, 01 Apr 2004:
    Add CompactFlash support for PXA systems.

    wdenk
     
  • - 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
     

26 Mar, 2004

1 commit


14 Mar, 2004

1 commit

  • - Added LBA48 support (CONFIG_LBA48 & CFG_64BIT_LBA)
    - Added support for 64bit printing in vsprintf (CFG_64BIT_VSPRINTF)
    - Added support for 64bit strtoul (CFG_64BIT_STRTOUL)

    * Patch by Masami Komiya, 27 Feb 2004:
    Fix rarpboot: add autoload by NFS

    * Patch by Dan Eisenhut, 26 Feb 2004:
    fix flash_write return value in saveenv

    * Patch by Stephan Linz, 11 Dec 2003
    expand config.mk to avoid trigraph warnings on NIOS

    * Rename "BMS2003" board into "HMI10"

    wdenk
     

07 Feb, 2004

1 commit


05 Jan, 2004

1 commit


28 Dec, 2003

1 commit

  • environment variable which can set to "100", "133", or "150". The
    CPU clock will be configured accordingly upon next reboot. Other
    values are ignored. In case of an invalid or undefined "cpuclk"
    value, the compile-time default CPU clock speed will be used.

    * Enable Quad-UART on BMS2003 board (initialize the PCMCIA memory
    window that is used to access the UART registers by the Linux driver)

    * Patch by Reinhard Meyer, 20 Dec 2003:
    Fix clock calculation for the MPC5200 for higher clock frequencies
    (above 2**32 / 10 = 429.5 MHz).

    wdenk
     

08 Dec, 2003

1 commit

  • "revive" U-Boot support for old Motorola MPC860ADS board

    * Patch by Cam(ilo?), 03 Dec 2003:
    make examples build even with broken Montavista objcopy

    * Patch by Pavel Bartusek, 27 Nov 2003:
    fix conversion problem with "bootretry" evironment variable

    wdenk
     

20 Oct, 2003

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
     

20 May, 2003

1 commit

  • update for CrayL1 board

    * Patch by Pantelis Antoniou, 21 Apr 2003:
    add boot support for ARTOS (a proprietary OS)

    * Patch by Steven Scholz, 11 Apr 2003:
    Add support for RTC DS1338

    * Patch by Rod Boyce, 24 Jan 2003:
    Fix counting of extended partitions in diskboot command

    wdenk
     

18 May, 2003

1 commit


26 Mar, 2003

1 commit

  • Add support for Atmel AT91RM9200DK w/NAND

    * Patches by Robert Schwebel, 19 Mar 2003:
    - use arm-linux-gcc as default compiler for ARM
    - fix i2c fixup code
    - fix missing baudrate setting
    - added $loadaddr / CFG_LOAD_ADDR support to loadb
    - moved "ignoring trailing characters" _before_ u-boot wants to
    print out diagnostics messages; removes bogus characters at the
    end of transmission

    * Patch by John Zhan, 18 Mar 2003:
    Add support for SinoVee Microsystems SC8xx boards

    * Patch by Rolf Offermanns, 21 Mar 2003:
    ported the dnp1110 related changes from the current armboot cvs to
    current u-boot cvs. smc91111 does not work. problem marked in
    smc91111.c, grep for "FIXME".

    * Patch by Brian Auld, 25 Mar 2003:
    Add support for STM flash chips on ebony board

    * Add PCI support for MPC8250 Boards (PM825 module)

    * Patch by Stefan Roese, 25 Mar 2003:

    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 Jan, 2003

1 commit

  • when watchdog is on

    * Update baudrate in bd_info when it gets changed

    * Add watchdog trigger points while waiting for serial port
    (so far only 8xx -- needed on LWMON with 100ms watchdog)

    * Improve command line tool to access the U-Boot's environment
    (figuration of the utility, using a config file)

    wdenk
     

05 Dec, 2002

1 commit


04 Dec, 2002

1 commit


22 Nov, 2002

1 commit


06 Nov, 2002

1 commit


03 Nov, 2002

1 commit