Author Topic: Pdaxrom In Chroot  (Read 5577 times)

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Pdaxrom In Chroot
« on: June 01, 2005, 10:35:31 am »
Is it theoretically possible to run pdaXrom in a chroot environment on the Sharp ROM via X/Qt similar to running Debian PocketWorkstation?
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

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Pdaxrom In Chroot
« Reply #1 on: June 01, 2005, 11:21:53 am »
Yes, it's theoretically possible.

I had it working for a while on my C760, but had a lot of problems with matchbox - it kept segfaulting at odd times.

I ended up changing the window manager to icewm from the X/Qt feed and got a kinda hybrid X/Qt-pdaX-pocketworkstation thing going. After a while I stopped chrooting and focused more on getting pdax ipks to run directly under X/Qt, but them my C760 died.

Haven't got around to trying it with my new C1k (been cross-compiling apps with OE with gcc 2.95.3). I'd be interested in hearing your results

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Pdaxrom In Chroot
« Reply #2 on: June 01, 2005, 03:19:57 pm »
I think you'd be better off if you did chroot and used the pdaX X server instead of the xqt one. The pdax stuff seem a good bit faster than xqt
**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

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Pdaxrom In Chroot
« Reply #3 on: June 01, 2005, 08:29:41 pm »
I tried that at first but had problems getting the pdax X server to run properly with the Sharp kernel on the C760 - some kinda difference in the calibration of the touchscreen from memory.

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Pdaxrom In Chroot
« Reply #4 on: June 01, 2005, 08:54:49 pm »
hmmm ...can the pdaX kernel be used instead of the sharp kernel?  or a 3rd kernel?  this was something the guylhem rom might do for the 6k.... something similar could be done for the 1k maybe?
**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

auauhiro

  • Newbie
  • *
  • Posts: 8
    • View Profile
Pdaxrom In Chroot
« Reply #5 on: June 01, 2005, 10:20:28 pm »
I also tried to chroot to pdaXrom from X/Qt. But, almost all X-clients complained about something and it did not work well. I think that it is due to the difference of
the libraries between X/Qt and pdaXrom. The binaries of pdaXrom use soft-float libraries, on the other hand the libraries of X/Qt use hard-float emulation embedded in kernel.

But, it is possible to use pdaXrom chrooted from Qtopia. Use Xvnc server, which is included in pocketworkstation as X-server and connect to Xvnc from keypebble vnc-viewer. It is still faster than the debian on X/Qt except the drawing speed of the screen.

sashz

  • Sr. Member
  • ****
  • Posts: 388
    • View Profile
    • http://
Pdaxrom In Chroot
« Reply #6 on: June 01, 2005, 11:35:28 pm »
Quote
I also tried to chroot to pdaXrom from X/Qt. But, almost all X-clients complained about something and it did not work well. I think that it is due to the difference of
the libraries between X/Qt and pdaXrom. The binaries of pdaXrom use soft-float libraries, on the other hand the libraries of X/Qt use hard-float emulation embedded in kernel.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=82437\"][{POST_SNAPBACK}][/a][/div]

use pdaXrom-builder for rebuild all binaries in official feed and system without soft-float :-)

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Pdaxrom In Chroot
« Reply #7 on: June 02, 2005, 09:34:40 am »
gosh, rebuilding the complete pdaXrom apps sounds kinda extreme, but seems to be the only option if I wanted to try running the latest rc10 stuff. The old pdaXrom packages do run under X/Qt (well some of them) but some crash because of X/Qt bugs  
The new pdaXrom stuff is using newer versions of glib and libgcc plus this softfloat
I will just wait for a version of pdaXrom that can boot off a SD card
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

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Pdaxrom In Chroot
« Reply #8 on: June 02, 2005, 10:57:33 am »
If you are chrooting then pdax should be using its own libs and not complaining about anything, all you need to do is get X/Qt running outside the chroot to act as pdaX's X server - I remember that took some playing around with DISPLAY variables and xhost permissions

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Pdaxrom In Chroot
« Reply #9 on: June 02, 2005, 11:07:46 am »
Quote
If you are chrooting then pdax should be using its own libs and not complaining about anything, all you need to do is get X/Qt running outside the chroot to act as pdaX's X server - I remember that took some playing around with DISPLAY variables and xhost permissions

