ubuntu20.4系统使用串口调试助手
作者:互联网
一、安装CH340驱动
1.查看ubuntu系统自带的驱动:
jiki@jiki-M15X:~$ ls /lib/modules/$(uname -r)/kernel/drivers/usb/serial
aircable.ko cypress_m8.ko garmin_gps.ko iuu_phoenix.ko metro-usb.ko opticon.ko quatech2.ko ti_usb_3410_5052.ko visor.ko
ark3116.ko digi_acceleport.ko io_edgeport.ko keyspan.ko mos7720.ko option.ko safe_serial.ko upd78f0730.ko whiteheat.ko
belkin_sa.ko empeg.ko io_ti.ko keyspan_pda.ko mos7840.ko oti6858.ko sierra.ko usb_debug.ko wishbone-serial.ko
ch341.ko f81232.ko ipaq.ko kl5kusb105.ko mxuport.ko pl2303.ko spcp8x5.ko usbserial.ko xsens_mt.ko
cp210x.ko f81534.ko ipw.ko kobil_sct.ko navman.ko qcaux.ko ssu100.ko usb-serial-simple.ko
cyberjack.ko ftdi_sio.ko ir-usb.ko mct_u232.ko omninet.ko qcserial.ko symbolserial.ko usb_wwan.ko
可以看到含有ch341.ko文件,系统自带的版本比较老,删除掉:
jiki@jiki-M15X:~$ cd /lib/modules/$(uname -r)/kernel/drivers/usb/serial
sudo rm -rf ch341.ko
1.下载驱动:http://www.wch.cn/download/CH341SER_LINUX_ZIP.html
解压后得到以下3个文件:
2.查询操作系统的发行编号,命令:uname -r
打开:https://elixir.bootlin.com/linux/v5.8/source/drivers/usb/serial/ch341.c
根据查询到的操作系统的发行编号,打开对应的版本,复制所有内容替换ch34x.c内容。
标签:usb,jiki,ko,uname,串口,ch341,serial,ubuntu20.4,调试 来源: https://blog.csdn.net/qq_27558597/article/details/117900705