Centos 7禁止ftdi_sio模块

Posted arci

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Centos 7禁止ftdi_sio模块相关的知识,希望对你有一定的参考价值。

$ dmesg
[ 3305.097301] usb 1-1: USB disconnect, device number 7
[ 3306.883704] usb 1-1: new high-speed USB device number 8 using ehci-pci
[ 3307.188064] usb 1-1: New USB device found, idVendor=0403, idProduct=6014
[ 3307.188069] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3307.188071] usb 1-1: Product: Digilent USB Device
[ 3307.188072] usb 1-1: Manufacturer: Digilent
[ 3307.188074] usb 1-1: SerialNumber: 210512180081
[ 3307.336684] usbcore: registered new interface driver ftdi_sio
[ 3307.336718] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 3307.336783] ftdi_sio 1-1:1.0: FTDI USB Serial Device converter detected
[ 3307.336850] usb 1-1: Detected FT232H
[ 3307.339018] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB0
[ 3307.656752] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[ 3307.656775] ftdi_sio 1-1:1.0: device disconnected

$ lsmod | grep ftdi_sio
ftdi_sio 52949 0

$ sudo rmmod ftdi_sio

$ lsmod |grep ftdi_sio

$ sudo gedit /etc/modprobe.d/blacklist.conf

在文件末尾添加一行

blacklist ftdi_sio

保存并关闭

$ dmesg
[ 3386.408334] usb 1-1: new high-speed USB device number 10 using ehci-pci
[ 3386.713372] usb 1-1: New USB device found, idVendor=0403, idProduct=6014
[ 3386.713377] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3386.713379] usb 1-1: Product: Digilent USB Device
[ 3386.713381] usb 1-1: Manufacturer: Digilent
[ 3386.713382] usb 1-1: SerialNumber: 210512180081

以上是关于Centos 7禁止ftdi_sio模块的主要内容,如果未能解决你的问题,请参考以下文章

CentOS 7使用源码编译安装Nginx,以及配置使用autoindex模块

无法安装 MySQLdb 模块 Centos 7 Python 3

CentOS 7 上的 Python 3 上没有模块“yum”

centos 7 搭建saltstack以及salt stack模块的用法

如何在 Apache 服务 CentOS 7 中安装模块 libphp5.so

CentOS 7.9使用Nginx的stream模块实现内网端口转发