From owner-freebsd-current@FreeBSD.ORG Wed Apr 18 19:40:06 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2B87F16A404 for ; Wed, 18 Apr 2007 19:40:06 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outC.internet-mail-service.net (outC.internet-mail-service.net [216.240.47.226]) by mx1.freebsd.org (Postfix) with ESMTP id 1765E13C4B7 for ; Wed, 18 Apr 2007 19:40:06 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.32) with ESMTP; Wed, 18 Apr 2007 12:08:20 -0700 Received: from [10.251.22.38] (nat.ironport.com [63.251.108.100]) by idiom.com (Postfix) with ESMTP id 85F13125ADD; Wed, 18 Apr 2007 12:40:05 -0700 (PDT) Message-ID: <4626741C.3010907@elischer.org> Date: Wed, 18 Apr 2007 12:40:12 -0700 From: Julian Elischer User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221) MIME-Version: 1.0 To: Adrian Chadd References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: nanobsd.sh change: configurable boot0 loader and configuration X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Apr 2007 19:40:06 -0000 Adrian Chadd wrote: > Here's a simple patch to allow boot0 parameters to be configured. > My test embedded boxes have a VGA console which I'd like to use during > development/debugging. > > Comments? NanoBSD is a PHK thing largely (I think) I've used tinybsd (also in the repo) but not nanoBSD (try it it's quicker) :-) > > > > Adrian > > > Index: nanobsd.sh > =================================================================== > RCS file: /home/ncvs/src/tools/tools/nanobsd/nanobsd.sh,v > retrieving revision 1.23 > diff -u -r1.23 nanobsd.sh > --- nanobsd.sh 27 Nov 2006 12:16:03 -0000 1.23 > +++ nanobsd.sh 18 Apr 2007 11:52:36 -0000 > @@ -103,6 +103,10 @@ > NANO_SECTS=32 > NANO_HEADS=16 > > +# boot0 flags/options and configuration > +NANO_BOOT0CFG="-o packet -s 1 -m 3" > +NANO_BOOTLOADER="boot/boot0sio" > + > ####################################################################### > # Not a variable at this time > > @@ -364,7 +368,7 @@ > fdisk ${MD} > # XXX: params > # XXX: pick up cached boot* files, they may not be in image anymore. > - boot0cfg -B -b ${NANO_WORLDDIR}/boot/boot0sio -o packet -s 1 -m > 3 ${MD} > + boot0cfg -B -b ${NANO_WORLDDIR}/${NANO_BOOTLOADER} > ${NANO_BOOT0CFG} ${MD} > bsdlabel -w -B -b ${NANO_WORLDDIR}/boot/boot ${MD}s1 > bsdlabel ${MD}s1 > > @@ -573,6 +577,8 @@ > export NANO_SRC > export NANO_TOOLS > export NANO_WORLDDIR > +export NANO_BOOT0CFG > +export NANO_BOOTLOADER > > ####################################################################### > # And then it is as simple as that... > >