1. 08 8月, 2010 2 次提交
  2. 07 8月, 2010 1 次提交
  3. 06 8月, 2010 1 次提交
  4. 04 8月, 2010 3 次提交
    • W
      Rename getenv_r() into getenv_f() · cdb74977
      Wolfgang Denk 提交于
      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: NWolfgang Denk <wd@denx.de>
      Acked-by: NDetlev Zundel <dzu@denx.de>
      cdb74977
    • M
      bootm: fix pointer warning with lzma · 78e1e846
      Mike Frysinger 提交于
      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: NMike Frysinger <vapier@gentoo.org>
      78e1e846
    • W
      36448c60
  5. 02 8月, 2010 3 次提交
  6. 30 7月, 2010 1 次提交
  7. 27 7月, 2010 15 次提交
  8. 26 7月, 2010 7 次提交
  9. 25 7月, 2010 7 次提交
    • W
      fs/fat: Big code cleanup. · 7385c28e
      Wolfgang Denk 提交于
      - reformat
      - throw out macros like FAT_DPRINT and FAT_DPRINT
      - remove dead code
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      7385c28e
    • W
      usb_storage.c: change progress output in debug() message · 226fa9bb
      Wolfgang Denk 提交于
      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: NWolfgang Denk <wd@denx.de>
      Cc: Remy Bohmer <linux@bohmer.net>
      226fa9bb
    • W
      FAT32: fix broken root directory handling. · 2aa98c66
      Wolfgang Denk 提交于
      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: NWolfgang Denk <wd@denx.de>
      2aa98c66
    • W
      FAT32: fix support for superfloppy-format (PBR) · 66c2d73c
      Wolfgang Denk 提交于
      "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: NWolfgang Denk <wd@denx.de>
      66c2d73c
    • W
      usb_storage.c: initialize device type · a17c548b
      Wolfgang Denk 提交于
      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: NWolfgang Denk <wd@denx.de>
      Cc: Remy Bohmer <linux@bohmer.net>
      a17c548b
    • W
      cmd_usage(): simplify return code handling · 47e26b1b
      Wolfgang Denk 提交于
      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: NWolfgang Denk <wd@denx.de>
      47e26b1b
    • W
      debb6299