Skip to content

Building iphonelinux demo

jmarler edited this page Sep 14, 2010 · 6 revisions

Download the binaries for 32-bit Linux from one of these mirrors:

  • http://localhostr.com/files/b00133/iphonelinux-demo.tar.gz or
  • http://91.186.26.18/iphone/files/iphonelinux-demo.tar.gz or
  • http://www.megaupload.com/fr/?d=FXQUI4N5

(To compile the kernel, you’ll need the files in the “sources” folder.)

Get the linux kernel source code:

git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
cd linux-2.6

Checkout the specific iphonelinux revision:

git branch iphonelinux 4ffaf869c7780bbdfc11291e5fd4b61dde662b1c
git checkout iphonelinux

Patch the kernel:

Copy the file called “linux.patch” from the “sources” folder of the .tar.gz archive to the “linux-2.6” folder you downloaded using git, then:

git apply ../iphonelinux-demo/sources/linux.patch

Compile the kernel:

Copy the files “.config” and “config” from the “sources” folder of the .tar.gz archive to the “linux-2.6” folder you downloaded using git. Note that “.config” is a hidden file. Then:

make

You’ll find the compiled kernel in:

arch/arm/boot/zImage