Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jun 2018 20:00:54 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Eric Joyner <ricera10@gmail.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Is there a way to disable PCI devices before a driver attaches to them?
Message-ID:  <20180619200054.1232602d.freebsd@edvax.de>
In-Reply-To: <CA%2Bb0zg_9q86XE=4gT68cfqmD7%2BgdEN8F0_2veTYDDtwHeAN%2BUw@mail.gmail.com>
References:  <CA%2Bb0zg_9q86XE=4gT68cfqmD7%2BgdEN8F0_2veTYDDtwHeAN%2BUw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 19 Jun 2018 10:36:43 -0700, Eric Joyner wrote:
> ^ See subject ^
> 
> The only method I know of atm is to load vmm via loader.conf and use the
> pptdev variable to make the devices that I want to disable just "ppt"
> devices.

Maybe you can use /boot/device.hints to disable the device
you don't want a driver to attach to? Example:

	hint.ppt.0.disable="YES"

You should also be able to add such a statement to /boot/loader.conf
because device.hints might get replaced during updates (and it
is a system-provided file, while loader.conf usually is a
user-spplued file),

See "man device.hints", or:

https://www.freebsd.org/doc/handbook/device-hints.html

https://forums.freebsd.org/threads/disable-driver.14402/


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



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