OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Chroot And Communication With Qtopia Server, What's the transport ?
iamasmith
post Mar 11 2005, 06:08 AM
Post #1





Group: Members
Posts: 1,248
Joined: 6-July 04
Member No.: 3,928



Hi,

I'm playing around with a shared library build of Qtopia using softfloat libraries so that it may be feasible to write dynamic linked apps that use softfloat.

The way that I'm trying to do this at the moment is using chroot on a portion of the file system on my SD card where I have copied the /dev directory, mounted /proc, have all my shared libs in /lib... QTDIR is set to / (chroot environment) and /tmp is linked to /dev/shm/tmp (running on Cacko 1.22).

Whatever I seem to try I always get the message that there is no Qtopia server running and I should start the app with -qws if I want it to run a server (I DONT).

Does anyone know what's missing from my chroot environment that exposes the Qtopia server ? I would have thought it was a socket of some kind.... any ideas ?

- Andy
Go to the top of the page
 
+Quote Post
iamasmith
post Mar 11 2005, 06:39 AM
Post #2





Group: Members
Posts: 1,248
Joined: 6-July 04
Member No.: 3,928



OK, I think I've found it. /tmp is where Qtopia creates the socket endpoints and my /tmp points to /dev/shm/tmp which is a different /dev/shm/tmp to the one pointed off the real Z fs sad.gif...... thinking....

...anyone know how to chroot and retain access to the ORIGINAL /tmp?

If you mount using tmpfs again you get a new file system... not very helpful if you need access to some of the streams that Qtopia publishes into /tmp..

The only thing that I can find so far is to use lofs (loopback file system) but as lofs isn't built into a Z kernel then it's not an option... unless I ported it of course....

...no... apparently Solaris only but there's a thing called a mount bind....

mount --bind /dev/shm /mnt/card/experimental/soft/dev/shm

..should do it... darned busybox doesn't support it though sad.gif

...but you can...

mount -o bind /dev/shm /mnt/card/experimental/soft/dev/shm

smile.gif
Go to the top of the page
 
+Quote Post
gfdsa
post Mar 23 2005, 02:53 AM
Post #3





Group: Members
Posts: 55
Joined: 18-January 05
Member No.: 6,256



btw, its the same with Xfbdev, you have to -o bind /tmp to communicate
Go to the top of the page
 
+Quote Post

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

 



RSS Lo-Fi Version Time is now: 25th December 2014 - 06:21 AM