robertklep / dsm7-usb-serial-drivers

Synology DSM 7 USB serial drivers
523 stars 89 forks source link

DSM 7.2-64570 Update 1 not able to install module with error (Invalid Module Format) #96

Closed jeenyeong closed 1 year ago

jeenyeong commented 1 year ago

Upgraded my Synology to DSM 7.2-64570 Update 1 on 29 June 2023 and found my ITead Sonoff Zigbee 3.0 USB Dongle Plus stop working.

I am using a modal below and it should goes to package arch v1000 but when i tried to insert the module i am getting invalid module format error, anyone can help with this issue?

DS1821+ | AMD Ryzen V1500B | 4 | 8 | ✓ | V1000 | DDR4 ECC SODIMM 4GB

jeenyeong@Jeen-NAS:/dev$ uname -a
Linux Jeen-NAS 4.4.302+ #64570 SMP Tue Jun 13 21:39:53 CST 2023 x86_64 GNU/Linux synology_v1000_1821+

Driver that i am using. https://github.com/robertklep/dsm7-usb-serial-drivers/tree/main/modules/v1000/dsm-7.2

Errors i am getting

jeenyeong@Jeen-NAS:/dev$ sudo su
ash-4.4# modprobe usbserial
ash-4.4# modprobe ftdi_sio
ash-4.4# modprobe cdc-acm
ash-4.4# exit

jeenyeong@Jeen-NAS:/dev$ cd /lib/modules/

jeenyeong@Jeen-NAS:/lib/modules$ sudo wget https://github.com/robertklep/dsm7-usb-serial-drivers/blob/main/modules/v1000/dsm-7.2/ch3                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         41.ko
--2023-06-29 01:57:00--  https://github.com/robertklep/dsm7-usb-serial-drivers/blob/main/modules/v1000/dsm-7.2/ch341.ko
Resolving github.com... 20.205.243.166
Connecting to github.com|20.205.243.166|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'ch341.ko'

ch341.ko                             [ <=>                                                       ] 140.46K  --.-KB/s    in 0.03s

2023-06-29 01:57:01 (4.18 MB/s) - 'ch341.ko' saved [143827]

jeenyeong@Jeen-NAS:/lib/modules$ sudo insmod /lib/modules/ch341.ko
**insmod: ERROR: could not insert module /lib/modules/ch341.ko: Invalid module format**

jeenyeong@Jeen-NAS:/lib/modules$ sudo wget https://github.com/robertklep/dsm7-usb-serial-drivers/blob/main/modules/v1000/dsm-7.2/cp2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         10x.ko
--2023-06-29 02:07:20--  https://github.com/robertklep/dsm7-usb-serial-drivers/blob/main/modules/v1000/dsm-7.2/cp210x.ko
Resolving github.com... 20.205.243.166
Connecting to github.com|20.205.243.166|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'cp210x.ko'

cp210x.ko                            [ <=>                                                       ] 140.48K  --.-KB/s    in 0.02s

2023-06-29 02:07:21 (6.49 MB/s) - 'cp210x.ko' saved [143852]

jeenyeong@Jeen-NAS:/lib/modules$ sudo insmod /lib/modules/cp210x.ko
**insmod: ERROR: could not insert module /lib/modules/cp210x.ko: Invalid module format**

jeenyeong@Jeen-NAS:/lib/modules$ sudo wget https://github.com/robertklep/dsm7-usb-serial-drivers/blob/main/modules/v1000/dsm-7.2/pl2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         303.ko
--2023-06-29 02:07:31--  https://github.com/robertklep/dsm7-usb-serial-drivers/blob/main/modules/v1000/dsm-7.2/pl2303.ko
Resolving github.com... 20.205.243.166
Connecting to github.com|20.205.243.166|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'pl2303.ko'

pl2303.ko                            [   <=>                                                     ] 140.48K   276KB/s    in 0.5s

2023-06-29 02:07:32 (276 KB/s) - 'pl2303.ko' saved [143854]

jeenyeong@Jeen-NAS:/lib/modules$ sudo insmod /lib/modules/pl2303.ko
**insmod: ERROR: could not insert module /lib/modules/pl2303.ko: Invalid module format**

jeenyeong@Jeen-NAS:/lib/modules$ sudo wget https://github.com/robertklep/dsm7-usb-serial-drivers/blob/main/modules/v1000/dsm-7.2/ti_                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         usb_3410_5052.ko
--2023-06-29 02:07:39--  https://github.com/robertklep/dsm7-usb-serial-drivers/blob/main/modules/v1000/dsm-7.2/ti_usb_3410_5052.ko
Resolving github.com... 20.205.243.166
Connecting to github.com|20.205.243.166|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'ti_usb_3410_5052.ko'

ti_usb_3410_5052.ko                  [ <=>                                                       ] 140.75K  --.-KB/s    in 0.03s

2023-06-29 02:07:40 (4.27 MB/s) - 'ti_usb_3410_5052.ko' saved [144124]

jeenyeong@Jeen-NAS:/lib/modules$ sudo insmod /lib/modules/ti_usb_3410_5052.ko
**insmod: ERROR: could not insert module /lib/modules/ti_usb_3410_5052.ko: Invalid module format**

Can see Sonoff Zigbee Dongle

jeenyeong@Jeen-NAS:/dev$ lsusb
|__usb1          1d6b:0002:0404 09  2.00  480MBit/s 0mA 1IF  (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:0b:00.3) hub
  |__1-2         0463:ffff:0100 00  1.10  1.5MBit/s 20mA 1IF  (EATON Ellipse PRO 0000000000)
  **|__1-3         10c4:ea60:0100 00  2.00   12MBit/s 100mA 1IF  (ITead Sonoff Zigbee 3.0 USB Dongle Plus** 4c63593e0d86ec11ac255b1719c2d21c)
|__usb2          1d6b:0003:0404 09  3.00 5000MBit/s 0mA 1IF  (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:0b:00.3) hub
|__usb3          1d6b:0002:0404 09  2.00  480MBit/s 0mA 1IF  (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:0b:00.4) hub
  |__3-2         f400:f400:0100 00  2.00  480MBit/s 200mA 1IF  (Synology DiskStation 7F00139251345A57)
|__usb4          1d6b:0003:0404 09  3.00 5000MBit/s 0mA 1IF  (Linux 4.4.302+ xhci-hcd xHCI Host Controller 0000:0b:00.4) hub

Cant find any ttyUSB or ttyACM

jeenyeong@Jeen-NAS:/dev$ ls | grep USB
jeenyeong@Jeen-NAS:/dev$ ls | grep ACM
robertklep commented 1 year ago

Please follow the download instructions.

You're downloading the HTML page, not the module itself.

jeenyeong commented 1 year ago

@robertklep

Thanks and it works great for now :)

jeenyeong@Jeen-NAS:/lib/modules$ sudo rm ch341.ko
jeenyeong@Jeen-NAS:/lib/modules$ sudo rm cp210x.ko
jeenyeong@Jeen-NAS:/lib/modules$ sudo rm pl2303.ko
jeenyeong@Jeen-NAS:/lib/modules$ sudo rm ti_usb_3410_5052.ko
jeenyeong@Jeen-NAS:/lib/modules$ sudo wget https://github.com/robertklep/dsm7-usb-serial-drivers/raw/main/modules/v1000/dsm-7.2/ch341.ko
--2023-06-29 02:46:38--  https://github.com/robertklep/dsm7-usb-serial-drivers/raw/main/modules/v1000/dsm-7.2/ch341.ko
Resolving github.com... 20.205.243.166
Connecting to github.com|20.205.243.166|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/robertklep/dsm7-usb-serial-drivers/main/modules/v1000/dsm-7.2/ch341.ko [following]
--2023-06-29 02:46:39--  https://raw.githubusercontent.com/robertklep/dsm7-usb-serial-drivers/main/modules/v1000/dsm-7.2/ch341.ko
Resolving raw.githubusercontent.com... 185.199.108.133, 185.199.111.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 255928 (250K) [application/octet-stream]
Saving to: 'ch341.ko'

ch341.ko                                                                                                                                                        100%[====================================================================================================================================================================================================================================================================================================================================================================================================================================================>] 249.93K  1.32MB/s    in 0.2s

2023-06-29 02:46:39 (1.32 MB/s) - 'ch341.ko' saved [255928/255928]

jeenyeong@Jeen-NAS:/lib/modules$ sudo insmod /lib/modules/ch341.ko
jeenyeong@Jeen-NAS:/lib/modules$ sudo wget https://github.com/robertklep/dsm7-usb-serial-drivers/raw/main/modules/v1000/dsm-7.2/cp210x.ko
--2023-06-29 02:46:49--  https://github.com/robertklep/dsm7-usb-serial-drivers/raw/main/modules/v1000/dsm-7.2/cp210x.ko
Resolving github.com... 20.205.243.166
Connecting to github.com|20.205.243.166|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/robertklep/dsm7-usb-serial-drivers/main/modules/v1000/dsm-7.2/cp210x.ko [following]
--2023-06-29 02:46:49--  https://raw.githubusercontent.com/robertklep/dsm7-usb-serial-drivers/main/modules/v1000/dsm-7.2/cp210x.ko
Resolving raw.githubusercontent.com... 185.199.109.133, 185.199.110.133, 185.199.111.133, ...
Connecting to raw.githubusercontent.com|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 272960 (267K) [application/octet-stream]
Saving to: 'cp210x.ko'

cp210x.ko                                                                                                                                                       100%[====================================================================================================================================================================================================================================================================================================================================================================================================================================================>] 266.56K  --.-KB/s    in 0.1s

2023-06-29 02:46:50 (1.92 MB/s) - 'cp210x.ko' saved [272960/272960]

jeenyeong@Jeen-NAS:/lib/modules$ sudo insmod /lib/modules/cp210x.ko
jeenyeong@Jeen-NAS:/lib/modules$ sudo wget https://github.com/robertklep/dsm7-usb-serial-drivers/raw/main/modules/v1000/dsm-7.2/pl2303.ko
--2023-06-29 02:46:57--  https://github.com/robertklep/dsm7-usb-serial-drivers/raw/main/modules/v1000/dsm-7.2/pl2303.ko
Resolving github.com... 20.205.243.166
Connecting to github.com|20.205.243.166|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/robertklep/dsm7-usb-serial-drivers/main/modules/v1000/dsm-7.2/pl2303.ko [following]
--2023-06-29 02:46:57--  https://raw.githubusercontent.com/robertklep/dsm7-usb-serial-drivers/main/modules/v1000/dsm-7.2/pl2303.ko
Resolving raw.githubusercontent.com... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 278384 (272K) [application/octet-stream]
Saving to: 'pl2303.ko'

pl2303.ko                                                                                                                                                       100%[====================================================================================================================================================================================================================================================================================================================================================================================================================================================>] 271.86K  1.39MB/s    in 0.2s

2023-06-29 02:46:58 (1.39 MB/s) - 'pl2303.ko' saved [278384/278384]

jeenyeong@Jeen-NAS:/lib/modules$ sudo insmod /lib/modules/pl2303.ko
jeenyeong@Jeen-NAS:/lib/modules$ sudo wget https://github.com/robertklep/dsm7-usb-serial-drivers/raw/main/modules/v1000/dsm-7.2/ti_usb_3410_5052.ko
--2023-06-29 02:47:04--  https://github.com/robertklep/dsm7-usb-serial-drivers/raw/main/modules/v1000/dsm-7.2/ti_usb_3410_5052.ko
Resolving github.com... 20.205.243.166
Connecting to github.com|20.205.243.166|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/robertklep/dsm7-usb-serial-drivers/main/modules/v1000/dsm-7.2/ti_usb_3410_5052.ko [following]
--2023-06-29 02:47:05--  https://raw.githubusercontent.com/robertklep/dsm7-usb-serial-drivers/main/modules/v1000/dsm-7.2/ti_usb_3410_5052.ko
Resolving raw.githubusercontent.com... 185.199.111.133, 185.199.108.133, 185.199.109.133, ...
Connecting to raw.githubusercontent.com|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 311056 (304K) [application/octet-stream]
Saving to: 'ti_usb_3410_5052.ko'

ti_usb_3410_5052.ko                                                                                                                                             100%[====================================================================================================================================================================================================================================================================================================================================================================================================================================================>] 303.77K  1.37MB/s    in 0.2s

2023-06-29 02:47:06 (1.37 MB/s) - 'ti_usb_3410_5052.ko' saved [311056/311056]

jeenyeong@Jeen-NAS:/lib/modules$ sudo insmod /lib/modules/ti_usb_3410_5052.ko