Stu
[div align=\"right\"][a href=\"index.php?act=findpost&pid=82514\"][{POST_SNAPBACK}][/a][/div]

That sounds like the same as chrooting debian, I might give it a try if I have nothing else to do
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

auauhiro

  • Newbie
  • *
  • Posts: 8
    • View Profile
Pdaxrom In Chroot
« Reply #10 on: June 03, 2005, 02:19:57 am »
Quote
Quote
If you are chrooting then pdax should be using its own libs and not complaining about anything, all you need to do is get X/Qt running outside the chroot to act as pdaX's X server - I remember that took some playing around with DISPLAY variables and xhost permissions

Stu
[div align=\"right\"][a href=\"index.php?act=findpost&pid=82514\"][{POST_SNAPBACK}][/a][/div]

That sounds like the same as chrooting debian, I might give it a try if I have nothing else to do
[div align=\"right\"][a href=\"index.php?act=findpost&pid=82517\"][{POST_SNAPBACK}][/a][/div]

Debian running on Qt/X has no troubles and almost all X-Clients including gtk2 and KDE work well.
I assume that QT/X-server uses the X-libraries of pdaXrom after chrooted to pdaXrom and because of the incompatibility of the libries between hard-float and soft-float, Qt/X server can not work properly. Using debians, the debians libraries are hard-float and they are newer than those of Qt/X, so they are upper-compatible to those of Qt/X. If I can make the static-linked Qt/X server, it also will work well on pdaXrom.
« Last Edit: June 03, 2005, 02:21:19 am by auauhiro »

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Pdaxrom In Chroot
« Reply #11 on: June 03, 2005, 11:18:02 am »
Quote
Debian running on Qt/X has no troubles and almost all X-Clients including gtk2 and KDE work well.
I assume that QT/X-server uses the X-libraries of pdaXrom after chrooted to pdaXrom and because of the incompatibility of the libries between hard-float and soft-float, Qt/X server can not work properly. Using debians, the debians libraries are hard-float and they are newer than those of Qt/X, so they are upper-compatible to those of Qt/X. If I can make the static-linked Qt/X server, it also will work well on pdaXrom.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=82583\"][{POST_SNAPBACK}][/a][/div]

No, X/Qt runs outside the chroot, only the pdax apps are inside the chroot. There is no conflict of libs for X/Qt - it only uses the libs that are installed fro in on the zaurus, not anything inside the chroot.

The problems I had were not with X/Qt but with apps inside the chroot not getting the devices/environment they expected. Once X/Qt has started you can run apps for X/Qt along with apps in the pdax chroot. As long as you have the DISPLAY settings correct they will both appear in X/Qt server.

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Pdaxrom In Chroot
« Reply #12 on: June 03, 2005, 05:40:37 pm »
is there not an xqt compiled for OZ? Mickeyl was talking about wanting it awhile ago.
If so, then it should be compatable with the soft-float pdax stuff. Though running pdax chrooted from opie is almost perversly geeky
**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

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Pdaxrom In Chroot
« Reply #13 on: June 03, 2005, 11:36:15 pm »
I was sort of able to get around the soft float thing by replacing libgcc and one other library but then the pdax app would complain about something on qtopia so I was thinking that isolating pdax in its own chroot environment could get around that and since it is x based, be able to use X/Qt for rendering just like pocketworkstation does.
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

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Pdaxrom In Chroot
« Reply #14 on: June 06, 2005, 03:15:26 am »
In case you missed this thread :

https://www.oesf.org/forums/index.php?showtopic=12842

I think it might contains usefull info for this topic
SLC-860 cacko / senao wifi