Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 May 2020 18:22:23 +0200
From:      Tomasz CEDRO <tomek@cedro.info>
To:        FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>
Subject:   kernel module disable / blacklist
Message-ID:  <CAM8r67BXdcazjbnCuSVtkbe8UtzuNOqbUjJOrA6kF%2B8d5KdLYg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello world :-)

I am creating an embedded system that exposes the serial port over
USB. This causes auto-load ucom, umodem, u3g modules, even though I
have removed them by hand. Because of the development steps I need to
plug and unplug that device quite often. It would be lovely to be able
to blacklist a given set of modules so they does not auto-load on
device connect. `module_blacklist` in `loader.conf` does not seem to
work at runtime.

Is there a simple way to temporarily blacklist given modules?

I would prefer not to modify the devd configurations because also I
have a u3g modem in my laptop that I would like to use by default.
Temporary blacklist should ideally have a precedence over devd.

Any hints appreciated :-)
Tomek

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM8r67BXdcazjbnCuSVtkbe8UtzuNOqbUjJOrA6kF%2B8d5KdLYg>