Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Nov 1998 02:28:23 +0200 (SAT)
From:      Robert Nordier <rnordier@nordier.com>
To:        adrian@ubergeeks.com
Cc:        rnordier@nordier.com, freebsd-current@FreeBSD.ORG
Subject:   Re: Boot Loader question
Message-ID:  <199811080028.CAA00278@ceia.nordier.com>
In-Reply-To: <Pine.BSF.3.96.981107163312.6140H-100000@lorax.ubergeeks.com> from ADRIAN Filipi-Martin at "Nov 7, 98 04:40:03 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
ADRIAN Filipi-Martin wrote:
> On Sat, 7 Nov 1998, Robert Nordier wrote:
> 
> > I have substantially revised boot1 and should be committing this
> > within the next day or two.  Until now, we've been making use of
> > a new set of BIOS extended disk services, but it has become painfully
> > evident that a few BIOSes have problems with this approach, and they
> > really weren't much of a win, anyway.
> 
> 	When do you expect to commit your changes.  I bagan hacking on the
> stage 1 boot block a few days ago to try and make it behave properly when
> using a serial console.

Around late Sunday, most likely; I'm still testing here at the moment.

> 	The -current ones end up with garbage in the boot prompt after it
> reads a boot.config with just a '-h' in it.  After it switches to the
> serial console, I have to backspace and type 'kernel', and it boots just
> fine.  If boot.config is empty, it boots fine but of course, I don't get a
> chance to boot an alternate kernel since it doesn't switch to the serial
> console until the kernel starts probing.

The boot.config is currently being parsed twice if it boots with no
intervention.  This became a problem when the option behavior changed
from `or' to `xor'.  The patch below gives a temporary fix (the printf
statement is changed just to make space).

I'm not sure about the garbage, though, I'm not seeing it here.  What
kind of garbage (like random line noise or more like a garbled prompt)?

Index: boot2.c
===================================================================
RCS file: /home/ncvs/src/sys/boot/i386/boot2/boot2.c,v
retrieving revision 1.13
diff -u -r1.13 boot2.c
--- boot2.c	1998/10/27 20:16:36	1.13
+++ boot2.c	1998/11/07 23:45:08
@@ -157,9 +157,10 @@
     readfile(PATH_HELP, help, sizeof(help));
     readfile(PATH_CONFIG, cmd, sizeof(cmd));
     if (*cmd) {
-	printf("%s: %s", PATH_CONFIG, cmd);
+	printf("%s", cmd);
 	if (parse(cmd))
 	    autoboot = 0;
+	*cmd = 0;
     }
     if (autoboot && !*kname) {
 	if (autoboot == 2) {

> 	If you need a tester for the serial functionality, I'm willing.  I
> have 6 rackmounted machines with serial consoles and I will be fixing this
> on my own if it isn't already fixed.

Thanks, testing is always very welcome; and any fixes that work for
you would be handy too, particularly if it is something that can't be
reproduced here.

> 	Also, are the boot blocks going to be built using elf or aout in
> the long run?  I'm just getting into -current and I figired out that I
> need tom compile them as aout or they don't fit.

Definitely as ELF: aout has never been an option  (IIRC, sio.s shouldn't
even assemble with the aout version of gas).  They should fit, though;
they fit here, and would breaking "make world" for a lot of folks
otherwise.

-- 
Robert Nordier

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



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