robertklep / dsm7-usb-serial-drivers

Synology DSM 7 USB serial drivers
530 stars 90 forks source link

insmod: Invalid module format #21

Open caco3 opened 2 years ago

caco3 commented 2 years ago

Just a note: I have a DSM7 setup on an appololake system (Xpenology, DS918+) I want to use the driver for ch341, but I get:

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

Then I went to http://www.jadahl.com/iperf-arp-scan/DSM_7.0/apollolake/ and tried the version from there which loaded and works without any error. So there seems to be some odity on the driver in the repo here.

robertklep commented 2 years ago

Strange, I have the exact same hardware and it's working for me (using the file from Github):

$ uname -a
Linux syno 4.4.180+ #42218 SMP Mon Oct 18 19:17:56 CST 2021 x86_64 GNU/Linux synology_apollolake_918+
$ sudo insmod ch341.ko
Password:
$ sudo lsmod
Module                  Size  Used by
ch341                   5369  0

(although I'm not sure where Xpenology comes in)

swede89 commented 1 year ago

Hi. I face the same issue like @caco3.

# insmod ch341.ko insmod: ERROR: could not insert module ch341.ko: Invalid module format

My system is a 218+ # uname -a Linux DiskStation 4.4.180+ #42962 SMP Tue Oct 18 15:05:01 CST 2022 x86_64 GNU/Linux synology_apollolake_218+

# dmesg | tail -5 [45559.083505] ch341: Unknown symbol usb_serial_handle_dcd_change (err 0) [45559.090828] ch341: Unknown symbol usb_serial_generic_resume (err 0) [45559.097853] ch341: Unknown symbol usb_serial_deregister_drivers (err 0) [45559.105280] ch341: Unknown symbol usb_serial_generic_tiocmiwait (err 0) [45559.112694] ch341: Unknown symbol usb_serial_register_drivers (err 0)

I was hoping to gain support for my USB dongle with CH340 chipset, though this file indicates CH341 support. @robertklep, can you please provide a module for my chipset?

Thanks

Simon

robertklep commented 1 year ago

@swede89 did you load the usbserial module prior to loading the CH341 module?

insmod /lib/modules/usbserial.ko