u-boot/fs/fat
Kyle Moffett 9813b750f3 fs/fat: Fix FAT detection to support non-DOS partition tables
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: Kyle 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: Wolfgang Denk <wd@denx.de>
2012-01-05 20:10:06 +01:00
..
fat.c fs/fat: Fix FAT detection to support non-DOS partition tables 2012-01-05 20:10:06 +01:00
fat_write.c FAT: fix some issues in FAT write support code 2011-12-20 23:18:43 +01:00
file.c fs/fat: Big code cleanup. 2010-07-24 20:54:46 +02:00
Makefile FAT: Add FAT write feature 2011-10-26 21:40:44 +02:00