forked from len0rd/rockbox
Accept both 0xb and 0xc as valid partition types for an ipod FAT32 partition. Some tools (e.g. fat32format) set the type to 0xc, and the Apple bootloader doesn't appear to care.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13614 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e94adbbc28
commit
0fba85fe9e
1 changed files with 3 additions and 2 deletions
|
@ -255,10 +255,11 @@ int read_partinfo(struct ipod_t* ipod, int silent)
|
|||
|
||||
/* Check that the partition table looks like an ipod:
|
||||
1) Partition 1 is of type 0 (Empty) but isn't empty.
|
||||
2) Partition 2 is of type 0xb (winpod) or -1 (macpod)
|
||||
2) Partition 2 is of type 0xb or 0xc (winpod) or -1 (macpod)
|
||||
*/
|
||||
if ((ipod->pinfo[0].type != 0) || (ipod->pinfo[0].size == 0) ||
|
||||
((ipod->pinfo[1].type != 0xb) && (ipod->pinfo[1].type != -1))) {
|
||||
((ipod->pinfo[1].type != 0xb) && (ipod->pinfo[1].type != 0xc) &&
|
||||
(ipod->pinfo[1].type != -1))) {
|
||||
if (!silent) fprintf(stderr,"[ERR] Partition layout is not an ipod\n");
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue