环境
CentOS release 6.8 (Final)
2.6.32-754.35.1.el6.i686
USB转RH232串口线 PL2303GT规格
操作
wget https://prolificusa.com/app/uploads/2019/06/PL2303G_Linux_Driver_v1.0.4.zip
unzip PL2303G_Linux_Driver_v1.0.4.zip
cd PL2303G_Linux_Driver_v1.0.4
#使用uname -r查看内核版本,然后进入内核版本相应的文件夹,比如我的内核是2.6.32-754.35.1.el6.i686,那么
cd 2.6.32_ok
make all
cp pl2303.ko /lib/modules/2.6.32-754.35.1.el6.i686/kernel/drivers/usb/serial/
cp /lib/modules/2.6.32-754.35.1.el6.i686/kernel/drivers/usb/serial/pl2303.ko /usr/src/kernels/2.6.32-754.35.1.el6.i686/drivers/usb/serial/
cd /usr/src/kernels/2.6.32-754.35.1.el6.i686/drivers/usb/serial/
modprobe usbserial
modprobe pl2303
评论区