[Scratchbox-users] porting binaries to target NFS Root Filesystem

Kalle Vahlman kalle.vahlman at gmail.com
Tue Jan 2 11:05:25 EET 2007


2007/1/2, Kelvin Xu <kyoxu at hotmail.com>:
> Hi,
>
> What you meant is to use the scratchbox directory as the RFS of the target
> directly using NFS?

The scratchbox _target_ directory (/scratchbox/users/foo/targets/bar
outside SB), but yes, we use that a lot since it's faster (as in time
from make install to running, probably not otherwise :) than flashing
or simply copying stuff. There is some tweaking with the access rights
of files, as inside SB you can't be root, and if the NFS mount has
root_squash on it will not create root-owned files really.

> And then populate the dev directory and copying over
> necessary files for the kernel to work properly such as busybox, kernel
> modules and headers?

Well as the target directory is basically a chroot environment, it
doesn't require much work (depending on your setup of course). So
busybox and friends should be already in place. I'm not 100% sure but
I guess kernel modules should be too, at least those built as a part
of the kernel. If you build a "standalone" module, it might pick up
the host system kernel version as the install location...

One more dir that I forgot to mention is /etc. Again, I'm not into the
details but basically you just need to be sure to edit stuff under
/etc from /targets/bar/etc, not just /etc inside scratchbox. There is
some magic there, but I'll leave it to the SB guys to tell you what ;)

This is true for /dev too, be careful not to do anything to /dev
inside SB, as that is the host machines /dev!

-- 
Kalle Vahlman, zuh at iki.fi
Powered by http://movial.fi
Interesting stuff at http://syslog.movial.fi


More information about the Scratchbox-users mailing list