Author Topic: Python for SL-5600  (Read 3902 times)

Anonymous

  • Guest
Python for SL-5600
« on: February 01, 2004, 12:16:57 pm »
I downloaded and tried to install the basic python programming
language for the Zaurus on my new SL-5600 yesterday.  It
didn\'t recognize the package.  Phil Thompson, the developer
for the Zaurus verson of Python, said the package was
compiled for the SL-5500.  Are packages model specific?
The package I tried to install is located here.
The one I am interested in is python_2.3.3-1.0_arm.ipk
Maybe someone else can try it and see if I am imagining
things.

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Python for SL-5600
« Reply #1 on: February 01, 2004, 12:21:14 pm »
Maybe you have more luck with my Python for arm linux distribution which can be found @ http://www.vanille.de/projects/python.spy
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

Anonymous

  • Guest
Python for SL-5600
« Reply #2 on: February 01, 2004, 12:26:32 pm »
I tried Mickeyl\'s python on my SL-5600 yesterday. It seems to work just fine, and I can run a \'hello world\' QPE app as well from it. I\'m running OZ 3.3.6pre1 on my Zaurus.

Regards,

Martijn

Anonymous

  • Guest
Python for SL-5600
« Reply #3 on: February 04, 2004, 01:30:55 am »
Ok, I must be missing something obvious.  Here is what
I have done:

- I downloaded the gcc3 version of python-core from Mickey\'s site.
- I moved the file onto the Zaurus using the SMB setup from
  my Mac OS X system onto the SD card in a top level
  directory called Install_Files
- I brought up Add/Remove software and pressed Install Packages.
- The package is not found and does not appear in the list.
- I go to the filer and select the .ipk file.  This brings up the
  package installer but the list of possible packages is still empty.
- Just for grins, I try to use ipkg directly from the terminal.  It
  complains about permissions for the directory /home/tmp/ipkg.

Funny thing is, I had no trouble downloading and installing the
terminal software from the CD.  I tried moving the install files
directly into Install_Files on the internal flash.  That doesn\'t seem
to work either.  I know that I am missing something obvious here
but I don\'t see it.

Just now, I downloaded another package from the CD and placed
it in Install_Files on the SD card.  The package manager found it
without difficulty.  I tried downloading the gcc2 version too.  It
still doesn\'t see the package.

The only clue I have is that on my Mac OS X system, if I use
file I see:

qpe-filemanager_1.5.0-2_arm.ipk:     gzip compressed data, from Unix

The package downloaded from Mickey\'s site says:

python-core_2.3.2-oz1_armv4l-strongarm.ipk:   Debian binary package (format 2.0
data.tar.gz/    1066954824 ) created: Thu Oct 23 17:20:24 2003

Is there some further extraction I have to do?  Any other ideas?

Anonymous

  • Guest
Python for SL-5600
« Reply #4 on: February 04, 2004, 02:04:32 am »
Ok, I think I am close now.  The problem appears to be that
Safari doesn\'t know how to download .ipk files.  If I download
the file with another browser, it comes down as a different
size and the file contents differ.  I can\'t quite explain what
Safari is doing to the files yet.  The only thing I can figure
out is that either the mime code or the suffix is recognized
by Safari and processed in some funny way.

Anonymous

  • Guest
Python for SL-5600
« Reply #5 on: February 04, 2004, 03:44:36 pm »
Well, it appears it isn\'t browser specific either.  The package
installer simply refuses to recognize any of Mickey\'s packages.
I am running the Sharp ROM v 1.32.  Is there a problem
with the package installer recognizing debian style .ipk
packages?  Is there another installer I should be using?

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Python for SL-5600
« Reply #6 on: February 04, 2004, 06:41:52 pm »
If you have a darn old ipkg, you may need to add some platform specifications (e.g. armv4l-strongarm 80) to /etc/ipkg/arch.conf
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

Anonymous

  • Guest
Python for SL-5600
« Reply #7 on: February 05, 2004, 12:09:25 am »
Hmm.  Now I am wondering about the health of the
software.  I don\'t have a /etc/ipkg/arch.conf file.
I have an /etc/ipkg.conf and it contains the lines:

dest root /
dest tmpinst /home/tmp/ipkg/inst

The first thing I did when I got the SL-5600 was to
install the 1.32 Sharp Rom.  I would think my installer
should be modern.  The ipkg that I have is located in
/home/QtPalmtop/bin and says:

Copyright © 2001 Carl D. Worth
modified by Sharp 2001

It doesn\'t have a -version option :-(

Would it be worth it for me to try to download and install
the ROM again?

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Python for SL-5600
« Reply #8 on: February 05, 2004, 04:42:40 am »
Probably not. Try adding this one to /etc/ipkg/arch.conf:

arch all 1
arch arm 1
arch arml 5
arch armv1l 10
arch armv2l 10
arch armv3l 10
arch armv3l-arm7 10
arch armv4l 25
arch armv4l-strongarm 25
arch armv4l-xscale 50
arch armv5l 50
arch xscale 75
arch poodle 100
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

Anonymous

  • Guest
Python for SL-5600
« Reply #9 on: February 06, 2004, 01:44:46 am »
I think I managed to finally solve the problem.  The answer was
buried in the FAQ.  Debian packages must be reorganized in order
to work with the Sharp rom.  Debian packages come as an \"ar\"
archive of the three install files: debian-binary, control.tar.gz,
and data.tar.gz.  The Sharp ROM expects these files to be
in a compressed tar archive.  I ended up writing a small python
program that extracts the files out and puts them into a compressed
tar archive.  The SL-5600 seems to recognize the results.  I
haven\'t actually tried to install the package yet.  But I soon will.