[U-Boot] [PATCH v2 1/3] fs/fat: Fix FAT detection to support non-DOS partition tables

Wolfgang Denk wd at denx.de
Thu Jan 5 20:12:05 CET 2012


Dear Kyle Moffett,

In message <1324487292-7299-2-git-send-email-Kyle.D.Moffett at boeing.com> you wrote:
> 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 at boeing.com>

Arghhhh... This causes build warnings:

fat.c: In function 'fat_register_device':
fat.c:66:15: warning: variable 'found_partition' set but not used
[-Wunused-but-set-variable]


I fix this when applying.


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Bankers do it with interest (penalty for early withdrawal).


More information about the U-Boot mailing list