1. 22 Mar, 2016 1 commit
    • Tom Rini's avatar
      cmd: Fix license command · 8a7367ac
      Tom Rini authored
      The license command isn't usually built and has a few problems:
      - The rules to generate license.h haven't worked in a long time,
        re-write these based on the bmp_logo.h rules.
      - 'tok' is unused and the license text size has increased
      - bin2header.c wasn't grabbing unistd.h to know the prototype for
        read().
      
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      8a7367ac
  2. 25 Jan, 2016 2 commits
  3. 24 Jul, 2013 1 commit
  4. 08 Aug, 2010 1 commit
  5. 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
  6. 21 Dec, 2009 1 commit
  7. 02 Dec, 2009 1 commit
  8. 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
  9. 28 Jan, 2009 1 commit
    • Peter Tyser's avatar
      Command usage cleanup · 2fb2604d
      Peter Tyser authored
      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: default avatarPeter Tyser <ptyser@xes-inc.com>
      2fb2604d
  10. 18 Aug, 2008 1 commit
    • Harald Welte's avatar
      Add 'license' command to U-Boot command line · 0a823aa2
      Harald Welte authored
      The 'license' command includes the U-Boot license (GPLv2) into the
      actual bootloader binary. The license text can be shown interactively
      at the U-Boot commandline.
      
      For products where the commandline can actually be accessed by the
      end user, this helps to prevent inadvertent GPL violations, since the
      GPLv2 license text can no longer be 'forgotten' to be included into
      the product.
      
      The 'license' command can be enabled by CONFIG_CMD_LICENSE.
      Signed-off-by: default avatarHarald Welte <laforge@openmoko.org>
      0a823aa2
  11. 28 Mar, 2008 1 commit
  12. 27 Dec, 2007 1 commit
  13. 22 Sep, 2007 1 commit
  14. 13 May, 2007 1 commit
  15. 01 Jul, 2003 1 commit
  16. 29 Jun, 2003 1 commit
  17. 15 Jun, 2003 1 commit
    • wdenk's avatar
      * Fix CONFIG_NET_MULTI support in include/net.h · 71f95118
      wdenk authored
      * Patches by Kyle Harris, 13 Mar 2003:
        - Add FAT partition support
        - Add command support for FAT
        - Add command support for MMC
        ----
        - Add Intel PXA support for video
        - Add Intel PXA support for MMC
        ----
        - Enable MMC and FAT for lubbock board
        - Other misc changes for lubbock board
      71f95118
  18. 27 Mar, 2003 1 commit
  19. 14 Dec, 2000 1 commit
  20. 12 Nov, 2000 1 commit