Skip to content

Building iphonelinux demo

dranfi edited this page Sep 14, 2010 · 6 revisions

You can get the binaries (linux) here :
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 in these tar.gz)

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 revision :
git branch iphonelinux 4ffaf869c7780bbdfc11291e5fd4b61dde662b1c
git checkout iphonelinux

Patch the kernel:
Copy file linux.patch (from sources folder) in the linux-2.6 folder
git apply ../iphonelinux-demo/sources/linux.patch

Compile the kernel:
Copy the files .config and config (from sources folder) in the linux-2.6 folder !! .config is un hidden file
make

You’ll find the kernel here : arch/arm/boot/zImage

Clone this wiki locally