Skip to content
Snippets Groups Projects
  1. Jul 25, 2011
  2. Jun 01, 2011
  3. May 19, 2011
  4. Jan 11, 2011
  5. Dec 23, 2010
    • Wolfgang Denk's avatar
      cmd_net.c: fix build breakage · 4b58266e
      Wolfgang Denk authored
      
      Commit 722b061b "autocomplete: remove runtime handler install" caused
      some boards (like NETTA2_V2) to break with errors like these:
      
      cmd_net.c:296: error: expected expression before ',' token
      
      Fix this.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Mike Frysinger <vapier@gentoo.org>
      4b58266e
  6. Nov 28, 2010
  7. Oct 27, 2010
    • Wolfgang Denk's avatar
      Revert "cmd_net: drop spurious comma in U_BOOT_CMD" · ec5c04cd
      Wolfgang Denk authored
      This commit causes build errors like this:
      
      cmd_net.c:301:1: error: macro "U_BOOT_CMD" requires 6 arguments, but only 5 given
      cmd_net.c:298: warning: data definition has no type or storage class
      cmd_net.c:298: warning: type defaults to 'int' in declaration of 'U_BOOT_CMD'
      
      This reverts commit 8f4cb77e.
      ec5c04cd
  8. Oct 26, 2010
  9. Oct 12, 2010
  10. Jul 24, 2010
  11. 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
  12. Oct 03, 2009
  13. Sep 22, 2009
  14. Jul 23, 2009
  15. 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
  16. Apr 04, 2009
  17. Apr 03, 2009
    • Wolfgang Denk's avatar
      Add "source" command; prepare removal of "autoscr" command · 74de7aef
      Wolfgang Denk authored
      
      According to the doc/feature-removal-schedule.txt, the "autoscr"
      command will be replaced by the "source" command in approximately 6
      months from now.
      
      This patch prepares this change and starts a 6 month transition
      period as follows:
      
      - The new "source" command has been added, which implements exactly
        the same functionlaity as the old "autoscr" command before
      - The old "autoscr" command name is kept as an alias for compatibility
      - Command sequences, script files atc. have been adapted to use the
        new "source" command
      - Related environment variables ("autoscript", "autoscript_uname")
        have *not* been adapted yet; these will be renamed resp. removed in
        a separate patch when the support for the "autoscr" command get's
        finally dropped.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      74de7aef
  18. Jan 28, 2009
  19. Dec 05, 2008
    • Peter Tyser's avatar
      net: Fix download command parsing · 2e4970d8
      Peter Tyser authored
      
      When CONFIG_SYS_HUSH_PARSER is defined network download
      commands with 1 argument in the format 'tftp "/path/file"'
      do not work as expected. The hush command parser strips
      the quotes from "/path/file" which causes the network
      commands to interpret "/path/file" as an address
      instead of the intended filename.
      
      The previous check for a leading quote in netboot_common()
      was replaced with a check which ensures only valid
      numbers are treated as addresses.
      
      Signed-off-by: default avatarPeter Tyser <ptyser@xes-inc.com>
      Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
      2e4970d8
  20. Aug 27, 2008
  21. Mar 12, 2008
    • Marian Balakowicz's avatar
      [new uImage] Add new uImage format support to autoscript routine · 424c4abd
      Marian Balakowicz authored
      
      autoscript() routine is updated to accept second argument, which
      is only used for FIT images and provides a FIT subimage unit name.
      
      autoscript() routine callers must now pass two arguments. For
      non-interactive use (like in cmd_load.c, cmd_net.c), new environment
      variable 'autoscript_uname' is introduced and used as a FIT
      subimage unit name source.
      
      autoscript command accepts extended syntax of the addr argument:
      addr:<subimg_uname>
      
      Signed-off-by: default avatarMarian Balakowicz <m8@semihalf.com>
      424c4abd
  22. Feb 04, 2008
  23. Jan 16, 2008
  24. Nov 21, 2007
  25. Jul 13, 2007
  26. Jul 10, 2007
  27. Jul 08, 2007
  28. Jul 03, 2007
  29. Jun 22, 2007
    • Heiko Schocher's avatar
      [PCS440EP] upgrade the PCS440EP board: · 566a494f
      Heiko Schocher authored
                      - Show on the Status LEDs, some States of the board.
                      - Get the MAC addresses from the EEProm
                      - use PREBOOT
                      - use the CF on the board.
                      - check the U-Boot image in the Flash with a SHA1
                        checksum.
                      - use dynamic TLB entries generation for the SDRAM
      
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      566a494f
  30. Apr 05, 2005
  31. Apr 02, 2005
  32. Apr 01, 2005
    • Wolfgang Denk's avatar
      * Patch by Masami Komiya, 30 Mar 2005: · ea287deb
      Wolfgang Denk authored
        add SNTP support and expand time server and time offset fields of
        DHCP support. See doc/README.SNTP
      
      * Patch by Steven Scholz, 13 Dec 2004:
        Fix bug in at91rm920 ethernet driver
      ea287deb
  33. Jun 09, 2004
    • Wolfgang Denk's avatar
      Patch by Thomas Viehweger, 14 May 2004: · aa5590b6
      Wolfgang Denk authored
      - flash.h: more flash types added
      - immap_8260.h: some bits added (useful for RMII)
      - cmd_coninfo.c: typo corrected, printf -> puts
      - reduced size by replacing spaces with tab
      aa5590b6
  34. 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
  35. Apr 15, 2004
  36. Feb 24, 2004
Loading