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
From: Hardeep Sidhu (hardeeps_at_pobox.com)
Date: 2002-07-16


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
@@ -126,7 +126,8 @@
         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
@@ -25,7 +25,8 @@
     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);



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