From owner-freebsd-net@FreeBSD.ORG Tue May 16 12:42:55 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 7EC5E16A458 for ; Tue, 16 May 2006 12:42:55 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCF2443D46 for ; Tue, 16 May 2006 12:42:54 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (apatmz@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k4GCgmar006843 for ; Tue, 16 May 2006 14:42:53 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k4GCgmS8006842; Tue, 16 May 2006 14:42:48 +0200 (CEST) (envelope-from olli) Date: Tue, 16 May 2006 14:42:48 +0200 (CEST) Message-Id: <200605161242.k4GCgmS8006842@lurza.secnetix.de> From: Oliver Fromme To: freebsd-net@FreeBSD.ORG In-Reply-To: <002901c678a5$147cfbb0$6f3010ac@ephialtes> X-Newsgroups: list.freebsd-net User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Tue, 16 May 2006 14:42:53 +0200 (CEST) Cc: Subject: Re: disable kernel driver at boot? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-net@FreeBSD.ORG List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 May 2006 12:42:57 -0000 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. You will have to compile a kernel that does not include the driver. > I don't have the option of recompiling the kernel to exclude EM(4). Too bad. (Why don't you have that option?) Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. With Perl you can manipulate text, interact with programs, talk over networks, drive Web pages, perform arbitrary precision arithmetic, and write programs that look like Snoopy swearing.