device.hints howto

John Baldwin jhb at FreeBSD.org
Tue Sep 28 10:26:38 PDT 2004


On Saturday 25 September 2004 03:10 pm, Forrest Aldrich wrote:
> What's the correct process to build one of these files -- take the
> output from dmesg and wander through to get the figures?

I usually start from GENERIC.hints and cut out the stuff I don't need.  Since 
ACPI/PnPBIOS enumerates most built in devices anyways, it usually ends up 
being a short list unless you have some actual ISA cards.  Mine is usually 
something like:

# $FreeBSD: src/sys/i386/conf/GENERIC.hints,v 1.11 2002/12/05 22:49:47 jhb Exp 
$
hint.fd.0.at="fdc0"
hint.fd.0.drive="0"
hint.sc.0.at="isa"
hint.sc.0.flags="0x100"
hint.sio.0.at="isa"
hint.sio.0.port="0x3F8"
hint.sio.0.flags="0x10"
hint.sio.0.irq="4"

The fd0 hints shouldn't even be needed anymore now on ACPI systems with the 
new fdc(4) driver and the sio0 ones are only there so I can set the flags for 
a serial console.

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the freebsd-current mailing list