Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: could not insert module /lib/modules/cp210x.ko: Unknown symbol in module synology_geminilake_920+ #84

Open
CrayzChris opened this issue May 1, 2023 · 20 comments

Comments

@CrayzChris
Copy link

I updated my synology DS920+ from 7.1.1-42962 Update 5 to 7.2-64551.

The device /dev/ttyUSB0 (Silicon Labs CP2102) is missing after the update :-(.

Kernel
Linux xxx 4.4.302+ #64551 SMP Fri Apr 21 01:30:59 CST 2023 x86_64 GNU/Linux synology_geminilake_920+

|__usb1          1d6b:0002:0404 09  2.00  480MBit/s 0mA 1IF  (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
  |__1-1         1cf1:0030:0100 02  2.01   12MBit/s 100mA 2IFs (dresden elektronik ingenieurtechnik GmbH ConBee II DE2426406)
  |__1-2         10c4:ea60:0100 00  1.10   12MBit/s 100mA 1IF  (Silicon Labs CP2102 USB to UART Bridge Controller 0026)
  |__1-4         f400:f400:0100 00  2.00  480MBit/s 200mA 1IF  (Synology DiskStation 7F001472F413F213)
|__usb2          1d6b:0003:0404 09  3.00 5000MBit/s 0mA 1IF  (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
root@xxx:/lib/modules# ls -lrt
-rwx------ 1 root root   46875 May  2 00:13 usbserial.ko
-rwx------ 1 root root  272960 May  2 00:14 cp210x.ko

I'm not sure, can't load the modules.

insmod: ERROR: could not insert module /lib/modules/cp210x.ko: Unknown symbol in module
root@xxx:/lib/modules# sudo insmod /lib/modules/usbserial.ko
insmod: ERROR: could not insert module /lib/modules/usbserial.ko: Invalid module format

I use the following files:
https://github.com/robertklep/dsm7-usb-serial-drivers/tree/main/modules/geminilake/dsm-7.2

Regards
Chris

@robertklep
Copy link
Owner

Try this:

file /lib/modules/usbserial.ko

It sounds like you have overwritten that file with something else.

@ModuCZ
Copy link

ModuCZ commented May 24, 2023

I can provide "usbserial.ko" file for DSM 7.2 (kernel 4.4.302) from DS720+ (geminilake).

Mine was showing same symptoms, probably overwritten by DSM 7.1 version. You can extract it from DSM 7.2 pat file after decrypting it.

@schwooba
Copy link

schwooba commented Jun 11, 2023

Hi. I'm banging my head. I'm trying to load my Sonoff Zigbee USB. I can't get ttyUSB0 or ttyUSB1 to show up. I downloaded al the necessary files for my 7.2 upgrade and it worked before that time. Same kernel geminilake DS720+. When I run /usr/local/etc/rc.d/usb-serial-drivers.sh start nothing happens. Any advice you can lend would be appreciated. Thanks.

https://github.com/robertklep/dsm7-usb-serial-drivers/tree/main/modules/geminilake/dsm-7.2

|__usb1          1d6b:0002:0404 09  2.00  480MBit/s 0mA 1IF  (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
  |__1-1         10c4:ea60:0100 00  2.00   12MBit/s 100mA 1IF  (ITead Sonoff Zigbee 3.0 USB Dongle Plus 6c45611e1170ec1189af2a3519c2d21c)
  1-1:1.0         (IF) ff:00:00 2EPs ()
  |__1-4         f400:f400:0100 00  2.00  480MBit/s 200mA 1IF  (Synology DiskStation 7F00072935345A59)
  1-4:1.0         (IF) 08:06:50 2EPs () usb-storage host4 (synoboot)
|__usb2          1d6b:0003:0404 09  3.00 5000MBit/s 0mA 1IF  (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub

@robertklep
Copy link
Owner

@schwooba try loading the required modules manually to see if any of them causes an error:

sudo insmod /lib/modules/usbserial.ko
sudo insmod /lib/modules/cdc-acm.ko
sudo insmod /lib/modules/cp210x.ko

@schwooba
Copy link

@robertklep thx. Here's the outcome...

root@123:# sudo insmod /lib/modules/usbserial.ko
insmod: ERROR: could not insert module /lib/modules/usbserial.ko: File exists
root@123:
# sudo insmod /lib/modules/cdc-acm.ko
insmod: ERROR: could not insert module /lib/modules/cdc-acm.ko: File exists
root@123:~# sudo insmod /lib/modules/cp210x.ko
insmod: ERROR: could not insert module /lib/modules/cp210x.ko: Invalid module format

@robertklep
Copy link
Owner

Ah okay, that means you very likely didn't follow the download instructions properly.

The correct download URL for the required module is this: https://github.com/robertklep/dsm7-usb-serial-drivers/raw/main/modules/geminilake/dsm-7.2/cp210x.ko

@schwooba
Copy link

Oh man. That worked. Thanks so much. It always comes down to the basics.

@DeadlySin2
Copy link

DeadlySin2 commented Jan 23, 2024

Hello, i have the same ussue
I have made everything by the instruction but i get such error with all the files:
root@123:/lib/modules$ sudo insmod /lib/module/cp210x.ko
insmod: ERROR: could not load module /lib/module/cp210x.ko: No such file or directory
Or if i insert
root@123:/lib/modules$ sudo file /lib/modules/cp210x.ko
/lib/modules/cp210x.ko: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), BuildID[sha1]=37252b5255d564f271c787a7603ec5bb1aefb759, with debug_info, not stripped

@robertklep
Copy link
Owner

@DeadlySin2 modules in the path should be plural

@DeadlySin2
Copy link

DeadlySin2 commented Jan 23, 2024

Sorry for error my mistake.
Synology DS920+
DSM 7.2.1-69057 Update 3
These are the commands i used to download files
sudo wget https://github.com/robertklep/dsm7-usb-serial-drivers/raw/main/modules/geminilake/dsm-7.2/cp210x.ko
sudo wget https://github.com/robertklep/dsm7-usb-serial-drivers/raw/main/modules/geminilake/dsm-7.2/usbserial.ko
sudo wget https://github.com/robertklep/dsm7-usb-serial-drivers/raw/main/modules/geminilake/dsm-7.2/cdc-acm.ko

All files now send these errors:
root@YurlovoNAS:# sudo insmod /lib/modules/cp210x.ko
insmod: ERROR: could not insert module /lib/modules/cp210x.ko: File exists
root@YurlovoNAS:
# sudo insmod /lib/modules/usbserial.ko
insmod: ERROR: could not insert module /lib/modules/usbserial.ko: File exists
root@YurlovoNAS:~# sudo insmod /lib/modules/cdc-acm.ko
insmod: ERROR: could not insert module /lib/modules/cdc-acm.ko: File exists

@robertklep
Copy link
Owner

robertklep commented Jan 23, 2024

"file exists" means they are already loaded. Also, I don't provide usbserial.ko or cdc-acm.ko from this repository since they are shipped with DSM.

@DeadlySin2
Copy link

DeadlySin2 commented Jan 23, 2024

Thanks, as i can understand the drivers are instaled and work

root@123:/lib/modules# lsmod | grep serial
usbserial 22278 5 ch341,cp210x,ti_usb_3410_5052,pl2303,ftdi_sio
usbcore 209065 24 uas,ch341,etxhci_hcd,usblp,uhci_hcd,usb_storage,cp210x,usbserial,ti_usb_3410_5052,ehci_hcd,ehci_pci,pl2303,usbhid,ftdi_sio,cdc_acm,xhci_hcd,xhci_pci

root@123:/lib/modules# lsusb -cui
|__usb1 1d6b:0002:0404 09 2.00 480MBit/s 0mA 1IF (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
|__1-2 0bda:5411:0133 09 2.10 480MBit/s 0mA 1IF (Generic USB2.1 Hub ffffffd6ffffffa3ffffffebffffffcb) hub
|__1-2.1 1cf1:0030:0100 02 2.01 12MBit/s 100mA 2IFs (dresden elektronik ingenieurtechnik GmbH ConBee II DE4354543)
1-2.1:1.0 (IF) 02:02:01 1EP () usbfs
1-2.1:1.1 (IF) 0a:00:00 2EPs () usbfs
|__1-2.4 051d:0002:0106 00 1.10 12MBit/s 24mA 1IF (American Power Conversion Back-UPS XS 650CI FW:892.R3 .I USB FW:R3 3B1439X26359 )
1-2.4:1.0 (IF) 03:00:00 1EP () usbfs
|__1-4 f400:f400:0100 00 2.00 480MBit/s 200mA 1IF (Synology DiskStation 6500249F9E13F269)
1-4:1.0 (IF) 08:06:50 2EPs () usb-storage host6 (synoboot)
|__usb2 1d6b:0003:0404 09 3.00 5000MBit/s 0mA 1IF (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
The Conbee II module i can see. But i cant see the device ttyACM0 or ttyUSB0 in the /dev directory so these drivers are no working for my device?

@robertklep
Copy link
Owner

robertklep commented Jan 23, 2024

I don't see the cdc-acm.ko module loaded, which is probably the one that's needed.

Never mind, it's there. In that case, the Conbee should have been recognized, not sure why it isn't. Is it connected with a USB extension lead? That's usually necessary, especially when using USB3 ports.

@DeadlySin2
Copy link

It is connected with the lead throw a hub. So i have DS920+ - USB HUB - Conbee2 and a USB cable from UPS
I tried to use
sudo insmod /lib/modules/cdc-acm.ko
But it returnes insmod: ERROR: could not insert module /lib/modules/cdc-acm.ko: File exists

@robertklep
Copy link
Owner

Like I said, the "File exists" error happens because the module is already loaded. Try unplugging the Conbee, then plugging it back in, then check sudo dmesg to see if there are any messages appearing that might point to a reason why it's not working.

@ryanthuff1
Copy link

Sorry I'm having same issue, I have the correct file (raw), but it says wrong format when I load. I found this in dmesg
cp210x: version magic '4.4.302+ SMP mod_unload ' should be '4.4.180+ SMP mod_unload '

@ryanthuff1
Copy link

well $hit I am still on 7.1 LOL. my bad.

@robertklep
Copy link
Owner

@ryanthuff1 most modules are also available for 7.1

@pacolvin
Copy link

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.

@robertklep
Copy link
Owner

@pacolvin

Can you post the output of these commands:

lsmod | grep serial
lsusb -cui

Preferably in a new issue report 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants