My uClinux on Sony clie Project

Source: Internet
Author: User
Intro

This page is about getting uClinux to run on Sony clie Palm OS handheld devices. Why do it? Because it's fun and because I cocould learn something along the way. I have got a clie PEG-T615C handheld that I do not use anymore, so I thought it wocould be cool to use it to run Linux.

My initial Google search netted a site dedicated to running Linux on Palm OS handhelds. it is a bit outdated, but has quite a bit of useful information and it actually got me started in the first place.

News
  • 09/11/2004 updates:

    • The new uClinux clie support patch file that fixes bugs I mentioned earlier
    • The patch that adds MediaQ-1100 framebuffer support
    • The new uClinux image built with the above two patches encoded
  • 09/05/2004 I have got Microwindows working on clie. no touchscreen yet. I have established that it uses burr-brown ads7846 touch screen controller, but I do not know what ports it is connected. if I am able to find this information, I will try to get it working

  • 09/02/2004 another cool site about uClinux on Dragonball. Currently I am using the information from this page to get Microwindows running on clie

  • 09/02/2004 this is a leading cial offering of uClinux for Palm III and palm V There is kernel source archive available and it is an old (2.0.x) uClinux kernel with a couple of drivers added.

  • 08/30/2004 I have been working on a framebuffer driver for the clie's MediaQ-1100 graphic controller. at this point I have got a simple driver that works reasonably well. here is a picture. yeah, that's a normal 8bpp framebuffer Linux console with familiar logo once I am ready I will submit it to uClinux tree

  • 08/30/2004 I have been chasing a nasty bug (actually two) in the palm loader (A palmos application that is used as a boot loader for Linux ). one was introduced by yours truly, another has been there all along. again, I will submit a patch soon

  • 08/30/2004 I need to take a breather from hacking at clie, staying up late and consuming inordinate amounts of coffee

Tested hardware
  1. Client PEG-T615C
  2. Client PEG-SJ30
Running the pre-built uclinix Image

If you just want to check it out:

  1. Download the PRC File

  2. Get a serial cable. See below for instructions on how to make one

  3. Backup your palm Device

  4. Copy the PRC file to your clie. connect a terminal at 9600 baud, no parity, 8 bits per character, 1 stop bit to the serial port you had connected the clie. start the palm loader application. observe the kernel boot messages in the terminal window

Building your own image

