Unix & Linux Asked by Mark2012 on November 19, 2021
I’m trying to blacklist built-in Linux Kernel module 8250_pci using modprobe.blacklist=8250_pci as boot option without success, how can avoid loading this one?
Welcome to Unix & Linux StackExchange!
If the 8250_pci
driver is built into the kernel, modprobe.blacklist
will have no effect at all to it, since modprobe
will not be involved at all.
Instead, you could pipe the PCI bus ID of the device in question to /sys/bus/pci/drivers/serial_pci/unbind
to unplug the driver from a particular device. (The pathname might be .../serial/unbind
instead, I cannot check at the moment.)
Example:
echo 0000:03:00.0 > /sys/bus/pci/drivers/serial_pci/unbind
If there is a remove_id
in the same directory, you might also pipe the vendor & product IDs (use lspci -nn
to see them) of the device in question into it, so the driver will not be picking the device up again if the serial device auto-detection is triggered for any reason.
Example:
echo "1415 c158" > /sys/bus/pci/drivers/serial_pci/remove_id
Once you find the right value(s) to pipe into the pseudo-file(s), you might want to add them into /etc/rc.local
or write your own small start-up script (or a .service
file if applicable) to run the commands at every boot.
Answered by telcoM on November 19, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP