Handhelds.org - Open source for handheld devices

UserPreferences

PalmTungstenE2HowTo


Linux on Palm Tungsten E2 How-To

Home | Status | Screenshots | Hardware | Downloads | How-To | Bootloader

NOTICE

If you need help with this tutorial, please go to #hackndev @ irc.freenode.com and look for medaglia.

DISCLAIMER

Before starting testing GNU/Linux on your Palm Tungsten E2 backup your data as actually there's no guarantee 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 hotsysnc or with a backup tool(some applications may need to be reinstalled). NOTE: the support for Palm T|E2 is actually in a very early stage, so expect to see every kind of problems and kernel errors

Introduction

First, create a backup using an application like [WWW]JPilot. To use it, connect the Palm T|E2 USB cable, press the hotsync button, what one or two seconds and then click the "sync and backup" button in JPilot or your favorite application.

Other prerequisites are: memory card and a card reader device. The card reader is necessary for mounting the memory card as a standard linux block device, for arbitrary file downloading and repartitioning. If you don't have a card reader, there is shareware software that emulates a standard USB card reader using the Palm T|E2 (eg: [WWW]Card Reader).

Partitioning

Backup the contents of the card and partition it to the minimum requirements below using a program such as GParted. The Palm E2 has 16 MB of memory, so it constrains the use of swap.

Step by step guide without building

  1. Download the files for OPIE: [WWW]http://nerdfeliz.com/palmte2/new_image.ext2.bz2

  2. Extract the archive: bzip2 -df new_image.ext2.bz2

  3. Mount the image to a temporary directory: mount -o loop new_image.ext2 <temp>

  4. Copy the files from the temporary directory to the root of the ext2 partition (requires root/superuser access).

  5. Download the bootloader: [WWW]http://downloads.sourceforge.net/hackndev/cocoboot-0.4.prc?modtime=1184790475&big_mirror=0

  6. Download the kernel: [WWW]http://nerdfeliz.com/palmte2/kernel/zImage.20070719 and rename it to "zImage"

  7. Create a file named "linux.boot.cfg" and save the contents below to it.

  8. Copy "cocoboot-0.4.prc" to the /PALM/Launcher directory of the vfat partition (if the directories do not exist, create them).

  9. Copy "zImage" and "linux.boot.cfg" to the root of the vfat partition.

  10. Unmount the SD card and boot from the program "cocoboot."

GPE

GPE image for T3 ( from [WWW]http://sourceforge.net/project/showfiles.php?group_id=155828) working with added swap. Familiar GPE images for iPaq h6300 working with modifed Xfbdev and added swap.

GPE work very slow!

Build

Also you can build some components.

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:

to build garux:

to create the initrd:

Building the kernel

The kernel containing the latest changes for the Palm T|E2 is actually hosted by the project [WWW]Hack&Dev on SourceForge, so

Create initrd

touch initrd; gzip initrd; copy initrd.gz to root of card

Building GPE

Building Garux

Uploading to PDA

Some distribution may automatically create a link /dev/pilot, so you can transfer with

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 guarantee 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 hotsync or with a backup tool(some applications may need to be reinstalled)