Skip to contentSkip to conversation

TiBook, 1394, iPod working (sort of ;-)

DISCUSSION Ira Weiny 5 participants 7 messages Nov 27, 2001 – Dec 28, 2001

lore
Share & tools
lore

Ira Weiny

author
#0 lore raw

This past week I finaly got around to getting up to date with Ben's tree. I built everything and except for a myserious hang on boot after upgrading to MacOS 9.2 everything is working _great_.

So, I decided to check out what could be done with the iPod. I have an iPod connecting to Linux as a SBP2 drive. All we need now for iPod support is working HFS+. But I don't know much about that so...

I have 2 questions.

1) How are things with HFS+? I don't know much but have done some poking around. I notice that I can mount the iPod but the files it shows are not correct. But I have another HFS+ drive which seems to mount ok? I have looked at the volume info and have seen that the iPod version in the volume header is "05" and the other drive is version "06"? This seems odd since I would think the earlier version would be better supported? But I probably don't know what I am talking about...

2) Does anyone know if there are any specs on the DB file for the iPod. I could work on reverse engineering it but if I could get some specs that would be nice. Anyone have inside connections at Apple? Am I treading on thin ice with licensing?

Thanks,
Ira Weiny
[email protected]

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 5 lines · Ira Weiny

This past week I finaly got around to getting up to date with Ben's tree. I built everything and except for a myserious hang on boot after upgrading to MacOS 9.2 everything is working _great_.

Quoted 7 lines

So, I decided to check out what could be done with the iPod. I have an iPod connecting to Linux as a SBP2 drive. All we need now for iPod support is working HFS+. But I don't know much about that so...

I have 2 questions.

1) How are things with HFS+? I don't know much but have done some poking

for all appearances its abandoned. the only sign of anything happening with it is someone starting a sourceforge account for it, all this has is the very pre-alpha development code which pretty much just spews errors and panics the kernel, the same code that was released about a year ago or so.

Quoted 2 lines

around. I notice that I can mount the iPod but the files it shows are not correct. But I have another HFS+ drive which seems to mount ok? I have looked

apple always does HFS+ in a wonky way, they basically create a ordinary HFS filesystem, then put a huge hidden file with an HFS+ filesystem on it, thier drivers notice this and mount the image rather then the wrapper. when you tell linux to mount -t hfs whatever /mnt you will see the HFS wrapper which won't have anything useful (usually a README and a couple fake macos system files).

Quoted 4 lines

at the volume info and have seen that the iPod version in the volume header is "05" and the other drive is version "06"? This seems odd since I would think the earlier version would be better supported? But I probably don't know what I am talking about...

i don't know much about this, its probably not significant, certainly not to linux since it has zero support for any revision of HFS+, outside of the userland hfsplusutils.

Quoted 4 lines

2) Does anyone know if there are any specs on the DB file for the iPod. I could work on reverse engineering it but if I could get some specs that would be nice. Anyone have inside connections at Apple? Am I treading on thin ice with licensing?

don't hold your breath waiting for apple to help, im sure they want nothing more then to keep this thing MacOSX only. if you live in the US (or other country with questionable laws regarding these matters) you may well want to consult a lawyer before doing any reverse engineering, the DMCA (or some other rediculous law) may or may not be an issue with this.

--
Ethan Benson
http://www.alaska.net/~erbenson/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#2 lore raw
Quoted 8 lines · Ethan Benson
Quoted 1 line · Ira Weiny

1) How are things with HFS+? I don't know much but have done some poking

for all appearances its abandoned. the only sign of anything happening with it is someone starting a sourceforge account for it, all this has is the very pre-alpha development code which pretty much just spews errors and panics the kernel, the same code that was released about a year ago or so.

That would be me. I've almost got stuff working for a 2.4.x kernel, which is what is in CVS for that project. I haven't had it crash at all after my last block of rewrites, but it still doesn't work properly. It seemed more important to fix the crashes, since I wasn't going to get very far with it crashing all the time. I haven't had much time to work on it recently.

http://sourceforge.net/projects/linux-hfsplus/

Quoted 3 lines

i don't know much about this, its probably not significant, certainly not to linux since it has zero support for any revision of HFS+, outside of the userland hfsplusutils.

Well, according to Apple's documentation, the only version of HFS+ is version 4, so I have no idea what's up with that...

Brad Boyer
[email protected]

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#3 lore raw
Quoted 3 lines · Brad Boyer

Well, according to Apple's documentation, the only version of HFS+ is version 4, so I have no idea what's up with that...

well it also doesn't document things like the permission bits, it just says they are unused and reserved, obviously this is not the case given OSX, apple just has not updated this document.

that means theres a bit of reverse engineering involved as well since apple is using a newwer version of HFS+ which is not entirely documented.

--
Ethan Benson
http://www.alaska.net/~erbenson/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#4 lore raw
Quoted 5 lines · Ethan Benson
Quoted 3 lines · Brad Boyer

Well, according to Apple's documentation, the only version of HFS+ is version 4, so I have no idea what's up with that...

Quoted 7 lines

well it also doesn't document things like the permission bits, it just says they are unused and reserved, obviously this is not the case given OSX, apple just has not updated this document.

that means theres a bit of reverse engineering involved as well since apple is using a newwer version of HFS+ which is not entirely documented.

The documentation is the source now, it would seem. (just like much of Linux :) See:

xnu-9-1/bsd/hfs/

in the Darwin kernel (aka "xnu") source. hfs_format.h defines the on-disk layout, including the structure used for storage of permission bits.

From the information in that file it looks like the HFS+ version is still 4, BTW.

Looks like it should even be possible to figure out how Apple did the hard- and soft-link hacks. Maybe one day Linux will be able to boot directly from HFS+ just as Darwin does. That would be perverse. :) --
Tim Seufert

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#5 lore raw
Quoted 4 lines · Timothy A. Seufert

Looks like it should even be possible to figure out how Apple did the hard- and soft-link hacks. Maybe one day Linux will be able to boot directly from HFS+ just as Darwin does. That would be perverse. :)

damn you! now i have to clean up a big mess of puke...

--
Ethan Benson
http://www.alaska.net/~erbenson/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#6 lore raw
In reply to Ethan Benson
Quoted 8 lines

well it also doesn't document things like the permission bits, it just says they are unused and reserved, obviously this is not the case given OSX, apple just has not updated this document.

that means theres a bit of reverse engineering involved as well since apple is using a newwer version of HFS+ which is not entirely documented.

Darwin source contains the full implentation of HFS+ used by Apple.

Ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/