robertklep / dsm7-usb-serial-drivers

Synology DSM 7 USB serial drivers
506 stars 83 forks source link

My system is DSM is missing the cdc-acm.ko #126

Open pacolvin opened 1 month ago

pacolvin commented 1 month ago

I posed this under another issue and now in this new issue.

My system is DSM is missing the cdc-acm. Anyone know where I may be able to get it? I can't get my Sonoff Zigbee 3 dongle to work after downloading and starting all of the other drivers. Not sure but maybe missing the cdc-acm.ko could be the reason.

From @robertklep Can you post the output of these commands:

lsmod | grep serial lsusb -cui

Here are the results of those commands:

~$ lsmod | grep serial usbserial 22278 5 ch341,cp210x,ti_usb_3410_5052,pl2303,ftdi_sio

~$ lsusb -cui |usb1 1d6b:0002:0404 09 2.00 480MBit/s 0mA 1IF (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:09:00.3) hub |1-1 10c4:ea60:0100 00 2.00 12MBit/s 100mA 1IF (ITead Sonoff Zigbee 3.0 USB Dongle Plus 9c36c28d24a6ed1190b7e8a32981d5c7) 1-1:1.0 (IF) ff:00:00 2EPs () usbfs |1-3 0764:0601:0200 00 1.10 1.5MBit/s 50mA 1IF (CPS UPS OR500 ffffff84ffffffb4ffffff81ffffffd3) 1-3:1.0 (IF) 03:00:00 2EPs () usbfs |usb3 1d6b:0002:0404 09 2.00 480MBit/s 0mA 1IF (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:09:00.4) hub |__3-2 f400:f400:0100 00 2.00 480MBit/s 200mA 1IF (Synology DiskStation 650037BEA681C648) 3-2:1.0 (IF) 08:06:50 2EPs () usb-storage host10 (synoboot)

robertklep commented 1 month ago

Yes, the missing extension seems to be the reason.

What's the output of this command?

uname -a
pacolvin commented 1 month ago

Sorry. I tried to reply via email but it did not appear here.

Here are the results.

~$ uname -a Linux Colvin-NAS 4.4.302+ #69057 SMP Fri Jan 12 17:02:27 CST 2024 x86_64 GNU/Linux synology_v1000_1821+

robertklep commented 1 month ago

I have an apollolake system myself which runs the same kernel version but I doubt that the module from my system will work on yours. I've uploaded it here: https://filebin.net/pzp661yvutqmt7x0

rcork commented 1 month ago

Same problem. After a recent update, cdc-adm.ko is no longer in /lib/modules. Anyone have a guide on how to build the synology 4.4.x kernel and the cdc-acm module for v1000?

th0ma7 commented 1 month ago

There is a SynoCommunity package with serial port drivers if that helps? https://synocommunity.com/package/synokernel-usbserial You can certainly ask to add it to the x64 kernel build by opening an issue.

Actually, just checked (and rebuilt to confirm), it is included:

$ tree work-v1000-7.2/staging/
work-v1000-7.2/staging/
├── etc
│   └── synokernel-usbserial.cfg
├── lib
│   └── modules
│       └── v1000-7.2
│           └── 4.4.302+
│               └── drivers
│                   └── usb
│                       ├── class
│                       │   └── cdc-acm.ko
│                       └── serial
│                           ├── ch341.ko
│                           ├── cp210x.ko
│                           ├── ftdi_sio.ko
│                           ├── pl2303.ko
│                           ├── ti_usb_3410_5052.ko
│                           └── usbserial.ko
└── rules.d
    └── 60-synokernel-usbserial.rules

You'll have to copy the *.ko module to your /lib/modules directory after install. Hopefully that a) works and b) helps.

rcork commented 1 month ago

That SynoCommunity package worked and now i have ttyACM0 back. Thank you!