Author Topic: Debian Applications On Sharp Rom  (Read 4634 times)

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Debian Applications On Sharp Rom
« on: August 19, 2005, 02:03:01 am »
I've been toying with the idea of being able to run Debian apps (.deb packages) directly on the Sharp ROM without going through chrooted Debian. I've setup X/Qt to be able to run X and written a script that can convert a .deb file into a .ipk file. The only thing remaining is the library support since Sharp ROM uses glib 2.2.x whereas Debian uses 2.3.x. I've assembled the necessary standard C libraries and created a ipk package to upgrade them. If this works, then I will be able to download debian packages, convert them to sharp rom compatible packages and run them. This would then potentially allow me to run OpenOffice from Sharp ROM with X/Qt installed. I will know if this works when I test the glib package. I am currently on the road so cannot backup my Z to test it so watch this space when I return
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Debian Applications On Sharp Rom
« Reply #1 on: August 19, 2005, 02:06:32 am »
excellent!   keep us posted
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Debian Applications On Sharp Rom
« Reply #2 on: August 19, 2005, 08:57:24 am »
Quote
I've assembled the necessary standard C libraries and created a ipk package to upgrade them. If this works,

Hmm, I tried upgrading libc once upon a time. It didn't work and I needed a reflash to recover. I've always wondered whether it was actually possible.

A couple of points - can the Sharp's flashROM be made rw so that you can perform the update?

Why not just install the libc files elsewhere and alter LD_LIBRARY_PATH when you run a debian app?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

ken

  • Sr. Member
  • ****
  • Posts: 274
    • View Profile
Debian Applications On Sharp Rom
« Reply #3 on: August 20, 2005, 12:44:07 am »
Quote
I've been toying with the idea of being able to run Debian apps (.deb packages) directly on the Sharp ROM without going through chrooted Debian. I've setup X/Qt

