Tuesday, February 3, 2009

The iPhone Toolchain

Having jailbroken my iphone using quickpwn, I've been busy compiling the toolchain for Linux. The howto is relatively straight-forward, I've run into some issues with the xcode dmgs and extraction of the headers from the pkg - I'll add more when I've figured it all out. It's rather non-obvious.

UPDATE: Once you have the xcode dmg from Apple, use dmg2img to convert it to an img; one can mount this as hpfs loopback. Grab the pkg file the howto specifies. This is an xar archive, you'll need to grab the xar tool to get at the contents.

The command will look something like this:

(I recommend doing this in its own directory, as it just extracts to the current dir)

xar -xf MacOSX10.4.Universal.pkg


Once that's done, one of the resulting files should be called Payload. This is a gzip compressed cpio archive that contains the headers you need. I used this:

mv Payload payload.gz
gunzip -d < payload.gz | cpio -i


This is as far as I've gotten, as it's time for bed. I'll blog some more when I've finished building the toolchain.

Labels: , , , , ,

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home