From: <One...@ao...> - 2004-04-11 14:55:57
|
# Version 0.2 # Mac OS X podzilla # These instructions will guide you through the steps necessary to compile p= odzilla # under Mac OS X. # These instructions assume you already have linux set up on your iPod and t= hat you # have already installed the arm toolchain. # # Instructions written by Jeff N. (One...@ao...) (macPod on irc) mkdir ipodlinux cd ipodlinux curl -O ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz tar zxf jpegsrc.v6b.tar.gz cd JPEG-6B/ cp jconfig.doc jconfig.h cp makefile.ansi Makefile Open the Makefile file: At line 11: change "CC=3D cc" to "CC=3D arm-elf-gcc" At line 20: change "LDFLAGS=3D " to "LDFLAGS=3D -Wl, -elf2flt" Search for "jconfig.h" and add a "#" to the beginning of this line. make If you recieve this error: libjpeg.a: could not read symbols: Archive has no index; run ranlib to add o= ne collect2: ld returned 1 exit status make: *** [cjpeg] Error 1 Run: arm-elf-ranlib libjpeg.a make Do not worry if you see the following: echo You must prepare a system-dependent jconfig.h file. You must prepare a system-dependent jconfig.h file. echo Please read the installation directions in install.doc. Please read the installation directions in install.doc. exit 1 make: *** [wrjpgcom] Error 1 cd .. curl -O ftp://microwindows.censoft.com/pub/microwindows-0.90.tar.gz tar zxf microwindows-0.90.tar.gz && mv microwindows-0.90 microwindows cvs -d:pserver:ano...@cv...:/cvsroot/ipodlinux login=20 [ press enter for "CVS password:" ]=20 cvs -z3 -d:pserver:ano...@cv...:/cvsroot/ipodlinux co tools= /microwindows=20 cp -r tools/microwindows/* microwindows cd microwindows/src/ cp configs/config.ipod config Open the config file: Search for "HAVE_JPEG_SUPPORT" and modify the file to look as the following.= (session=20 should be replaced with your user name.) HAVE_JPEG_SUPPORT =3D Y INCJPEG =3D /Users/session/ipodlinux/jpeg-6b/ LIBJPEG =3D /Users/session/ipodlinux/jpeg-6b/ Open Arch.rules: Search for "__uClinux__" and change the line that this appears on to look li= ke: DEFINES +=3D -DLINUX=3D1 -DUNIX=3D1 -DARM_LINUX -D__uClinux__ -DNDEBUG make Do not worry if you see the following: Generating keynorm.c from bitmap file ... Error: bits per pixel must be 1, 4, 8 or 24 Conversion failed: keynorm.bmp make[2]: *** [keynorm.c] Error 1 make[1]: *** [subdir-nxkbd] Error 2 cd ..; cd .. cvs -z3 -d:pserver:ano...@cv...:/cvsroot/ipodlinux co tools= /podzilla cp -r tools/podzilla/ podzilla cp -r microwindows/src/lib/ podzilla/lib cd podzilla/ open the Makefile file: At line 9: Change "CFLAGS=3D-DIPOD" to "CFLAGS=3D-DIPOD -DNDEBUG" At line 14: remove the "#" from the line "# LDFLAGS+=3D-L ../jpeg-6b" At line 30: remove the "#" from the line "# LDFLAGS +=3D -ljpeg" make IPOD=3D1 Move the file named "podzilla" to the sbin folder on your iPod. Open up the rc file in the etc directory of your ipod. Add "podzilla" to the last line of the file followed by a return if it is no= t already there. Reboot your iPod and enjoy. |