Linux on Palm Tungsten T2 How-To
Home | News | Status | Hardware | Downloads | How-To | Bootloader
Tools needed
-
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
First, put TT2 support patches into the directory with the Linux kernel sources:
-
cat patch-2.6.14-omap2 | patch -p1
cat patch-2.6.14-omap2-palmtt2 | patch -p1
Then, copy .config from Downloads to the Linux kernel source directory
-
make menuconfig
make zImage
Find the compiled kernel in arch/arm/boot
Building initrd
If you are not satisfied with the list of programs in initrd.gz from Downloads , you can build your own set with the help of buildroot. First, try to build initrd with tested configs:
-
config for buildroot from Downloads
-
config for uclubc from Downloads
-
config for busybox from Downloads
Then type make and find filesystem in the ? directory.
Using romfs filesystem
Using romfs makes initrd about half the size as compared to minixfs.
-
genromfs -d filesystem directory name -f initrd
gzip initrd
Building GPE
I use gpe-image-h3600-20050407124742.rootfs.tar.bz2 with changes ( Downloads:files_for_gpe.tgz) for right touchscreen settings.
Building Garux
You need the initrd.gz and zImage files. You can take pre-made ones from Downloads. Copy initrd.gz and zImage files into the directory where Garux is placed, then type commands:
-
make clean
make
File garux.prc will appear in directory. If it doesn't, check the error message(s).
Uploading to PDA
-
via USB: PILOTPORT=/dev/ttyUSB0 pilot-xfer -i garux.prc
-
via serial port: PILOTPORT=/dev/ttyS0 pilot-xfer -i garux.prc
Running Linux
To start Linux just start Garux as any other application on your PDA. WARNING !!! Please backup before starting.
-
IP: 192.168.5.31
-
Login: root
-
Password: linuxrulit
Return to PalmOS
Softreset(reset button or command reboot) your PDA and PalmOS will appear.
U-boot
-
Install U-boot
Download u-boot.prc
run it
$ cat /proc/mtd
dev: size erasesize name
mtd0: 00002000 00002000 "write8k"
mtd1: 0000e000 00002000 "PalmOS-BootLoader(ro)"
mtd2: 00010000 00010000 "u-boot"
mtd3: 00720000 00010000 "PalmOS-FS(ro)"
mtd4: 00020000 00010000 "u-boot(rez)"
mtd5: 000a0000 00010000 "empty"
1) Modification of the BootLoader
$ flasheraseall /dev/mtd0
$ cat /palm-8k-jmp.img > /dev/mtd0
2) Installation of the U-boot
$ flasheraseall /dev/mtd2
$ cat /u-boot.bin > /dev/mtd2
$ reboot
-
Restore PalmOS BootLoader
$ flasheraseall /dev/mtd0
$ cat /palm-8k.img > /dev/mtd0
$ reboot