gpsdrive would be very interesting to run.  So far I haven't found ipk's for the following gpsdrive requirements (not that I've looked very hard):

pcre, xdevel (X11 development), gettext, libcrypt, glibc

I think that, and kstars would be the 2 applications I'd be very interested in seeing run on X/Qt ...
SL-6000L Sharp ROM 1.12 - 1G SD (RiDATA) - 2G Microdrive (Hitachi)
TRENDnet TE-CF100 10/100 (no drivers needed) AmbiCom CF56M-EZ modem (no drivers needed)

Cresho

  • Hero Member
  • *****
  • Posts: 1609
    • View Profile
    • http://home.earthlink.net/~cresho/
Debian Applications On Sharp Rom
« Reply #4 on: August 20, 2005, 01:53:52 am »
GIVING MEANIE SUPPORT HERE


interested as well since c1000 has a very small onboard memory.
Zaurus C-3200 (internal 8gb seagate drive) with buuf icon theme, cacko 1.23 full,  and also Meanie's pdaxqtrom-Debian/Open Office
Zaurus SL-5500 Sharp Rom 3.13 with steel theme
pretec pocket pc wi fi
ambicom bt2000-cf bluetooth-made in taiwan
simpletech 1gb cf
pny 1gb sd
patriot 2gb
ocz or patriot 4gb sd(failed after 2 weeks)only on z
creative csw-5300 speakers in stereo
DigiLife DDV-1000 for video, Audio, Picture recording playable on the zaurus
Mustek DV4500-video recorder, pictures, voice record on sd for z

zaurusthemes.biz | ZaurusVideo | Zaurus Software

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
Debian Applications On Sharp Rom
« Reply #5 on: August 21, 2005, 07:50:47 pm »
Quote
This would then potentially allow me to run OpenOffice from Sharp ROM with X/Qt installed.[div align=\"right\"][a href=\"index.php?act=findpost&pid=92437\"][{POST_SNAPBACK}][/a][/div]

Would this help it to run faster?
Zaurus C-1000

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Debian Applications On Sharp Rom
« Reply #6 on: August 24, 2005, 08:56:25 am »
Quote
Quote
This would then potentially allow me to run OpenOffice from Sharp ROM with X/Qt installed.[div align=\"right\"][a href=\"index.php?act=findpost&pid=92437\"][{POST_SNAPBACK}][/a][/div]

Would this help it to run faster?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=92759\"][{POST_SNAPBACK}][/a][/div]

That was indeed one of the drivers for making me want to do this. I've purchased a 4 GB CF card and hope that running Debian on it directly using ext2 fs would make OO run faster and potentially, if I could eliminate Debian altogether, it should speed things up a bit too. Memory is the biggest bottleneck  There is only 64MB RAM available, but OO needs much more and hence a large swap file is required but swap is slow because its disk IO.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

evade

  • Newbie
  • *
  • Posts: 13
    • View Profile
Debian Applications On Sharp Rom
« Reply #7 on: September 07, 2005, 02:03:05 pm »
It shouldn't be necessary to convert packages or launch into a full debian system running an X server.

One should be able to maintain a working Debian chroot environment but only launch the application you want and have it connect to the X/Qt server running in QTopia?  

I do somthing similar with my AMD64 System and an x86 chroot.

the process is described in detail here : https://alioth.debian.org/docman/view.php/3...o.html#id271773

 /proc /home and /tmp should be mounted within the chroot.  tmp is so that the chroot can connect to the local X server. The entries in /etc/fstab would look like this:

#debian-chroot
/home           /hdd3/debroot/home none  bind            0       0
/tmp            /hdd3/debroot/tmp none   bind            0       0
proc            /hdd3/debroot/proc proc  defaults        0       0


now to launch a program into your X/Qt server would be as simple as starting X and type this in a terminal:

chroot /hdd3/debroot
su - zaurus
export DISPLAY=:0
openoffice


or if dchroot is installed and configured you could just type this.
dchroot -c debian -d openoffice

maybe make a shortcut like this:

xlauncher dchroot -c debian -d openoffice

This should elimintate the overhead (but not the space) involved in running the entire debian system but still allow you to use aptitude to update software and solve dependencies.

I haven't tested this yet but intend to shortly on my SL-C3100
Zaurus SL-C3100 with internal RiData 8GB compactflash: FAST!
PdaXrom beta3 Matchbox with ROX

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Debian Applications On Sharp Rom
« Reply #8 on: September 08, 2005, 07:12:49 am »
Quote
It shouldn't be necessary to convert packages or launch into a full debian system running an X server.

One should be able to maintain a working Debian chroot environment but only launch the application you want and have it connect to the X/Qt server running in QTopia? 

I do somthing similar with my AMD64 System and an x86 chroot.

the process is described in detail here : https://alioth.debian.org/docman/view.php/3...o.html#id271773

 /proc /home and /tmp should be mounted within the chroot.  tmp is so that the chroot can connect to the local X server. The entries in /etc/fstab would look like this:

#debian-chroot
/home           /hdd3/debroot/home none  bind            0       0
/tmp            /hdd3/debroot/tmp none   bind            0       0
proc            /hdd3/debroot/proc proc  defaults        0       0


now to launch a program into your X/Qt server would be as simple as starting X and type this in a terminal:

chroot /hdd3/debroot
su - zaurus
export DISPLAY=:0
openoffice


or if dchroot is installed and configured you could just type this.
dchroot -c debian -d openoffice

maybe make a shortcut like this:

xlauncher dchroot -c debian -d openoffice

This should elimintate the overhead (but not the space) involved in running the entire debian system but still allow you to use aptitude to update software and solve dependencies.

I haven't tested this yet but intend to shortly on my SL-C3100
[div align=\"right\"][a href=\"index.php?act=findpost&pid=94884\"][{POST_SNAPBACK}][/a][/div]

this is basically what i am doing at the moment, but space is the issue.

xlauncher debian soffice would launch openoffice and it loads much faster now that it runs off a CF card, but the problem is that I cant use my CF wifi while my CF flash is in there.  well, i got a usb eth network...

anyway, after some testing it appears the only way to update libc libraries is by flashing the Z with a zImage.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K