      ADS Root Builder Utilities

	  Copyright by Applied Data Systems - 2004-2006

	  These tools are written by Josh Malone of
	  Applied Data Systems (jmalone@applieddata.net)


* Methodology:

	adsrootbuilder works by setting a timestamp and then looking for
	files with atimes (access times) newer than that timestamp.  This
	means that any files accessed after you run adsrootbuilder the
	first time will be included in your images.

	In order to catch essential startup files and libraries, the system
	will be rebooted after the timestamp is created.

	You should use care not to access unneeded files while running the
	adsrootbuilder - it is very easy to end up with far more files in
	your images than are neccessary.  Tools like 'ls' and 'find' update
	the access times on directories they look in.


* Use:

	Use 'adsrootbuilder -h' to see a brief command line summary.

	To use adsrootbuilder, first create a configuration file that defines
	the filesystem images and sets configration variables.  Refer to the
	included sample.conf for the format of this file.  You can also use
	one of the files in /etc/adsrootbuilder/

	You must create at least one filesystem definition in order for
	adsrootbuilder to create any images.

	Once you have the config file, run adsrootbuilder as:

	adsrootbuilder -c configfile

	adsrootbuilder will display progress information and messages on
	the terminal and prompt for confirmations before continuing.

	adsrootbuilder MUST be run as root to create images with the proper
	permissions!

	During the progress of adsrootbuilder, your system will be rebooted
	to catch startup files.  After your system has rebooted, you should
	run your application or do anything with the system that you will
	want to do under the flash images.  When you are done, you can run
	adsrootbuilder without any arguments to complete the build process.

	In addition to the filesystem images, adsrootbuilder will leave a
	tarball of all the accessed files in /var/lib/adsrootbuilder/.
	If you want to make a trivial change to your filesystem images or
	simply use this tarball as a starting point for a hand-tuned
	filesystem, you can invoke adsrootbuilder with the '--noscan' option
	(before any other options - see 'adsrootbuilder -h' for the proper
	command line order) to use an existing tarball.


* Trivial example:  making an ext2 ramdisk image

	The simplest way to use adsrootbuilder is to create an ext2
	filesystem image suitable for use as a ramdisk.gz on an ADS board.
	This filesystem image can be gzipped and placed on a compact
	flash card (along with a kernel zImage) and booted directly.

	Create a config file (in this case, root.conf) for a single ext2
	filesystem:

		FILESYSTEM_1_PATH=/
		FILESYSTEM_1_TYPE=ext2
		IMAGENAME=ramdisk
		TMP_IS_RAMFS=y

	This will create a single image called ramdisk_root (the path is
	appended to 'IMAGENAME' by adsrootbuilder). The value 
	'TMP_IS_RAMDISK=y' turns /tmp into a ramfs filesystem separate from
	/ and should usually be used to ensure that files in /tmp don't fill up
	the ramdisk.

	Once you have this file, run 'adsrootbuilder -c root.conf' and allow
	the system to reboot.  Once it has come up again, you can finish the
	build by running 'adsrootbuilder' (no arguments needed this time).
	Your ramdisk image file will be called 'ramdisk_root.img'.

* Known bugs / limitations:

	The image builder (mkrootimg) cannot properly handle excluded
	filesystem below other excluded filesystems.  This limits you to
	only having two levels of filesystems.  For instance:

	FILESYSTEM_1_PATH=/
	FILESYSTEM_2_PATH=/var
	FILESYSTEM_3_PATH=/usr

	is okay.  However:

	FILESYSTEM_1_PATH=/
	FILESYSTEM_2_PATH=/var
	FILESYSTEM_3_PATH=/var/tmp
	FILESYSTEM_4_PATH=/usr

	will fail since /var/tmp is under /var which is under / (3 levels).
