[U-Boot] [PATCH 1/3] Support for devices with FAT32 PBR

Sergei Shtylyov sshtylyov at mvista.com
Mon May 10 12:47:31 CEST 2010


Hello.

Igor Luri wrote:

> Signed-off-by: Igor Luri <iluri at 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)	)
>   

   You #define DOS_PBR_FAT32_FSTYPE_OFFSET only in patch 2. That way, 
patch 1 is uncompilable. Merge the patches please.

WBR, Sergei



More information about the U-Boot mailing list