Trimming the default /boot/device.hints

John Baldwin jhb at freebsd.org
Fri Feb 6 06:59:04 PST 2009


On Friday 06 February 2009 7:17:52 am Andriy Gapon wrote:
> on 01/02/2009 06:26 M. Warner Losh said the following:
> ...
> > hint.sc.0.at="isa"
> > hint.sc.0.flags="0x100"
> ...
> > I'm too chicken to remove the hint.sc.0 hints, but maybe they can go.
> > 
> 
> I've just tried this (7.1/i386) as those were the last hints, it turned
> out to be not that scary :) I just didn't get the system console, i.e.
> there were no kernel messages during boot and no system console at VT0
> afterwards. VT0 became and stayed completely blank/black after loader
> finished its job.
> But the system successfully went into multi-user mode, getty-s and X
> started normally.

Yes, it's just the issue of the console that matters.  If that could be made 
to work w/o needing the hint then we could remove it.

> OTOH, with this hint present I see the following in verbose dmesg:
> ...
> sc: sc0 already exists; skipping it

This is because it tried to add itself via an identify routine when it already 
existed.

> ...
> sc0: <System console> at flags 0x100 on isa0
> sc0: VGA <16 virtual consoles, flags=0x300>
> sc0: fb0, kbd1, terminal emulator: sc (syscons terminal)
> 
> A little bit puzzling.
> 
> And from the code in sys/isa/syscons_isa.c (scidentify) it seems that sc
> needs not a hint to get attached. Puzzled again.

Yes, it only needs the hint for it to be a console device.

-- 
John Baldwin


More information about the freebsd-arch mailing list