1. 06 1月, 2012 4 次提交
    • K
      fs/fat: Improve error handling · 46236b14
      Kyle Moffett 提交于
      The FAT filesystem fails silently in inexplicable ways when given a
      filesystem with a block-size that does not match the device sector size.
      In theory this is not an unsupportable combination but requires a major
      rewrite of a lot of the filesystem.  Until that occurs, the filesystem
      should detect that scenario and display a helpful error message.
      
      This scenario in particular occurred on a 512-byte blocksize FAT fs
      stored in an El-Torito boot volume on a CD-ROM (2048-byte sector size).
      
      Additionally, in many circumstances the ->block_read method will not
      return a negative number to indicate an error but instead return 0 to
      indicate the number of blocks successfully read (IE: None).
      
      The FAT filesystem should defensively check to ensure that it got all of
      the sectors that it asked for when reading.
      Signed-off-by: NKyle Moffett <Kyle.D.Moffett@boeing.com>
      46236b14
    • K
      fs/fat: Fix FAT detection to support non-DOS partition tables · 9813b750
      Kyle Moffett 提交于
      The FAT filesystem code currently ends up requiring that the partition
      table be a DOS MBR, as it checks for the DOS 0x55 0xAA signature on the
      partition table (which may be Mac, EFI, ISO9660, etc) before actually
      computing the partition offset.
      
      This fixes support for accessing a FAT filesystem in an ISO9660 boot
      volume (El-Torito format) by reordering the filesystem checks and
      reading the 0x55 0xAA "DOS boot signature" and FAT/FAT32 magic number
      from the first sector of the partition instead of from sector 0.
      Signed-off-by: NKyle Moffett <Kyle.D.Moffett@boeing.com>
      
      Fix build warning:  fat.c: In function 'fat_register_device':
      fat.c:66:15: warning: variable 'found_partition' set but not used
      [-Wunused-but-set-variable]
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      9813b750
    • S
      ext2: Cache line align indirection buffers · 26784f1e
      Simon Glass 提交于
      Make ext2 use cache line aligned buffers for reading from the filesystem.
      This is needed when caches are enabled because unaligned cache invalidates
      are not safe.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      26784f1e
    • G
      tools/env: allow overwrite of ethaddr on default · aa701b94
      Grant Erickson 提交于
      This patch allows the U-Boot user space companion utility, fw_setenv,
      to overwrite the 'ethaddr' key/value pair if the current value is set
      to a per-board-configured default.
      
      This change allows 'fw_setenv' to match the behavior of 'setenv' /
      'env set' on the U-Boot command line.
      Signed-off-by: NGrant Erickson <marathon96@gmail.com>
      Fixed excessive white space.
      Signed-off-by: NWolfgang Denk <wd@denx.de>
      aa701b94
  2. 05 1月, 2012 12 次提交
  3. 24 12月, 2011 24 次提交