diff options
author | Dave Chapman <dave@dchapman.com> | 2007-06-10 22:47:51 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2007-06-10 22:47:51 +0000 |
commit | 0fba85fe9ee8775aed331e4a9f60d91ac78ade9c (patch) | |
tree | d9e4a8c1b73451b686f2b3a943228f5922a448b7 /rbutil/ipodpatcher/ipodpatcher.c | |
parent | e94adbbc28bb07cce4694b6a211038822050314f (diff) | |
download | rockbox-0fba85fe9ee8775aed331e4a9f60d91ac78ade9c.tar.gz rockbox-0fba85fe9ee8775aed331e4a9f60d91ac78ade9c.zip |
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
Diffstat (limited to 'rbutil/ipodpatcher/ipodpatcher.c')
-rw-r--r-- | rbutil/ipodpatcher/ipodpatcher.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rbutil/ipodpatcher/ipodpatcher.c b/rbutil/ipodpatcher/ipodpatcher.c index 1cc3343244..4d2bfa31a7 100644 --- a/rbutil/ipodpatcher/ipodpatcher.c +++ b/rbutil/ipodpatcher/ipodpatcher.c | |||
@@ -255,10 +255,11 @@ int read_partinfo(struct ipod_t* ipod, int silent) | |||
255 | 255 | ||
256 | /* Check that the partition table looks like an ipod: | 256 | /* Check that the partition table looks like an ipod: |
257 | 1) Partition 1 is of type 0 (Empty) but isn't empty. | 257 | 1) Partition 1 is of type 0 (Empty) but isn't empty. |
258 | 2) Partition 2 is of type 0xb (winpod) or -1 (macpod) | 258 | 2) Partition 2 is of type 0xb or 0xc (winpod) or -1 (macpod) |
259 | */ | 259 | */ |
260 | if ((ipod->pinfo[0].type != 0) || (ipod->pinfo[0].size == 0) || | 260 | if ((ipod->pinfo[0].type != 0) || (ipod->pinfo[0].size == 0) || |
261 | ((ipod->pinfo[1].type != 0xb) && (ipod->pinfo[1].type != -1))) { | 261 | ((ipod->pinfo[1].type != 0xb) && (ipod->pinfo[1].type != 0xc) && |
262 | (ipod->pinfo[1].type != -1))) { | ||
262 | if (!silent) fprintf(stderr,"[ERR] Partition layout is not an ipod\n"); | 263 | if (!silent) fprintf(stderr,"[ERR] Partition layout is not an ipod\n"); |
263 | return -1; | 264 | return -1; |
264 | } | 265 | } |