Trimming the default /boot/device.hints

David O'Brien obrien at FreeBSD.org
Sat Jan 31 20:44:10 PST 2009


On Sat, Jan 31, 2009 at 09:26:08PM -0700, M. Warner Losh wrote:
> In message: <20090131093130.GA17896 at dragon.NUXI.org>
>             "David O'Brien" <obrien at freebsd.org> writes:
> : At least for amd64, I'd like to see all the hints removed.  We should
> : make these assumptions.
> 
> We can't remove all hints, unless we require ACPI.

For the most part we do for amd64.  Is there reason not to?

> The floppy drives
> don't enumerate properly without hints in the PNPBIOS case.  I don't
> know if the floppies enumerate correctly for ACPI, but the code that's
> there seems to assume that enumerating via _FDE might fail sometimes
> and the fallback method is hints.  This suggests that keeping the fd
> hints is a good thing.
> 
> We also want hints to wire down uart0 and uart1 to their traditional
> COM1 and COM2 places.  At least that's been an oft-reported bug when
> we don't.
> 
> My current 'hints' file is thus:
> hint.fd.0.at="fdc0"
> hint.fd.0.drive="0"
> hint.fd.1.at="fdc0"
> hint.fd.1.drive="1"
> hint.sc.0.at="isa"
> hint.sc.0.flags="0x100"
> hint.uart.0.at="isa"
> hint.uart.0.port="0x3F8"
> hint.uart.0.flags="0x10"
> hint.uart.1.at="isa"
> hint.uart.1.port="0x2F8"

That would be a great compromise hints file for amd64 given you are
right - I have seen a few motherboards have issues with which com
port is at which addresses.  

-- 
-- David  (obrien at FreeBSD.org)


More information about the freebsd-arch mailing list