Skip to content
Snippets Groups Projects
  1. Jul 29, 2011
  2. May 12, 2011
  3. Apr 13, 2011
  4. Nov 28, 2010
  5. Sep 19, 2010
  6. 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
    • Wolfgang Denk's avatar
      Make *printf() return "int" instead of "void" · d9c27253
      Wolfgang Denk authored
      
      Change the return type of the *printf() functions to the standard
      "int"; no changes are needed but returning the already available
      length count.
      
      This will save a few additional strlen() calls later...
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      d9c27253
  7. Dec 05, 2009
    • Ingo van Lil's avatar
      Generic udelay() with watchdog support · 3eb90bad
      Ingo van Lil authored
      
      According to the PPC reference implementation the udelay() function is
      responsible for resetting the watchdog timer as frequently as needed.
      Most other architectures do not meet that requirement, so long-running
      operations might result in a watchdog reset.
      
      This patch adds a generic udelay() function which takes care of
      resetting the watchdog before calling an architecture-specific
      __udelay().
      
      Signed-off-by: default avatarIngo van Lil <inguin@gmx.de>
      3eb90bad
  8. Oct 03, 2009
  9. Aug 09, 2009
  10. Nov 19, 2008
    • Kyungmin Park's avatar
      UBI: Add basic UBI support to U-Boot (Part 6/8) · 7e6ee7ad
      Kyungmin Park authored
      
      This patch adds basic UBI (Unsorted Block Image) support to U-Boot.
      It's based on the Linux UBI version and basically has a "OS"
      translation wrapper that defines most Linux specific calls
      (spin_lock() etc.) into no-ops. Some source code parts have been
      uncommented by "#ifdef UBI_LINUX". This makes it easier to compare
      this version with the Linux version and simplifies future UBI
      ports/bug-fixes from the Linux version.
      
      Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      7e6ee7ad
  11. Jul 01, 2008
  12. Aug 10, 2007
    • Sergey Kubushyn's avatar
      [ARM] TI DaVinci support, hopefully final · c74b2108
      Sergey Kubushyn authored
      
      Add support for the following DaVinci boards:
      - DV_EVM
      - SCHMOOGIE
      - SONATA
      
      Changes:
      
      - Split into separate board directories
      - Removed changes to MTD_DEBUG (or whatever it's called)
      - New CONFIG_CMD party line followed
      - Some cosmetic fixes, cleanup etc.
      - Patches against the latest U-Boot tree as of now.
      - Fixed CONFIG_CMD_NET in net files.
      - Fixed CONFIG_CMD_EEPROM for schmoogie.
      - Made sure it compiles and works (forceenv() link problem) on SCHMOOGIE and
         DV_EVM. Can't check if it works on SONATA, don't have a board any more,
         but it at least compiles.
      
      Here is an excerpt from session log on SCHMOOGIE...
      
      U-Boot 1.2.0-g6c33c785-dirty (Aug  7 2007 - 13:07:17)
      
      DRAM:  128 MB
      NAND:  128 MiB
      In:    serial
      Out:   serial
      Err:   serial
      ARM Clock : 297MHz
      DDR Clock : 162MHz
      ETH PHY   : DP83848 @ 0x01
      U-Boot > iprobe
      Valid chip addresses: 1B 38 3A 3D 3F 50 5D 6F
      U-Boot > ping 192.168.253.10
      host 192.168.253.10 is alive
      U-Boot >
      
      Signed-off-by: default avatarSergey Kubushyn <ksi@koi8.net>
      Acked-by: default avatarDirk Behme <dirk.behme@gmail.com>
      Acked-by: default avatarZach Sadecki <Zach.Sadecki@ripcode.com>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      c74b2108
  13. Aug 05, 2007
  14. Jul 10, 2007
  15. Jul 09, 2007
  16. Jul 03, 2007
  17. Sep 01, 2006
  18. Jan 06, 2004
  19. Sep 12, 2003
  20. Sep 11, 2003
  21. Jul 26, 2003
    • Wolfgang Denk's avatar
      * Allow crc32 to be used at address 0x000 · 77846748
      Wolfgang Denk authored
      * Provide consistent interface to standalone applications to access
        the 'global_data' structure
        Provide a doc/README.standalone more useful to users/developers.
      
      * Make IceCube MGT5100 FEC driver work
      77846748
  22. Jul 24, 2003
Loading