Linux on Palm Zire 72 How-To
Home | Status | Hardware | Downloads | How-To | Bootloader
DISCLAIMER
Before starting testing GNU/Linux on your Palm Zire 72 backup your data as actually there's no garanty that after a soft reset your PalmOS data and applications are preserved and/or not corrupted. The only way to restore the contents is to backup before starting testing linux, hard reset and restore your handheld data with a hotsysnch or with a backup tool(some applications may need to be reinstalled).
NOTE: the support for Palm Zire 72 is actually in a very early stage, so expect to see every kind of problems and kernel errors.
Step by step guide without building
Go to downloads and download latest release
GPE
Binary images available on http://ossfans.org/angstrom/
OPIE
not now
Tools needed
to build the kernel:
In order to build the kernel you need a cross-compiler that generates code for the arm processor. Cross-compilers are often distributed as toolchains, packages that contain all the tools needed to cross compile. Depending on your linux distro, you may find different toolchains binaries. Have a look at this page (DevelopmentToolchains) to have more information.
Some installations known as working:
-
Gentoo: crossdev (emerge crossdev and run crossdev -t arm-unknown-linux-uclibc)
-
Debian:
scratchbox
-
Mandriva 2006: arm-linux-gcc-3.4.1.tar.bz2 package at ftp://ftp.handhelds.org/projects/toolchain
Debian cross compiler from packages:
into /etc/apt/sources.list add following lines:
-
#Cross toolchain
-
deb http://www.emdebian.org/debian/ unstable cross-unstable
-
deb http://www.emdebian.org/debian/ testing main
-
deb http://www.emdebian.org/debian/ unstable main
then
$ apt-get update
$ apt-get install gcc-4.1-arm-linux-gnu
to build garux:
-
palmos-sdk - PalmOS header files
-
prc-tools - cross-compiler for m68k and ARM platforms
-
pilot-link - application to upload files to PDA from Linux
to create the initrd:
-
buildroot - for building custom initrd
Building the kernel
The kernel containing the latest changes for the Palm Zire 72 is actually hosted by the project
Hack&Dev on SourceForge, so
-
check out the latest sources: svn co https://svn.sourceforge.net/svnroot/hackndev/linux4palm/linux/trunk
-
$ cd trunk
-
$ export CFLAGS="-mcpu=xscale -Wa,-mfpu=fpa11"
-
$ export ARCH=arm
-
$ export CROSS_COMPILE='arm-linux-gnu-'
-
$ make palmz72_defconfig
-
$ make
Now kernel image is trunk/arch/arm/boot/zImage
Create initrd
touch initrd; gzip initrd; copy initrd.gz to root of card
Building Root FS
http://www.angstrom-distribution.org/building-angstrom
Building Garux
Uploading to PDA
-
via USB: PILOTPORT=/dev/ttyUSB0 pilot-xfer -i garux-20060401.prc
-
via serial port: PILOTPORT=/dev/ttyS0 pilot-xfer -i garux-20060401.prc
-
copy zImage.20060421 to root of card as zImage
Some distribution may automatically create a link /dev/pilot, so you can transfer with
-
pilot-xfer -p /dev/pilot -i garux.prc
Return to PalmOS
Run reboot from interface or terminal. Or turn reset button on back side.
NOTE: backup your data as actually there's no garanty that after a soft reset your PalmOS data and applications are preserved and/or not corrupted. The only way to restore the contents is to backup before starting testing linux, hard reset and restore your handheld data with a hotsysnch or with a backup tool(some applications may need to be reinstalled).