forked from len0rd/rockbox
Allow LBA-less partitions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1364 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d1de4f8d38
commit
761cd95f23
2 changed files with 4 additions and 2 deletions
|
|
@ -126,7 +126,8 @@ void init(void)
|
||||||
panicf("disk: NULL");
|
panicf("disk: NULL");
|
||||||
|
|
||||||
for ( i=0; i<4; i++ ) {
|
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);
|
rc = fat_mount(pinfo[i].start);
|
||||||
if(rc)
|
if(rc)
|
||||||
panicf("mount: %d",rc);
|
panicf("mount: %d",rc);
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,8 @@ struct partinfo {
|
||||||
unsigned char type;
|
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 */
|
/* returns a pointer to an array of 8 partinfo structs */
|
||||||
struct partinfo* disk_init(void);
|
struct partinfo* disk_init(void);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue