Re: boot message
Hubert Feyrer <hubert <at> feyrer.de>
2005-04-03 11:05:16 GMT
On Sun, 3 Apr 2005, Marcin Jessa wrote:
> Is there a way one can make a booting kernel be silent and not to spit out all the info of what's going on?
> I wish my soekris build to be quiet and display only boot loader's message and then go straight to the login prompt.
There are two ways to get that done:
1) re-enable console=pc, and make sure you have gettys enabled, esp.
on your serial port (tty00).
2) Really tell the kernel to not print anything at all. I don't know to
what extent that is supported, some support is available: printf(9)
documents in the aprint_*() functions that you can set a "boothowto"
variable to values like AB_QUIET, AB_VERBOSE and AB_SILENT.
I think the variable can be set from the bootprompt, setting a default in
src/sys/kern/init_main.c would make sense to me. You'll need to change the
C file for that.
In the bootloader, interrupt the countdown and type "boot -q".
The result is not too impressive though:
> boot -q
booting hd0a:netbsd (howto 0x10000)
6746364+148460+522576 [376144+337471]=0x7c2458
BIOS CFG: Model-SubM-Rev: fc-00-01, 0x4074<EBDA,KBDINT,RTC,IC2,KBDF>
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
(Continue reading)