If you want to build your own image here are the steps:

  1. First of all, this uClinux port has been developed and tested on clie PEG-T615C device. it will probably also work on other Sony clie T and S Series devices. see above for the list of tested hardware.

    It will probably also work on other palmos 4.x based devices running on Motorola mc68vz328 Dragonball vz cpu. there are seem to be some differences related to which of the 2 Dragonball uarts (serial ports) a particle device is using, so there might be an issue there.

  2. Clie comes with a USB cradle or cable. in order to get a serial console you wowould need a serial cable. you can make your own serial cable or buy one from a Web retailer or on eBay. I desided to make my own cable just to get a chance to learn proper soldering and get the right tools. keep in mind, that the spacing between clie connecontacts is very narrow, so soldering the connector ctorIsHard.

  3. Back up your clie. The palm loader application will wipe out the contents of your RAM and once you are done with Linux you will need to reboot. clie will come up as if it was cold reset with all of the ram data lost. since I stopped using my clie long ago it was not a problem for me.

  4. Download the full source uClinux distribution from this page.

  5. Download the most recent m68k toolchain from this page. you can either get binaries and save yourself some work, or get the source and build it on your own. I do not like stuff trying to install into/OPT or some such, so I built it myself.

    If you chose to build the tool chain from the source, download all those dozen or so files and read the notes in the beginning of the supplied shell scriptBuild-uclinux-tools.sh.

  6. Download the PRC-tools here. This is needed to build the palm-loader (the Palm OS application that serves as a boot loader for Linux)

  7. Download pilrc, palm resource compiler here

  8. Download Palm OS SDK 5.3 For PRC tools. You wocould have to register and navigate starting from this page.

  9. Now build all the tools. I installed all of them into separate subdirectories of my uClinux working directory. of course you cocould use/usr/local or any other directory of your choice. the supplied configure scripts work fine.

    Update your environment. You shoshould have the bin directories of your m68k toolchain, PRC-tools and pilrc in your pathBeforeYour normal paths. 'Which GCC 'shocould return your regular host GCC, 'which genromfs' shoshould return the binary supplied by the uClinux tools.

  10. As of the time of this writing uClinux does not have clie (or other palm handhelds Based on Dragonball VZ) support. so, download my patch to get it. the patch is done against the uClinux-dist-20040408.tar.gz distribution. if your distribution is newer, you may have to apply it manually.

  11. Extract the uClinux source archive and apply the patch:

    tar xvzf uClinux-dist-20040408.tar.gzcd uClinux-distpatch -p0 -u < clie.diff
  12. Run configure process:

    make config

    And chose Sony for a vendor, clie for a board and linux-2.4.x for a kernel version. Chose default (hit enter) on all other questions.

    If this succeeded (this step is sensitive to your pathing, so remember that your "GCC" has to be the host GCC,/usr/bin/GCC !) Run

    make dep && make

    Now get yourself a cup of coffee and check your terminal again in a few minutes. If everything went allright, you shocould have a file calledUclinuxpalm. PRCIn./ImagesSubdirectory.

  13. Copy the PRC file to your clie. Connect a terminal at 9600 baud, no parity, 8 bits per character, 1 stop bit to the serial port you had connected the clie to. StartPalm LoaderApplication on your clie. You shoshould see something like:

    ABCDEFGLinux version 2.4.24-uc0 (solovam@kremvax) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and sharedlib patches from http://www.snapgear.com/)) #1 Wed Aug 4 18:13:23 MDT 200468VZ328 DragonBallVZ support (c) 2001 Lineo, Inc. uClinux/MC68VZ328Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff DionneOn node 0 totalpages: 4096zone(0): 0 pages.zone(1): 4096 pages.zone(2): 0 pages.Kernel command line:Calibrating delay loop... 2.64 BogoMIPSMemory available: 14468k/15807k RAM, 0k/0k ROM (573k kernel code, 239k data)kmem_create: Forcing size word alignment - vm_area_structkmem_create: Forcing size word alignment - mm_structkmem_create: Forcing size word alignment - filpDentry cache hash table entries: 2048 (order: 2, 16384 bytes)Inode cache hash table entries: 1024 (order: 1, 8192 bytes)Mount cache hash table entries: 512 (order: 0, 4096 bytes)kmem_create: Forcing size word alignment - bdev_cachekmem_create: Forcing size word alignment - cdev_cachekmem_create: Forcing size word alignment - kiobufBuffer cache hash table entries: 1024 (order: 0, 4096 bytes)Page-cache hash table entries: 4096 (order: 2, 16384 bytes)POSIX conformance testing by UNIFIXLinux NET4.0 for Linux 2.4Based upon Swansea University Computer Society NET3.039kmem_create: Forcing size word alignment - sockInitializing RT netlink socketStarting kswapdkmem_create: Forcing size word alignment - file_lock_cacheMC68328 serial driver version 1.00ttyS0 at 0xfffff900 (irq = 2) is a builtin MC68328 UARTkmem_create: Forcing size word alignment - blkdev_requestsBlkmem copyright 1998,1999 D. Jeff DionneBlkmem copyright 1998 Kenneth AlbanowskiBlkmem 1 disk images:0: CBEAC-1AEAAB [VIRTUAL CBEAC-1AEAAB] (RO)RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksizePPP generic driver version 2.4.2PPP MPPE compression module registeredNET4: Linux TCP/IP 1.0 for NET4.0IP Protocols: ICMP, UDP, TCPkmem_create: Forcing size word alignment - ip_dst_cacheIP: routing cache hash table of 512 buckets, 4KbytesTCP: Hash tables configured (established 1024 bind 1024)NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.VFS: Mounted root (romfs filesystem) readonly.Welcome to          ____ _  _         /  __| ||_|    _   _| |  | | _ ____  _   _  _  _   | | | | |  | || |  _ /| | | |/ // /   | |_| | |__| || | | | | |_| |/    /   |  ___/____|_||_|_| |_|/____|/_//_/   | |   |_| For further information check:http://www.uclinux.org/#
  14. That's it for know. once you are done, reset the clie and you will get a brand new Palm OS startup. if you can think of a cool hack to run on clie with uCLinux, please let me know.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.