From owner-freebsd-stable Wed Jun 30 10:52:32 1999 Delivered-To: freebsd-stable@freebsd.org Received: from ceia.nordier.com (m1-33-dbn.dial-up.net [196.34.155.33]) by hub.freebsd.org (Postfix) with ESMTP id 0D2EA153C5 for ; Wed, 30 Jun 1999 10:52:13 -0700 (PDT) (envelope-from rnordier@nordier.com) Received: (from rnordier@localhost) by ceia.nordier.com (8.8.7/8.6.12) id TAA05813; Wed, 30 Jun 1999 19:51:14 +0200 (SAST) From: Robert Nordier Message-Id: <199906301751.TAA05813@ceia.nordier.com> Subject: Re: comconsole In-Reply-To: from Doug at "Jun 29, 1999 12:57:32 pm" To: Doug@gorean.org (Doug) Date: Wed, 30 Jun 1999 19:51:12 +0200 (SAST) Cc: stable@freebsd.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [Cc trimmed] > > > >> > Once you get the login prompt set up, redirecting the boot > > > >> > messages should be easy. First, the COMCONSOLE kernel option is now > > > >> > deprecated, see the sio options in LINT for more details. Also, you should > > > >> > read the info in the /boot directory, and read the man pages for loader > > > >> > and boot. At this point the easiest way to use the -P option is to put > > > >> > 'boot -P' as the last line of your /boot/loader.rc file. > > > >> > > > >> A -P option to boot is ignored. Put the -P in /boot.config. > > Hrrm... it works fine in /boot/loader.rc on -current, maybe it > doesn't work in -stable. My apologies if so. It does nothing. Valid option letters are [acCdghrsv]. > > > When I setup server box(without VGA console, 3.1-RELEASE), > > > I added ``set console=comconsole'' to /boot/loader.rc. > > > Also enable serial console getty in /etc/ttys > > > > > > Which method is better for serial(com) console? > > > > If you are using a serial console, it is generally best to enable it > > as soon as possible. > > Agreed, however there are two issues here. First, the man pages > all say that /boot.config is deprecated. All which man pages? > Also, what I'd *really* like to > do is get a 'boot -P' in as early as possible, then still have the > autoboot option in loader. As far as I can see, that's just not possible, > although I'd love to be proven wrong. The loader "boot" command means "boot immediately", as documented in the help. The "autoboot" command means "boot after a delay", as documented in the help. They're mutually exclusive, so you're right: the way you want to do it is just not possible. > > > There is a lot of stuff that happens before > > loader(8) gets control. The flow is roughly as follows: > > > > boot1 > > btx > > boot2 > > btxldr > > btx > > loader > > Wow.... where were you last week when I asked for a list like > this. :-/ Could you add one more detail to this list, namely what config > files get executed when in this schedule? It would be really helpful to > me, and I'm sure others. I've read the man pages till I'm going loopy on > them and it's sinking in very slowly, but not fully there yet. boot2: /boot.config loader: /boot/loader.rc /boot/defaults/loader.conf /boot/loader.conf /boot/loader.conf.local kernel: /boot/kernel.conf > > To avoid missing potentially informative diagnostics, etc., the best > > place to start the serial console is therefore in boot2, using one > > of the options -D, -P, or -h, according to needs and preference. > > I'm assuming that by this you mean to put it in /boot.config? Yes. -- Robert Nordier To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message