IPod Toolchain

From wikiPodLinux

Note: This is a toolchain for compiling programs for the iPod on the iPod. For compiling programs for the iPod but on a computer, see Toolchain.


This is an arm-elf cross arm-elf toolchain (build stuff on the iPod to run on the iPod) as an exercise in seeing-if-it-could-be-done. Even if it works, actually editing and compiling the programs will take prohibitive amounts of time. Still, it's a cool party trick :-)


Download link: Mirror (http://downloads.sourceforge.net/zeroslackr/arm-elf-ipod-tools-20050910-mirror.tar.gz) (Mirror uploaded with permission by Josh)

The file is 44MB .tar.gz and expands to 150MB, which means you'll either have to choose a large-enough Linux partition size when installing iPodLinux to hold both the toolchain and userland, or create a new partition to hold it. Note that you will be unable to extract the toolchain through Windows; you must either use Linux or Mac OSX.


You can then test the toolchain by creating a simple "Hello World" program as "/hello.c" (note that one already exists in the toolchain download):

int main() {
    printf ("Hello, World!\n");
    return 0;
}


You can then compile the program by running a script like "/compile.sh" through iPodLinux (you'll have to create this file with PodWrite or execute the lines via Terminal):

#!/bin/sh
cd /
gcc -Wl,-elf2flt -v -o hello hello.c


Have some fun.

Josh 01:00, 10 Sep 2005 (CDT), Re-updated by ~ Keripo 20:13, 18 Dec 2007 (CST)

Navigation



  • Google Search (http://www.google.com/custom?sa=Google+Search&cof=S%3Ahttp%3A%2F%2Fwww.ipodlinux.org%3BVLC%3Apurple%3BAH%3Acenter%3BBGC%3Awhite%3BLH%3A141%3BLC%3Ablue%3BL%3Ahttp%3A%2F%2Fipodlinux.org%2Fstylesheets%2Fimages%2Fwiki.png%3BALC%3Ablue%3BLW%3A128%3BT%3Ablack%3BAWFID%3A70a74ab66f4d59ae%3B&domains=ipodlinux.org&sitesearch=ipodlinux.org)