]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
disk: part_dos.c: Add a PBR check when MBR checking fails
authorDarwin Dingel <darwin.dingel@alliedtelesis.co.nz>
Fri, 6 Jun 2014 03:48:26 +0000 (15:48 +1200)
committerTom Rini <trini@ti.com>
Wed, 11 Jun 2014 20:27:05 +0000 (16:27 -0400)
commit4a36be9bdb42157401618681c9ac28e3824c120e
tree15fcd75350b722e1d9ba9457c287073fc3af24fd
parent15c939f970ed147c47f2965539973bc979c71ecc
disk: part_dos.c: Add a PBR check when MBR checking fails

Bug: SDCard with a messed up partition but still has a FAT signature
intact is readable in Linux but unreadable in uboot with 'fatls'.

Fix: When partition info checking fails, there is no checking for a
FAT signature (DOS_PBR) which will fail 'fatls'. FAT signature checking
is done when no valid partition is found in partition table. If FAT
signature is found, the disk will be read as PBR and continue
processing.

Signed-off-by: Darwin Dingel <darwin.dingel@alliedtelesis.co.nz>
disk/part_dos.c