2007/1/2, Kelvin Xu <[EMAIL PROTECTED]>:
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, [EMAIL PROTECTED]
Powered by http://movial.fi
Interesting stuff at http://syslog.movial.fi
_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to