From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Date: Mon, 10 May 2010 14:47:31 +0400 Subject: [U-Boot] [PATCH 1/3] Support for devices with FAT32 PBR In-Reply-To: <1273486456-10089-1-git-send-email-iluri@aotek.es> References: <> <1273486456-10089-1-git-send-email-iluri@aotek.es> Message-ID: <4BE7E443.60506@mvista.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello. Igor Luri wrote: > Signed-off-by: Igor Luri > --- > 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) ) > You #define DOS_PBR_FAT32_FSTYPE_OFFSET only in patch 2. That way, patch 1 is uncompilable. Merge the patches please. WBR, Sergei