Warning.. Synology 7.2 USB support broken- Hold off on upgrading

I’ll update the title when it’s working but for now, it you rely on USB devices… zwave, zigbee dongles, etc… hold off on upgrading


Has anyone upgraded their Synology to 7.2 and have their USB working?
My USB stopped working after the upgrade and I can’t find the correct cp210x.ko
I have the DS918+ which uses Apollolake and downloaded the file from

GitHub - robertklep/dsm7-usb-serial-drivers: Synology DSM 7 USB serial drivers

when I try to install the module I get the following error

sudo insmod /lib/modules/cp210x.ko
insmod: ERROR: could not insert module /lib/modules/cp210x.ko: Invalid module format

I also tried the community package “SynoKernel USB Serial Drivers” but that no longer works either.


Here are some posts about the issue

SynoKernel not working on 7.2 · Issue #5772 · SynoCommunity/spksrc · GitHub

synocli-kernel: Helper script `synocli-kernelmodule.sh` is not working on 7.0.1 · Issue #5375 · SynoCommunity/spksrc · GitHub

2 Likes

Did you get it to work in the end? haven’t upgraded myself yet either but also have DS918+ and USB.

no, but the beauty of Zigbee2MQTT and Zwave JS UI is that since it sends to MQTT, i simply installed them on another machine I had which is running Fridate. When I was first testing them in order to move from SmartThings, I had them on a rpi2.

You can download the driver for DSM 7.2 here.

Use the same method like previus I am doing it like this:

/sbin/modprobe usbserial
/sbin/modprobe ftdi_sio
/sbin/modprobe cdc-acm
insmod /volume1/docker/USB_Driver/cp210x.ko

(Running at start and as Root).

Good morning,
have you tested?

I have a ds720+, are the drivers correct?

Doesn’t work for me the published 7.2 drivers.
Still receiving the “Invalid module format”

Hi, did anyone manage to find the fix? I found this warning a little late and now my Z2M is broken.

Yes they work quite fine - I am using them right now.

Yes they are working fine… just use the link provided above

use the link that I have provided above

I have followed the same steps but for my NAS 1621+ drivers (taken from V1000) but still issue not fixed. Not sure what I am doing wrong.

Followed below document as well.

There was a time my SONOFF dongle recognised in different name under ttyACM0 and I could use it to modify Z2M config. All worked for about 30 min and USB disappeared again.

I can confirm my set up is working now on my Synology DS920+ & cc2531usb zigbee adapter. @surge919 feel free to update the topic for this thread.

Drivers are available for 7.2!

Unfortunately I can’t confirm it’s working on my DS420+ with the SONOFF dongle after having updated to DSM 7.2
All 7.2 drivers for geminilake will fail with “Invalid module format” after “trying to insmod”.

Any updates or ideas? thx

Just found a hint that I had the wrong download link for the modules.
The files within “raw” instead of “blob” work beautifully!
i.e. https://github.com/robertklep/dsm7-usb-serial-drivers/raw/main/modules/geminilake/dsm-7.2/ch341.ko
With those the modules can be inserted into the kernel without any problem.

Up and running again and happy :slight_smile:

1 Like

Did the upgrade yesterday and ran also into this problem, my Arduino RFlink came back fine but my ZigBee II usb stick did not connect to DECONZ.

I can confirm I have it all working now on my Synology DS1019+ where I have HA running on a virtual machine. The VM did see both USB devices but DECONZ did see the stick disconnected.

I mainly used the link @haproby posted, thanks! this needed a few tweaks so for the not so techn ical users like me, this is what worked for me, off course all credits to the original poster Scrapix!

You need to have SynoCommunity installed in the package center on your
SynoCommunity https://synocommunity.com/
Then install the Git package.

connect with a terminal to the Synology and do next command one by one

git clone https://github.com/robertklep/dsm7-usb-serial-drivers.git ~/DSM-USB-DRIVER/

