Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: [PATCH] AJBR6 fat32 partition search fix
From: Alex Gitelman (alex_at_fg-soup.com)
Date: 2002-07-16


Voila... the patch fixed my problem. So it's not only for 8 GB.
And names are good now.
Thanks
Alex

   
Tuesday, July 16, 2002, 12:52:26 AM, you wrote:

HS> The recent fat32 partition search changes break on the AJBR6 because disks
HS> smaller then 8GB don't require LBA and, thus, can have a different (valid)
HS> partition type. Fix attached.

HS> -Hardeep

HS> --- orig/apps/main.c Mon Jul 15 12:55:32 2002
HS> +++ apps/main.c Mon Jul 15 23:02:52 2002
HS> @@ -126,7 +126,8 @@
HS> panicf("disk: NULL");

HS> for ( i=0; i<4; i++ ) {
HS> - if ( pinfo[i].type == PARTITION_TYPE_FAT32 ) {
HS> + if ( pinfo[i].type == PARTITION_TYPE_FAT32 ||
HS> + pinfo[i].type == PARTITION_TYPE_FAT32_LBA ) {
HS> rc = fat_mount(pinfo[i].start);
HS> if(rc)
HS> panicf("mount: %d",rc);
HS> --- orig/firmware/common/disk.h Mon Jul 15 08:06:45 2002
HS> +++ firmware/common/disk.h Mon Jul 15 23:03:18 2002
HS> @@ -25,7 +25,8 @@
HS> unsigned char type;
HS> };

HS> -#define PARTITION_TYPE_FAT32 0x0c
HS> +#define PARTITION_TYPE_FAT32 0x0b
HS> +#define PARTITION_TYPE_FAT32_LBA 0x0c

HS> /* returns a pointer to an array of 8 partinfo structs */
HS> struct partinfo* disk_init(void);



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa