群晖USBSERICAL驱动安装包
https://synocommunity.com/package/synokernel-usbserial
https://github.com/robertklep/dsm7-usb-serial-drivers/tree/main/modules
具体的CPU架构名称查询:
https://kb.synology.cn/zh-cn/DSM/tutorial/What_kind_of_CPU_does_my_NAS_have
自动下载及启动脚本:start-usb-drivers.sh
#!/bin/sh
URL="https://raw.githubusercontent.com/robertklep/dsm7-usb-serial-drivers/main/modules/geminilake/dsm-7.2"
ALLMODULES="ch341 cp210x pl2303 ti_usb_3410_5052"
case $1 in
start)
for modules in $ALLMODULES; do
insmod /lib/modules/$modules.ko
done
;;
stop)
exit 0
;;
down)
for module in $ALLMODULES; do
if [ -f /lib/modules/$module.ko ]; then
echo Module $module already exists
rm -rf /lib/modules/$module.ko
fi
if [ -f /volume1/homes/admin/$module.ko ]; then
ln -s /volume1/homes/admin/$module.ko /lib/modules/$module.ko
else
sudo wget $URL/$module.ko -O /lib/modules/$module.ko
fi
done
;;
*)
exit 1
;;
esac
参考这里:
https://github.com/robertklep/dsm7-usb-serial-drivers
在开机启动时自动加载USBSERIAL驱动,建立
/usr/lib/modules-load.d/95-usb-serial.conf
内容:
usbserial.ko
ch341.ko
为免害人,亲身经历,以上方法会导致进不了系统,需要接TTL线删除95-usb-serial.conf才能正常