Skip to content
Snippets Groups Projects
  1. Jan 25, 2016
  2. Jan 05, 2015
  3. Jul 24, 2013
  4. Jul 04, 2010
    • Wolfgang Denk's avatar
      Make sure that argv[] argument pointers are not modified. · 54841ab5
      Wolfgang Denk authored
      
      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: default avatarWolfgang Denk <wd@denx.de>
      Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
      54841ab5
  5. Jun 12, 2009
    • Wolfgang Denk's avatar
      General help message cleanup · a89c33db
      Wolfgang Denk authored
      
      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: default avatarWolfgang Denk <wd@denx.de>
      a89c33db
  6. Jan 28, 2009
  7. Oct 18, 2008
  8. Jul 08, 2007
  9. Jul 03, 2007
  10. Jun 12, 2007
  11. Jul 10, 2006
    • Wolfgang Denk's avatar
      Major PCMCIA Cleanup to make code better readable and maintainable. · 9d407995
      Wolfgang Denk authored
      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.
      9d407995
  12. May 15, 2006
  13. May 12, 2006
  14. Oct 13, 2005
  15. Dec 31, 2004
    • Wolfgang Denk's avatar
      * Code cleanup, mostly for GCC-3.3.x · e2ffd59b
      Wolfgang Denk authored
      * 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.
      e2ffd59b
  16. Dec 18, 2004
  17. Apr 18, 2004
    • Wolfgang Denk's avatar
      * Cleanup, minor fixes · 6e592385
      Wolfgang Denk authored
      * 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
      6e592385
    • Wolfgang Denk's avatar
      Patches by Pantelis Antoniou, 16 Apr 2004: · c26e454d
      Wolfgang Denk authored
      - 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)
      c26e454d
  18. Apr 15, 2004
    • Wolfgang Denk's avatar
      * Patch by Stephen Williams, 01 Apr 2004: · db01a2ea
      Wolfgang Denk authored
        Add support for Picture Elements JSE board
      
      * Patch by Christian Pell, 01 Apr 2004:
        Add CompactFlash support for PXA systems.
      db01a2ea
    • Wolfgang Denk's avatar
      * Patches by Pantelis Antoniou, 30 Mar 2004: · 04a85b3b
      Wolfgang Denk authored
        - 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
      04a85b3b
  19. Mar 25, 2004
  20. Mar 13, 2004
    • Wolfgang Denk's avatar
      * Patch by Rune Torgersen, 27 Feb 2004: · c40b2956
      Wolfgang Denk authored
        - 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"
      c40b2956
  21. Feb 06, 2004
  22. Jan 04, 2004
  23. Dec 27, 2003
    • Wolfgang Denk's avatar
      * Make CPU clock on ICA-IP board controllable by a "cpuclk" · 7cb22f97
      Wolfgang Denk authored
        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).
      7cb22f97
  24. Dec 07, 2003
    • Wolfgang Denk's avatar
      * Patch by Yuli Barcohen, 3 Dec 2003: · b028f715
      Wolfgang Denk authored
        "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
      b028f715
  25. Oct 19, 2003
  26. Jul 01, 2003
  27. Jun 27, 2003
    • Wolfgang Denk's avatar
      * Code cleanup: · 8bde7f77
      Wolfgang Denk authored
        - 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)
      8bde7f77
  28. May 20, 2003
    • Wolfgang Denk's avatar
      * Patch by David Updegraff, 22 Apr 2003: · 7f70e853
      Wolfgang Denk authored
        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
      7f70e853
  29. May 18, 2003
  30. Mar 26, 2003
    • Wolfgang Denk's avatar
      * Patch by Rick Bronson, 16 Mar 2003: · dc7c9a1a
      Wolfgang Denk authored
        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:
      dc7c9a1a
  31. Feb 28, 2003
    • Wolfgang Denk's avatar
      * Add support for 16 MB flash configuration of TRAB board · 6069ff26
      Wolfgang Denk authored
      * 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
      6069ff26
  32. Jan 11, 2003
    • Wolfgang Denk's avatar
      * Restrict baudrate settings on LWMON to higher speeds · d0fb80c3
      Wolfgang Denk authored
        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)
      d0fb80c3
  33. Dec 04, 2002
  34. Dec 03, 2002
  35. Nov 21, 2002
  36. Nov 05, 2002
Loading