30 Jun 2007 Elleo   » (Journeyer)

Im in ur Treo, Linuxin’ ur phonez…

With much help from the chaps in #hackndev I managed to get Linux installed on my Treo 650:

Linux Treo 650

You can see a video of it booting and running a few applications here:

http://mirror.video.blip.tv/Elleo-LinuxOnATreo650996.ogg (Ogg Theora)

For anyone else wanting to do this, the steps are as follows:

  1. Download and unpack P3t3’s Treo image.
  2. Overwrite the zImage with my version. This is a more up-to-date kernel and has the initramfs built in to the kernel image (because of some buggyness in the MMC driver loading an initrd image from an SD card can be unreliable).
  3. Run the following command: dd if=/dev/zero of=swap.swapfs bs=1024 count=32768
  4. Copy AngstromOPIE_t650-v01.ext2, linux.boot.cfg, zImage and swap.swapfs to the root of your SD card (make sure you unmount it cleanly after you’ve finished).
  5. Download P3t3’s Treo version of cocoboot and install it to your Treo.
  6. Run Cocoboot on your Treo, delete the line saying “init=/linuxrc”, then hit “Boot”.
  7. Enjoy the geeky goodness :) .

It’s still not amazingly fast, but adding the swap makes it just about usable, and there’s still a lot of work needs doing before it can actually be used as a phone. I believe P3t3 has worked out how to switch the GSM chip in to AT mode (PalmOS uses some odd binary mode for talking to the chip), but I don’t think things have gone much further than that yet.

To get back in to PalmOS just hit the reset button. It shouldn’t touch any of your files in any way, but it might be a good idea to backup first just in case ;) .

Update: The speed can be increased greatly by passing the parameter mem=32M in Cocoboot, for some reason without this the kernel only makes use of about 16MB of RAM.

Syndicated 2007-06-30 19:42:56 from Michael Sheldon's Stuff

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!