Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jul 2000 12:32:25 -0600
From:      Warner Losh <imp@village.org>
To:        small@freebsd.org
Subject:   Notes on mkflash
Message-ID:  <200007251832.MAA21450@harmony.village.org>

next in thread | raw e-mail | index | archive | help

OK.  Here's my notes on mkflash.  You can get mkflash from
	http://people.freebsd.org/~imp/mkflash-0.1.tar.gz

This is really just a snapshot right now since I wanted to get it out
the door.

To try it out, here's some notes.

Extract the tarballs into an empty directory.  I didn't put an extra
level in this tarball.

cd test-jig

You'll notice a few files:
	disk.conf		Contains a file that describes to my
				diskprep command how you want your
				disk setup as.
	flash.conf		A fairly generic config file for the
				infamous test jig that I keep making
				references to in postings.
	imp.conf		You'll need to create your own
				$LOGNAME.conf with pointers to your
				target disk as well as the kernel name
				(since I'm pretty sure most people
				don't have TIMER config file).  I
				don't override KernelName here since I
				do have a TIMER config :-)

once you've set things up right and have a buildworld tree, you should
be able to just type make and have it do the right thing.  Be careful.

Here's the docs from the mkflash.sh utility.
#
# env vars used:
#  DevSize            - size of /dev mfs partition (sets 'devsize' parameter
#                         in target's /etc/rc.conf)
#  DiskConfig         - name of the disk config file used to invoke 'diskprep'
#  ExtraFileDirs      - List of directories which should be copied recursive to
#			/ of the flash.
#  FreeBSDProgramDirs - list of dirs under FreeBSDSrcDir of stuff that
#                         should be installed
#  FreeBSDSrcDir      - where the top level Makefile.inc1 resides for the
#                         FreeBSD source tree (like /usr/src)
#  HasSerialConsole   - put '-h' in target's /boot.config if YES
#  KernelName         - name of the kernel config file (used to find the
#                         directory containing the desired kernel)
#  MAKEOBJDIRPREFIX   - where FreeBSD was built (like /usr/obj)
#  PasswordEntry      - an optional password file entry to go into
#                         /etc/master.passwd on the target
#  PruneList          - List of files freebsd installs that we should ax.
#  RootDiskUnit       - the target's root disk unit number (written to
#                         the target's /boot/loader.conf)
#  TargetDevice       - the device name (without the /dev) used to find
#                         the target when building.  This is not the same
#                         as the device name used by the disk after installed
#                         in its final destination.  It is the name
#                         of the device when the device is on the build
#                         system.
#  TargetRootDevice   - name of the device as used on the destination
#                         system, not the build system.
#  TargetTmpMount     - temporary mount point
#  VarSize            - size of /var mfs partition (sets 'varsize' parameter
#                         in target's /etc/rc.conf)
#  

have fun.  Please send me any comments that you have on this :-)

Warner


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-small" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007251832.MAA21450>