Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 May 2006 14:42:48 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-net@FreeBSD.ORG
Subject:   Re: disable kernel driver at boot?
Message-ID:  <200605161242.k4GCgmS8006842@lurza.secnetix.de>
In-Reply-To: <002901c678a5$147cfbb0$6f3010ac@ephialtes>

next in thread | previous in thread | raw e-mail | index | archive | help
sfp <mosfet@planet.eon.net> 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.



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