From owner-freebsd-small Tue Jul 25 11:32:58 2000 Delivered-To: freebsd-small@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 6ED3737B891 for ; Tue, 25 Jul 2000 11:32:47 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id MAA26954 for ; Tue, 25 Jul 2000 12:32:45 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id MAA21450 for ; Tue, 25 Jul 2000 12:32:25 -0600 (MDT) Message-Id: <200007251832.MAA21450@harmony.village.org> To: small@freebsd.org Subject: Notes on mkflash Date: Tue, 25 Jul 2000 12:32:25 -0600 From: Warner Losh Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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