Linux on Palm TungstenT5 How-To
Home | Status | Hardware | Downloads | How-To | Bootloader
NOTE: Everything on this page is outdated
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
Use
-
palmos-sdk - PalmOS header files
-
prc-tools - cross-compiler for m68k and ARM platforms
-
pilot-link - application to upload files to PDA from Linux
-
buildroot - for building custom initrd
Building the kernel
Make sure you have your compiler configured to generate ARM binaries:export ARCH=arm
export CROSS_COMPILE=arm-unknown-linux-gnu-
Download the
hackndev CVS kernel. Then type:
-
make palmt5_defconfig - to generate a config file with the settings for the T5
make menuconfig - to specify the bootoptions in your kernel (under bootoptions)
make zImage - File zImage will appear in linux/arch/arm/boot/ directory.
Bootoptions: Garux on the T5 requires you to specify the bootoptions in your kernel (under bootoptions).
For example, use this line if you have an initrd.gz with a filesize of 449608 bytes:
"mem=0x02000000 initrd=0xA0400000,449608 root=/dev/ram0 init=/linuxrc" ).
Building initrd
Building GPE
Building Garux
Make sure you have your compiler configured to generate ARM binaries:export ARCH=arm
export CROSS_COMPILE=arm-unknown-linux-gnu-
You need the initrd.gz and zImage files. Copy initrd.gz and zImage files into the directory where Garux is placed.
Then type commands:
-
make clean
make palmtt5
File garux.prc will appear in directory. If it doesn't, check the error message(s).
Remember to compile the Kernel with the correct bootoptions.
Building Garux NG
Make sure you have your compiler configured to generate ARM binaries:export ARCH=arm
export CROSS_COMPILE=arm-unknown-linux-gnu-
This version allows you to create a loader that loads the the initrd.gz and zImage files fro the SD card.
Copy initrd.gz and zImage files into the root directory of your FAT16 SD card. (palmos on T5 doesn't support FAT32)
To generate this version of garux type the commands:
-
make clean
make
File garux.prc will appear in directory. If it doesn't, check the error message(s).
Remember to compile the Kernel with the correct bootoptions.
Uploading to PDA
-
via USB: PILOTPORT=/dev/ttyUSB0 pilot-xfer -i garux.prc
-
via serial port: PILOTPORT=/dev/ttyS0 pilot-xfer -i garux.prc
-
via the SD card in a card-readerd. or "Drivemode" function of your T5. (Cardreader is recommended option)