From owner-freebsd-questions@FreeBSD.ORG Sat Oct 27 17:40:56 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2294D16A419 for ; Sat, 27 Oct 2007 17:40:56 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id A4A5D13C465 for ; Sat, 27 Oct 2007 17:40:55 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-25-183.bredband.comhem.se ([83.253.25.183]:54350 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1IlpeX-0002Ro-8i for questions@freebsd.org; Sat, 27 Oct 2007 19:40:53 +0200 Received: (qmail 67194 invoked from network); 27 Oct 2007 19:40:52 +0200 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 27 Oct 2007 19:40:52 +0200 Received: (qmail 95698 invoked by uid 1001); 27 Oct 2007 19:40:52 +0200 Date: Sat, 27 Oct 2007 19:40:52 +0200 From: Erik Trulsson To: Robert Huff Message-ID: <20071027174052.GA95617@owl.midgard.homeip.net> Mail-Followup-To: Robert Huff , questions@freebsd.org References: <18211.26045.874839.108550@jerusalem.litteratus.org> <20071027163109.GA95045@owl.midgard.homeip.net> <18211.29921.62146.963105@jerusalem.litteratus.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18211.29921.62146.963105@jerusalem.litteratus.org> User-Agent: Mutt/1.5.16 (2007-06-09) X-Originating-IP: 83.253.25.183 X-Scan-Result: No virus found in message 1IlpeX-0002Ro-8i. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1IlpeX-0002Ro-8i 5ac30b2699a7d0f73082e04fea94b4bd Cc: questions@freebsd.org Subject: Re: hardware not recognized X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Oct 2007 17:40:56 -0000 On Sat, Oct 27, 2007 at 01:26:57PM -0400, Robert Huff wrote: > Erik Trulsson writes: > > > > Recently, I replaced the NICs on a machine (old card was slow > > > and throwing errors). Per good reviews, I went with Intel. > > > However: the card is not recognized on boot, and I get: > > > > If I explicitly load if_em via loader.conf, everything's fine. > > > > Do you have 'device em' in you kernel config ? If you don't you > > will of course have to load if_em as a module via loader.conf. > > Custom kernel, no "device em", -CURRENT. > However, it was my understanding anything probed at boot whose > PCI id was known would automatically have the appropriate driver > loaded. Am I misinformed? You were misinformed. The PCI-id is known only to the driver, so if the driver is not loaded there is nothing which knows which driver to use. (During boot each driver which is loaded gets asked for each PCI-id if that id is something the driver knows about. If there is some driver which can handle the device, it gets to attach to the device.) There are some situations where kernel modules are loaded 'automatically'. One example is that if you have 'linux_enable="YES"' in /etc/rc.conf then the boot scripts will automatically load the Linux emulation kernel module if it is not already loaded. I think there has been some discussion about similarily having ifconfig(8) automatically load the appropriate kernel module when trying to access some unknown network interface, but I believe the conclusion was that there were good reasons not to do this. So, if you want to use an em(4) card then you need to have either 'device em' in your kernel config, or have 'if_em_load="YES"' in /boot/loader.conf It doesn't really matter which one of these two methods you use. -- Erik Trulsson ertr1013@student.uu.se