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 ?

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 ...... 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....