1. 18 Mar, 2012 4 commits
  2. 06 Mar, 2012 1 commit
  3. 20 Dec, 2011 1 commit
    • Simon Glass's avatar
      net: Fix arguments in tftpput command · 38bd80b4
      Simon Glass authored
      
      
      The switch to strict_strtoul() was not done correctly - this fixes
      the compile error when CONFIG_CMD_TFTPPUT is active.
      
      There appears to very little use of strict_strtoul() in commands, so
      it might be easier to switch to simple_strtoul(). If not, we should
      decide the best way to use strict_strtoul(). For now I have added a
      friendly message which will of course increase code size.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      38bd80b4
  4. 26 Oct, 2011 2 commits
  5. 25 Jul, 2011 1 commit
  6. 01 Jun, 2011 1 commit
  7. 19 May, 2011 1 commit
  8. 11 Jan, 2011 1 commit
  9. 23 Dec, 2010 1 commit
    • 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
  10. 28 Nov, 2010 2 commits
  11. 27 Oct, 2010 1 commit
    • 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
  12. 26 Oct, 2010 1 commit
  13. 12 Oct, 2010 1 commit
  14. 24 Jul, 2010 1 commit
  15. 04 Jul, 2010 1 commit
    • 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
  16. 03 Oct, 2009 1 commit
  17. 22 Sep, 2009 1 commit
  18. 23 Jul, 2009 2 commits
  19. 12 Jun, 2009 1 commit
    • 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
  20. 04 Apr, 2009 1 commit
  21. 03 Apr, 2009 1 commit
    • 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
  22. 28 Jan, 2009 2 commits
  23. 05 Dec, 2008 1 commit
    • 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
  24. 27 Aug, 2008 1 commit
  25. 12 Mar, 2008 1 commit
    • 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
  26. 04 Feb, 2008 1 commit
  27. 16 Jan, 2008 1 commit
  28. 21 Nov, 2007 1 commit
  29. 13 Jul, 2007 1 commit
  30. 10 Jul, 2007 2 commits
  31. 08 Jul, 2007 1 commit
  32. 03 Jul, 2007 1 commit