Status
Links
Dangerous/unstable garux.prc's https://waffle.slapin.net/palm/deploy/
HOW-TO
This HOW-TO explains how to install linux on a Zire 72. Before go on you must backup your data. Running linux make your data to be lost.
The kernel used is 2.6.17
I use Debian Sarge 3.1, so this HOW-TO is specific for it.
Requirements
To compile Linux and cocoboot you need to install prc-tools and palmos sdk platform . In a Debian box you have to install the following packages with apt-get
prc-tools prc-tools-arm prc-tools-m68k prc-tools-utils pilrc pilot-link
The sdk platform can be obtained from: http://www.palmos.com/dev/tools/sdk/
To install it follow the instructions come with it.
Setup environment
To compile linux, cocoboot, etc. we must firs set the environmet to crosscompiling This can be made:
$ export CFLAGS="-mcpu=xscale -Wa,-mfpu=fpa11" $ export ARCH=arm $ export CROSS_COMPILE='arm-linux-'
Compiling cocoboot
Download cocoboot from svn repository
$ svn co https://svn.sourceforge.net/svnroot/hackndev/cocoboot/trunk cocoboot
Goto cocoboot dir
$ cd cocoboot
Build cocoboot
$ make
Now you should have a cocoboot.prc file
$ cd ..
Compiling kernel
Download linux kernel from svn repository
$ svn co https://svn.sourceforge.net/svnroot/hackndev/linux4palm/linux/trunk linux
Goto linux directory
$ cd linux
Execute the following commands
$ make mrproper $ make palmz72_defconfig $ make zImage
Now kernel image is trunk/arch/arm/boot/zImage
Note: If an error ocurrs like asmloader.c:25:24: Standalone.h: No such file or directory, we can make a workaround. As root :
$ cp /usr/share/prc-tools/include/Standalone.h /usr/local/share/palmdev/sdk-5r3/include/
Create initrd.gz
TODO
Creating rootfs
TODO
Creating gpe image
TODO
Installing
First backup your data. With pilot-link
Push sync button in your palm an then execute
pilot-xfer -b backupdir -p /dev/ttyUSB1
To install you must follow these steps.
1.- Edit linux.boot.cfg and leave it as:
SWAP_DEV=$FILES_MNT/swap ROOT_DEV=$FILES_MNT/gpe.ext
2.- Make swap file
$ dd if=/dev/zero of=swap.fs bs=1k count=32k $ mkswap swap
3.- Mount your sd card in a directory. Example: /mnt/sdcard
4.- Copy swap, zImage, initrd.gz, gpe.ext, linux.boot.cfg to /mnt/sdcard
5.- Copy cocoboot.prc to /mnt/sdcard/palm/launcher
6.- Umount /mnt/sdcard
7.- Execute cocoboot in your palm