1. 09 Aug, 2012 2 commits
  2. 15 May, 2012 1 commit
  3. 23 Apr, 2012 1 commit
  4. 06 Mar, 2012 8 commits
  5. 12 Feb, 2012 2 commits
  6. 17 Oct, 2011 5 commits
  7. 28 Jul, 2011 1 commit
  8. 26 Jul, 2011 1 commit
  9. 25 Jul, 2011 2 commits
  10. 22 Jun, 2011 1 commit
  11. 09 Jan, 2011 1 commit
  12. 28 Nov, 2010 3 commits
  13. 06 Oct, 2010 1 commit
  14. 08 Aug, 2010 1 commit
  15. 24 Jul, 2010 1 commit
  16. 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
  17. 23 Jun, 2010 1 commit
    • Wolfgang Denk's avatar
      Remove AmigaOneG3SE board · 953b7e62
      Wolfgang Denk authored
      
      
      The AmigaOneG3SE board has been orphaned or a very long time, and
      broken for more than 12 releases resp. more than 3 years.  As nobody
      seems to be interested any more in this stuff we may as well ged rid
      of it, especially as it clutters many areas of the code so it is a
      continuous pain for all kinds of ongoing work.
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      953b7e62
  18. 10 Apr, 2010 1 commit
  19. 21 Mar, 2010 2 commits
  20. 11 Mar, 2010 1 commit
    • Wolfgang Denk's avatar
      Move CONFIG_UPDATE_TFTP code after CONFIG_PREBOOT · 143cd21f
      Wolfgang Denk authored
      
      
      The auto-update feature (CONFIG_UPDATE_TFTP) requires that the env
      variable serverip be set for the TFTP access. If DHCP is to be used
      to get the serverip env variable, this doesn't work as DHCP happens
      after the auto-update attempt has run. A solution is to run DHCP in
      PREBOOT, but even this is too late.
      
      To solve this, we move update_tftp() below the PREBOOT stuff.
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      143cd21f
  21. 27 Oct, 2009 3 commits