planetbeing/iphonelinux

Compiling openiboot for iPhone 2G on x86 32bit

Opened this issue · 6 comments

I am trying to compile openibook for my 2G iPhone. Toolchain installation went wonderful, but when doing:

sudo PLATFORM=IPHONE make openiboot.img3

I get

arm-elf-gcc -Iincludes -Wall -Werror -O3 -DCONFIG_IPHONE -DOPENIBOOT_VERSION="0.1" -DOPENIBOOT_VERSION_BUILD="27a4f8b" -mlittle-endian -mfpu=vfp -mthumb -mthumb-interwork -c stb_image.c -o stb_image.o
arm-elf-gcc -mlittle-endian -mfpu=vfp -mthumb -mthumb-interwork -Ttext=0x0 --nostdlib entry.o openiboot.o arm.o tasks.o openiboot-asmhelpers.o mmu.o miu.o clock.o power.o uart.o interrupt.o timer.o event.o usb.o gpio.o util.o printf.o malloc.o dma.o nor.o aes.o spi.o chipid.o lcd.o i2c.o images.o sha1.o commands.o pmu.o buttons.o framebuffer.o actions.o nvram.o nand.o ftl.o accel.o sdio.o wdt.o wm8958.o multitouch.o wlan.o radio.o als.o camera.o hfs/btree.o hfs/catalog.o hfs/extents.o hfs/fastunicodecompare.o hfs/rawfile.o hfs/utility.o hfs/volume.o hfs/bdev.o hfs/fs.o menu.o stb_image.o -lgcc -nostdlib -o openiboot
cd mk8900image/; make
make[1]: Entering directory /home/zeno/.software/iphonelinux/openiboot/mk8900image' cc -m32 -c mk8900image.c -o mk8900image.o mk8900image.c: In Funktion »main«: mk8900image.c:83: Warnung: Zuweisung erzeugt Zeiger von Ganzzahl ohne Typkonvertierung make[1]: *** Keine Regel vorhanden, um das Target »libcommon.a«, benötigt von »mk8900image«, zu erstellen. Schluss. make[1]: Leaving directory/home/zeno/.software/iphonelinux/openiboot/mk8900image'
make: *** [mk8900image/mk8900image] Fehler 2

Any hints?

Copy libcommon.a and libxpwn.a from xpwn to /home/zeno/.software/iphonelinux/openiboot/mk8900image

Thank your for the info! Where do I find those files? Is that another git-Directory that I have to clone?

the libxpwn.a and libcommon.a are from planetbeing's xpwn repository ... so yes, it is another repo that you have to clone and compile.

Thanks for the hint! The only place I find the file is here: http://github.com/dborca/xpwn/blob/5c8b07519892de6a3a057aa0755b2e368d2a47db/ipsw-patch/CMakeLists.txt

Can you point me to the HowTo instructions to get it compiled?

Ah great! Thanks!