Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Oct 2008 12:25:50 -0700
From:      Jeremy Chadwick <koitsu@FreeBSD.org>
To:        robert@webtent.com
Cc:        FreeBSD <freebsd-questions@freebsd.org>, John Baldwin <jhb@freebsd.org>
Subject:   Re: page fault while in kernel mode
Message-ID:  <20081021192550.GA38296@icarus.home.lan>
In-Reply-To: <1224616948.8122.79.camel@columbus.webtent.org>
References:  <1224445801.6926.0.camel@laptop.webtent.org> <1224614122.8122.62.camel@columbus.webtent.org> <20081021184711.GA37448@icarus.home.lan> <200810211509.53454.jhb@freebsd.org> <1224616948.8122.79.camel@columbus.webtent.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 21, 2008 at 03:22:28PM -0400, Robert Fitzpatrick wrote:
> On Tue, 2008-10-21 at 15:09 -0400, John Baldwin wrote:
> > Alternatively, you could just remove the 'device adv' line from your
> > kernel 
> > config rather than adding lots of 'nodevice' lines at the bottom.  You
> > can 
> > usually do 'man 4 <driver name>' to see what devices it supports.  In
> > this 
> > case, adv(4) supports mostly ancient Advansys SCSI host adapters.
> > The 
> > manpage has a full list of the various model numbers, etc.
> 
> Yes, that is what I thought. Right now, I am just commenting them out,
> now I know what people mean when they say they are running a
> trimmed/clean kernel.
> 
> I did see one potential issue...
> 
> # USB support
> device          uhci            # UHCI PCI->USB interface
> device          ohci            # OHCI PCI->USB interface
> device          ehci            # EHCI PCI->USB interface (USB 2.0)
> device          usb             # USB Bus (required)
> 
> I see all of these with nodevice lines in the PAE file. Although I have
> USB ports, I don't use them, but I was concerned by the 'required' on
> the last one, is it OK to remove? Also, would I then need to disable USB
> in the BIOS to avoid errors?

If you remove "device usb", you will also need to remove uhci, ohci,
ehci, umass, ukbd, etc. etc. etc... from your config as well.

You do not need to disable USB support in the BIOS; the kernel will
simply state that it sees devices on the PCI bus but lacks a driver to
attach to them.  This will not harm anything.

-- 
| Jeremy Chadwick                                jdc at parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081021192550.GA38296>