Date: Wed, 18 Apr 2007 12:40:12 -0700 From: Julian Elischer <julian@elischer.org> To: Adrian Chadd <adrian@freebsd.org> Cc: freebsd-current@freebsd.org Subject: Re: nanobsd.sh change: configurable boot0 loader and configuration Message-ID: <4626741C.3010907@elischer.org> In-Reply-To: <d763ac660704180454h673296c1t75e3cba10c75d2aa@mail.gmail.com> References: <d763ac660704180454h673296c1t75e3cba10c75d2aa@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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... > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4626741C.3010907>