From owner-freebsd-net@FreeBSD.ORG Wed May 17 17:45:31 2006 Return-Path: X-Original-To: freebsd-net@FreeBSD.ORG Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A11C16A81F for ; Wed, 17 May 2006 17:45:31 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2DE743D6A for ; Wed, 17 May 2006 17:45:29 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (smihpjms8tmmqjmp@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.4/8.13.3) with ESMTP id k4HHjOVD023076; Wed, 17 May 2006 10:45:24 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.4/8.13.3/Submit) id k4HHjMJI023075; Wed, 17 May 2006 10:45:22 -0700 (PDT) (envelope-from jmg) Date: Wed, 17 May 2006 10:45:22 -0700 From: John-Mark Gurney To: sfp Message-ID: <20060517174522.GC782@funkthat.com> Mail-Followup-To: sfp , freebsd-net@FreeBSD.ORG, olli@lurza.secnetix.de References: <200605161242.k4GCgmS8006842@lurza.secnetix.de> <002a01c67969$8108c380$6f3010ac@ephialtes> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002a01c67969$8108c380$6f3010ac@ephialtes> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: freebsd-net@FreeBSD.ORG, olli@lurza.secnetix.de Subject: Re: disable kernel driver at boot? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2006 17:45:31 -0000 sfp wrote this message on Tue, May 16, 2006 at 22:22 -0600: > From: "Oliver Fromme" > > > sfp wrote: > > > Is it possible to disable a driver compiled into a 4.10 kernel at > > > boot time by feeding a (set?) command to the loader? > > > > > > In this case I want to turf the EM(4) driver that was compiled into > > > the kernel I've inherited and substitute it with a new if_em.ko using > > > kldload. > > > > That's not possible. You might disable a driver through > > loader variables (or kernel hints, or whatever), but the > > driver will still be present in the kernel image, so you > > cannot load a module that uses the same symbols. > > I may have answered my own question. Compiled em-4.1.6, replaced if_em.ko > & loaded it from /boot/loader.conf. > > The reason I need this is 4.10 enumerates the Pro/1000 GT (PWLA8391GT, > 82541PI chipset) as unknown. Need a newer driver to support the hardware. > > I'd still like to find a way to suppress the driver in the kernel entirely > though :P Since the kernel driver it's attaching, you could always rename the em module that you compile... just a few things to change, and you have a different name, and no conflicts w/ the kernel... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."