...improve my system performance

Well, this is not much of a question, it's more a "How to" guide.

I've been testing 72ka's bootpacks for quite some time now (since version 0.5, to be exact) -- great work, by the way! -- and I have done some things that, I think, are important to share with others.

Every time someone writes about GPE running on the Z72 they complain about the poor performance of the system.

I may be saying something everyone already knows, but I'll take my chances.

I thought: "Well, maybe if GPE ran on a native ext2 partition, instead of a loop device, it would be faster". And then I started my experiments.

Using a trial version of Mobile Stream CardReader (http://www.mobile-stream.com/cardreader.html), I managed to partition my 1GB SD card as if it was a pen drive (through /dev/sda).

I created a 256MB FAT16 (fdisk type 06) partition formatted as vfat, a 128MB linux swap partition (type 82, I think), and the rest of the space I used for a native linux partition formatted with the ext2 filesystem.

For the next steps, I mounted /dev/sda1 on /media/sda1 and /dev/sda3 on /media/sda3.

Next thing, I copied cocoboot.prc and CardReader.prc (for troubleshooting purposes) to /media/sda1/PALM/Launcher and the files cocoboot.conf and zImage to /media/sda1.

Then I created a "bogus" initrd.gz with the following commands:

  • touch /media/sda1/initrd
  • gzip /media/sda1/initrd

After that, I mounted 72ka's opie.ext2 on /media/opie and copied all of the files to the ext2 partition on the SD card:

  • cp -a /media/opie/* /media/sda3/

After copying the files, I edited /media/sda3/etc/fstab to automagically activate the swap partition, and mount the FAT partition on /media/card, by appending the following lines to the file:

/dev/mmcblk0p1 /media/card vfat defaults 0 0
/dev/mmcblk0p2 none swap sw 0 0

Now all that was left for me to do was to edit /media/sda1/cocoboot.conf, so that it would boot from /dev/mmcblk0p3. The only thing that needed to be changed is the cmdline parameter.

cmdline = noinitrd root=/dev/mmcblk0p3 ro rootdelay=1

Explaining:

noinitrd
so that cocoboot doesn't process the bogus initrd.gz during initialization;
root=/dev/mmcblk0p3
to tell it which partition to boot from;
ro
Read-only mount at boot, to make sure e2fsck can check the partition;
rootdelay=1
It took me a long time to realize the system needed a second to mount the partition before it could boot.

There you go. Now just figure out how to install GPE on Palm Z72 (just wait for my next topic/guide: How to install GPE on your Palm Zire 72 without having to compile anything) and you'll have a very functional and fast Linux on your handheld.

Or, if you prefer, keep using Opie, only a lot faster.

Hope this guide was somehow helpful.

Sorry for any spelling/grammar errors, but I don't get to practice my English much here in Brazil.

See ya!

Hi, I know, but this is too

Hi, I know, but this is too hard for instaling for basic users. I have tested this a year ago, but I mean, system is generally slower than on a loop ext2 device. Anyway, thanks for your experiments and publication.
P.S. I have latest images of GPE for PalmZ72, but never been uploaded... aaaalwaaaayyyysss tttttttttoooooooooo slooooooooowwwwwww :(

If you could publish the GPE

If you could publish the GPE image for me somewhere I'd appreciate it.

GPE has been working alright for me in terms of performance. Besides, the additional software that doesn't run on Opie (as far as I know -- Abiword, Gnumeric, Plucker) is worth a slightly slower system.

Thanks in advance.

Hi, I am sorry for my first

Hi, I am sorry for my first react. I have tested Opie and GPE without initrd, directly from ext2 partition, swap directly on swap partition. System is 2x faster than a loop device. This is great.

But problem with installing for basic users exist...

Hey, could you please post

Hey,

could you please post those GPE images soon? I really want to install it now that it might run acceptably fast, however the only images I found (from http://ossfans.org/angstrom/) don't seem to work. I think they worked better before, but the login screen won't work. It appears to click things when I tap the stylus, but nothing happens.

Thanks,

~Jeffery MacEachern
<>< :: Angstrom|Palm Z72 User :: Ubuntu Gutsy User :: All-around Geek

Hi, I ended up building an

Hi,

I ended up building an image with OpenEmbedded. Kudos to the guys who made that - I've never had a perfect 8-hour build with no user intervention before - it's awesome! However, the kernel doesn't like me. Whenever I try to boot with it, it does the not-so-nice fading white screen thing. ...I'll bring that up in another thread, so as not to hijack this one

I *did* however get OPIE running as described in this article. It's fast! Thanks for posting this; the standard way worked, but this is so much better!

~Jeffery MacEachern
<>< :: Angstrom|Palm Z72 User :: Ubuntu Gutsy User :: All-around Geek

Awesome man thx, now can you

Awesome man thx, now can you install GCC onto this? that would be even better!!!

How can you ask that? It's

How can you ask that? It's *Linux* - of course you can install GCC on it! :P That said, it won't be very speedy at compiling, even with native partitions...

~Jeffery MacEachern
<>< :: Angstrom|Palm Z72 User :: Ubuntu Gutsy User :: All-around Geek

it's quite fast at

it's quite fast at compiling, but you better have power supply available. Compiling with only battery will drain it pretty fast.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.