Skip to content
Snippets Groups Projects
  1. Aug 07, 2010
  2. Aug 06, 2010
  3. Aug 05, 2010
  4. Aug 03, 2010
    • Wolfgang Denk's avatar
      Rename getenv_r() into getenv_f() · cdb74977
      Wolfgang Denk authored
      
      While running from flash, i. e. before relocation, we have only a
      limited C runtime environment without writable data segment. In this
      phase, some configurations (for example with environment in EEPROM)
      must not use the normal getenv(), but a special function.  This
      function had been called getenv_r(), with the idea that the "_r"
      suffix would mean the same as in the _r_eentrant versions of some of
      the C library functions (for example getdate vs. getdate_r, getgrent
      vs. getgrent_r, etc.).
      
      Unfortunately this was a misleading name, as in U-Boot the "_r"
      generally means "running from RAM", i. e. _after_ relocation.
      
      To avoid confusion, rename into getenv_f() [as "running from flash"]
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Acked-by: default avatarDetlev Zundel <dzu@denx.de>
      cdb74977
    • Mike Frysinger's avatar
      bootm: fix pointer warning with lzma · 78e1e846
      Mike Frysinger authored
      
      Avoid warning:
      cmd_bootm.c: In function 'bootm_load_os':
      cmd_bootm.c:394: warning: passing argument 2 of
      	'lzmaBuffToBuffDecompress' from incompatible pointer type
      
      For 32 bit systems, this change shouldn't make a difference to code size
      since sizeof(size_t) and sizeof(unsigned int) are equal.  But it does fix
      the warning.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      78e1e846
    • Wolfgang Denk's avatar
  5. Aug 01, 2010
  6. Jul 29, 2010
  7. Jul 26, 2010
  8. Jul 25, 2010
  9. Jul 24, 2010
    • Wolfgang Denk's avatar
      fs/fat: Big code cleanup. · 7385c28e
      Wolfgang Denk authored
      
      - reformat
      - throw out macros like FAT_DPRINT and FAT_DPRINT
      - remove dead code
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      7385c28e
    • Wolfgang Denk's avatar
      usb_storage.c: change progress output in debug() message · 226fa9bb
      Wolfgang Denk authored
      
      The dots printed by common/usb_storage.c as progress meter corrupt the
      output for example of "fatls usb" commands like this:
      
      => fatls usb 0
      .			<<==== here
             29   file.001
             29   file.002
             29   file.003
             29   file.004
             29   file.005
             29   file.006
             29   file.007
             29   file.008
             29   file.009
             29   file.010
             29   file.011
             29   file.012
             29   file.013
             29   file.014
             29   file.015
             29   file.016
      .			<<==== here
             29   file.017
             29   file.018
             29   file.019
      ...
      
      Turn the progress output into a debug message.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Remy Bohmer <linux@bohmer.net>
      226fa9bb
    • Wolfgang Denk's avatar
      FAT32: fix broken root directory handling. · 2aa98c66
      Wolfgang Denk authored
      
      On FAT32, instead of fetching the cluster numbers from the FAT, the
      code assumed (incorrectly) that the clusters for the root directory
      were allocated contiguously. In the result, only the first cluster
      could be accessed. At the typical cluster size of 8 sectors this
      caused all accesses to files after the first 128 entries to fail -
      "fatls" would terminate after 128 files (usually displaying a bogus
      file name, occasionally even crashing the system), and "fatload"
      would fail to find any files that were not in the first directory
      cluster.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      2aa98c66
    • Wolfgang Denk's avatar
      FAT32: fix support for superfloppy-format (PBR) · 66c2d73c
      Wolfgang Denk authored
      
      "Superfloppy" format (in U-Boot called PBR) did not work for FAT32 as
      the file system type string is at a different location. Add support
      for FAT32.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      66c2d73c
    • Wolfgang Denk's avatar
      usb_storage.c: initialize device type · a17c548b
      Wolfgang Denk authored
      
      The device type was left uninitialized which caused later tests
      against DEV_TYPE_UNKNOWN to fail. In the result, "usb part" would
      attempt to print information about non-existent devices like this:
      
      	=> usb part
      	print_part of 0
      
      	Partition Map for USB device 0  --   Partition Type: DOS
      
      	Partition     Start Sector     Num Sectors     Type
      	    1                    0         2031616      f8
      
      	print_part of 1
      	## Unknown partition table
      
      	print_part of 2
      	## Unknown partition table
      
      	print_part of 3
      	## Unknown partition table
      
      	print_part of 4
      	## Unknown partition table
      	=>
      
      By initializing the type as DEV_TYPE_UNKNOWN we avoid all the
      "Unknown partition table" messages.
      
      [Note: the "print_part of ?" messages is left over debug code that
      will be removed in another patch.]
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Remy Bohmer <linux@bohmer.net>
      a17c548b
    • Wolfgang Denk's avatar
      cmd_usage(): simplify return code handling · 47e26b1b
      Wolfgang Denk authored
      
      Lots of code use this construct:
      
      	cmd_usage(cmdtp);
      	return 1;
      
      Change cmd_usage() let it return 1 - then we can replace all these
      ocurrances by
      
      	return cmd_usage(cmdtp);
      
      This fixes a few places with incorrect return code handling, too.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      47e26b1b
    • Wolfgang Denk's avatar
Loading