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

Re: [PATCH] AJBR6 fat32 partition search fix

From: Alex Gitelman <alex_at_fg-soup.com>
Date: Tue, 16 Jul 2002 01:14:18 -0700

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> _at__at_ -126,7 +126,8 _at__at_
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> _at__at_ -25,7 +25,8 _at__at_
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);
Received on 2002-07-16

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy