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

insmod: Invalid module format #21

Open
caco3 opened this issue Feb 26, 2022 · 3 comments
Open

insmod: Invalid module format #21

caco3 opened this issue Feb 26, 2022 · 3 comments

Comments

@caco3
Copy link

caco3 commented Feb 26, 2022

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
Copy link
Owner

robertklep commented Feb 27, 2022

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
Copy link

swede89 commented Jan 14, 2023

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
Copy link
Owner

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

insmod /lib/modules/usbserial.ko

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

3 participants