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



Rockbox mail archive

Subject: [PATCH] AJBR6 fat32 partition search fix

[PATCH] AJBR6 fat32 partition search fix

From: Hardeep Sidhu <hardeeps_at_pobox.com>
Date: Tue, 16 Jul 2002 00:52:26 -0700

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

-Hardeep

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

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

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

 /* returns a pointer to an array of 8 partinfo structs */
 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