replace the xxxxxx with your CPU package arch name from What kind of CPU does my Synology NAS have? - Synology Knowledge Center

sudo cp ~/DSM-USB-DRIVER/modules/xxxxxxxx/dsm-7.2/cp210x.ko /lib/modules
sudo chmod 644 /lib/modules/cp210x.ko
sudo chmod +x ~/DSM-USB-DRIVER/usb-serial-drivers.sh
sudo sh ~/DSM-USB-DRIVER/usb-serial-drivers.sh start
sudo cp ~/DSM-USB-DRIVER/usb-serial-drivers.sh /usr/local/etc/rc.d/
sudo sh /usr/local/etc/rc.d/usb-serial-drivers.sh start

Optionally you can add these tasks to the task manager in Synology to run at start or manual when the device is rebooted.

cp ~/DSM-USB-DRIVER/modules/xxxxxxxx/dsm-7.2/cp210x.ko /lib/modules
bash ~/DSM-USB-DRIVER/usb-serial-drivers.sh start

After this I could start the DECONZ add-on and the Conbee II was seen again.

Hope this helps someone!

4 Likes

Hi @modderhut, many many thanks for your message. After my synology update earlier today my Conbee 2 stick did not work anymore.

After following your instruction, all was OK again. Thanks for taking the time to write such a clear and concise instruction. You saved me a lot of hours of troubleshooting.

Dear all, I have read all the post carefully but still can’t solve my issue.

I can’t maintain my mqtt2zigbee installation up. I always get same error:

Let me tell you that I’m running mosquito-mqtt docker with no issues under Synology NAS and that issue is after installing docker of zigbee2mqtt and try to start up the docker service.

I get this error even after following the steps on this feed and can see properly the ttyUSB0 device when listing under dev$ directory.

Zigbee2MQTT:error 2023-08-19 20:41:52: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-08-19 20:41:52: Failed to start zigbee
Zigbee2MQTT:error 2023-08-19 20:41:52: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2023-08-19 20:41:52: Exiting...
Zigbee2MQTT:error 2023-08-19 20:41:52: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/ttyUSB0'
    at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/deconz/driver/driver.ts:200:28)
    at SerialPort._error (/app/node_modules/@serialport/stream/dist/index.js:75:22)
    at /app/node_modules/@serialport/stream/dist/index.js:111:18

I think the origin of the error could be here:

Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/ttyUSB0'
    at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/deconz/driver/driver.ts:200:28)
    at SerialPort._error (/app/node_modules/@serialport/stream/dist/index.js:75:22)
    at /app/node_modules/@serialport/stream/dist/index.js:111:18

Can someone help me to find the solution to my issue?

Thank you so much! I have spent a few hours to understand why I got the insmod error!

Edit: found the culprit! It took me several hours to figure it out. The VM for some reason lost connection with the dongle. It got dismounted. All I had to do is to mount it again from DSM control panel!

https://kb.synology.com/en-sg/DSM/tutorial/How_do_I_use_usb_drives_in_VMM

Original post:

I followed the above steps and I believe that I’m on the right track, however Home Assistant is failing to see the SONOFF stick form Settings>Hardware>All Hardware.

Home Assistant is running in a Virtual Machine.

I can see ttyAMC1 in Synology SSH when I type lsusb
or when I’m in the dev directory.

But for some reason it disappeared from Home Assistant, and zigbee2mqtt is failing to connect.

Zigbee2MQTT:error 2023-08-27 00:13:57: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-08-27 00:13:57: Failed to start zigbee
Zigbee2MQTT:error 2023-08-27 00:13:57: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2023-08-27 00:13:57: Exiting...
Zigbee2MQTT:error 2023-08-27 00:13:58: Error: Connection not initialized

This all happened out of the blue. Didn’t update HA, nor did I change anything in Synology. It just suddenly disappeared and all the zigbee devices are stranded in the middle of the desert…

1 Like