OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #zaurus and #alarmz chat on freenode.net | ELSI (coming soon) | Ibiblio


Welcome Guest ( Log In | Register )

> Python on CF/SD, on Sharp ROM without ext2/ext3 card
post Nov 10 2004, 09:27 AM
Post #1

Group: Members
Posts: 329
Joined: 1-July 04
Member No.: 3,880

For the impatient:


The story:

For the past couple months I've been working on a nice iPod-like media player front end for the Zaurus. It's getting close to where I can release it (GPL'd open source) but I've been struggling with the question of how to let ordinary Zaurus users run Python apps.

There are Python binaries/libraries available for the Zaurus (Python for arm-linux) but the versions built for Sharp or Sharp-compatible ROMs have to be installed in internal memory (or an ext2/ext3 formatted CF/SD card) to work properly. To make matters worse, for my app you'd need to install a bunch of those packages and it ends up requiring some knowledge of Python and using a lot of internal memory.

So instead I built an almost complete (missing the Tk stuff and some test scripts) Python 2.3 distribution for Sharp and Sharp-compatible ROMs. Then I packaged all that up into a single file that contains an ext2 image of the Python installation tree. Thanks to some scripts and the magic of "loop" mounting, you can toss that image on any FAT formatted CF/SD card (with enough free space to hold a 50 MiB file), install a 1.2 MiB IPK, and you'll now have a relatively complete Python 2.3 distribution on your Zaurus without chewing up the 30+ MiB of internal memory that it would normally take. Note that you can install all of this without ever seeing a command prompt smile.gif

My media player still isn't quite ready for prime time, but I'm releasing the Python image and IPK now in hopes that folks with some Python knowledge will try it out and report any problems.

This has been tested on an SL-C760 running Cacko 1.21a and an SL-5500 running a standard Sharp 3.13 ROM. It should work on other Sharp-compatible ROMs. It will probably not work on OE or pdaXrom.

I've found that Python with PyQt (included in this image) is by far the easiest way to write Qtopia applications for the Zaurus. And it has the added advantage that you can develop directly on the Zaurus! If you know or want to learn Python, give this image a try and let me know what you think.
Go to the top of the page
+Quote Post

Posts in this topic
kopsis   Python on CF/SD   Nov 10 2004, 09:27 AM
stupkid   Sounds cool Kopsis. Have you tried using cramfs/s...   Nov 10 2004, 11:10 AM
kopsis   The problem with cramfs/squashfs is that they...   Nov 10 2004, 11:53 AM
GoLinux   Kopsis, I'm definitely interested in giving P...   Dec 1 2004, 12:11 PM
kopsis   QUOTE(GoLinux @ Dec 1 2004, 12:11 PM)While I ...   Dec 1 2004, 03:23 PM
aki   kopsis, this sounds pretty interesting. I will gi...   Dec 1 2004, 05:51 PM
GoLinux   Dave (a.k.a. Kopsis...) thanks a bunch for your p...   Dec 1 2004, 08:19 PM
kopsis   QUOTE(aki @ Dec 1 2004, 05:51 PM)At any rate,...   Dec 2 2004, 04:52 AM
kopsis   QUOTE(GoLinux @ Dec 1 2004, 08:19 PM)One last...   Dec 2 2004, 04:57 AM
aki   QUOTE(kopsis @ Dec 2 2004, 12:52 PM)My Python...   Dec 2 2004, 05:45 PM
slapout   I wanted to say thanks for taking the time to set ...   Dec 6 2004, 07:24 AM
shula   the problem is the GUI. though i'm a python en...   Dec 6 2004, 12:07 PM
kopsis   I'm not too familiar with anygui. I found its ...   Dec 6 2004, 02:08 PM
kopsis   QUOTE(shula @ Dec 6 2004, 12:07 PM)if someone...   Dec 6 2004, 04:18 PM
GoLinux   going along with Kopsis suggestion about reusing t...   Dec 6 2004, 05:13 PM
shula   reminder: getting used to a gui toolkit is just a ...   Dec 7 2004, 02:15 AM
kopsis   QUOTE(shula @ Dec 7 2004, 02:15 AM)at least f...   Dec 7 2004, 08:39 AM
shula   i got c860. ok , i'm probably just whining ...   Dec 7 2004, 09:40 AM
slapout   I tried to get a development environment setup abo...   Dec 7 2004, 06:03 PM
shula   i dont understand exactly. i downloaded pyqt, an...   Dec 7 2004, 11:22 PM
kopsis   QUOTE(slapout @ Dec 7 2004, 06:03 PM)Can anyo...   Dec 8 2004, 06:19 AM
nilch   kokpsis - good work there. I will definitely give...   Dec 13 2004, 07:59 AM
kopsis   QUOTE(nilch @ Dec 13 2004, 07:59 AM)Kopsis, i...   Dec 13 2004, 09:58 AM
fpp   QUOTE(kopsis @ Dec 13 2004, 09:58 AM)There...   Dec 13 2004, 10:16 AM
clofland   Just wanted to drop a quick THANK YOU to Kopsis...   Dec 22 2004, 12:26 PM

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 19th February 2018 - 11:48 AM