[Scratchbox-users] Creating a root file system with ScratchBox

Josh Green josh at resonance.org
Mon Jul 31 21:55:29 EEST 2006


Hello.  I've been using ScratchBox to cross compile software for my ARM
LPC3180 board.  Its really quite a joy to use this environment, thanks
for the great tool!  I've now reached the stage where I'd like to create
a root file system for my target device.  I scoured through the
ScratchBox documentation but could not find what I am looking for.
Please let me know if I have overlooked something, and I'll RTFM ;)

I've decided to go the route of building individual packages rather than
using a distro such as Debian, since the system will be a rather simple
embedded network device without a lot of packages.

What I'd like to do is:
- Root NFS mount the file system from the target, during development
- Make an ext2 RAM disk image or jffs2 image for the final product

I have done these in the past with other build systems (with buildroot
for example).  I'm looking for information on how this is typically done
with ScratchBox.

Some questions:
- Should I install applications (such as busybox) to my chrooted
ScratchBox environment, or should I create a new directory to store my
root file system to?

- Any tips on creating an NFS mount for the Scratchbox built root file
system?

- Would fakeroot help me in this regard?

- When building a file system image (such as ext2) how are the
permissions fixed up?  Is that what fakeroot is for?

Thanks in advance for any tips or info.  Best regards,
	Josh Green




More information about the Scratchbox-users mailing list