robertklep / dsm7-usb-serial-drivers

Synology DSM 7 USB serial drivers
510 stars 87 forks source link

USB drivers for DS918+ DSM 7.2-64551 RC #85

Closed fwiegers closed 1 year ago

fwiegers commented 1 year ago

Hi,

I have a problem loading cp210x.ko for DSM 7.2-654551 RC. The same driver worked ok for the previous release (DSM 7.2-64216) worked ok without any issues.

Kernel information: Linux Wiegers_NAS 4.4.302+ #64551 SMP Fri Apr 28 19:48:21 CST 2023 x86_64 GNU/Linux synology_apollolake_918+

I hope you can help me out.

Regards,

Frans Wiegers

robertklep commented 1 year ago

Would be useful to know the actual problem you're having 😅

baylanger commented 1 year ago

Please provide the output that shows the error.

fwiegers commented 1 year ago

This is the output:

Frans@Wiegers_NAS:/lib/modules$ sudo insmod cp210x.ko Password: insmod: ERROR: could not insert module cp210x.ko: Invalid module format

robertklep commented 1 year ago

@fwiegers that means you very likely didn't download the file correctly. See the instructions in the README.

fwiegers commented 1 year ago

@robertklep I tried again following your exact directions. Same result Could there be a change between 7.2-654551 RC and 7.2-64216 causing this?

robertklep commented 1 year ago

@fwiegers what does file /lib/modules/cp210x.ko return?

fwiegers commented 1 year ago

Apparently 'file' is an unknown command in DSM? sudo: file: command not found. Is there a way to switch to another shell?

robertklep commented 1 year ago

Ah sorry, I use an external package that provides file.

Try this:

tr -cd '[:print:]' < /lib/modules/cp210x.ko | head -c 50
fwiegers commented 1 year ago

I get "permission denied" also when I add sudo before the command.

robertklep commented 1 year ago

Try setting the correct permissions first: sudo chmod 644 /lib/modules/cp210x.ko

fwiegers commented 1 year ago

Schermafbeelding 2023-05-05 103719 Looks like it's an HTML document? So wrong way of downloading?

robertklep commented 1 year ago

Yes, if it's HTML you downloaded the Github page source and not the actual module.

The correct URL is this: https://github.com/robertklep/dsm7-usb-serial-drivers/raw/main/modules/apollolake/dsm-7.2/cp210x.ko

fwiegers commented 1 year ago

Thank you very much. wget with the url, followed by the chmod, followed by insmod and now everything works!