public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/3] Support for devices with FAT32 PBR
@ 2010-05-10 10:14 Igor Luri
  2010-05-10 10:14 ` [U-Boot] [PATCH 2/3] " Igor Luri
  2010-05-10 10:47 ` [U-Boot] [PATCH 1/3] " Sergei Shtylyov
  0 siblings, 2 replies; 4+ messages in thread
From: Igor Luri @ 2010-05-10 10:14 UTC (permalink / raw)
  To: u-boot


Signed-off-by: Igor Luri <iluri@aotek.es>
---
 disk/part_dos.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/disk/part_dos.c b/disk/part_dos.c
index 887b75e..d91f773 100644
--- a/disk/part_dos.c
+++ b/disk/part_dos.c
@@ -77,7 +77,8 @@ static int test_block_type(unsigned char *buffer)
 	    (buffer[DOS_PART_MAGIC_OFFSET + 1] != 0xaa) ) {
 		return (-1);
 	} /* no DOS Signature at all */
-	if(strncmp((char *)&buffer[DOS_PBR_FSTYPE_OFFSET],"FAT",3)==0)
+	if((strncmp((char *)&buffer[DOS_PBR_FSTYPE_OFFSET],"FAT",3)==0) ||
+	   (strncmp((char *)&buffer[DOS_PBR_FAT32_FSTYPE_OFFSET],"FAT32",5)==0)	)
 		return DOS_PBR; /* is PBR */
 	return DOS_MBR;	    /* Is MBR */
 }
-- 
1.5.4.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-05-10 10:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-10 10:14 [U-Boot] [PATCH 1/3] Support for devices with FAT32 PBR Igor Luri
2010-05-10 10:14 ` [U-Boot] [PATCH 2/3] " Igor Luri
2010-05-10 10:14   ` [U-Boot] [PATCH 3/3] " Igor Luri
2010-05-10 10:47 ` [U-Boot] [PATCH 1/3] " Sergei Shtylyov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox