Page 2 of 2

Re: ZLAN 9809M - Din Rail 4G Router

Posted: Wed Aug 21, 2024 8:38 am
by Lantis
A new image with usb drivers is now available in the same spot.

Re: ZLAN 9809M - Din Rail 4G Router

Posted: Thu Aug 22, 2024 3:42 am
by tahitibub
Hello Lantis,

Thank you very much for your help, that's very kind of you.

I have just installed the new image, which does not solve the USB problem.

For your information, here is the list of USB packages present in the original firmware, including an obviously ‘home-made’ one (zl_usb_serial - 1.0):

Code: Select all

root@ZLAN:~# opkg list-installed *usb*
kmod-usb-acm - 5.4.143-1
kmod-usb-core - 5.4.143-1
kmod-usb-ehci - 5.4.143-1
kmod-usb-ledtrig-usbport - 5.4.143-1
kmod-usb-net - 5.4.143-1
kmod-usb-net-cdc-ether - 5.4.143-1
kmod-usb-net-cdc-mbim - 5.4.143-1
kmod-usb-net-cdc-ncm - 5.4.143-1
kmod-usb-net-cdc-subset - 5.4.143-1
kmod-usb-net-qmi-wwan - 5.4.143-1
kmod-usb-net-rndis - 5.4.143-1
kmod-usb-ohci - 5.4.143-1
kmod-usb-serial - 5.4.143-1
kmod-usb-serial-option - 5.4.143-1
kmod-usb-serial-qualcomm - 5.4.143-1
kmod-usb-serial-wwan - 5.4.143-1
kmod-usb-storage - 5.4.143-1
kmod-usb-uhci - 5.4.143-1
kmod-usb-wdm - 5.4.143-1
kmod-usb2 - 5.4.143-1
kmod-usb2-pci - 5.4.143-1
libusb-1.0-0 - 1.0.24-4
usb-modeswitch - 2017-12-19-f40f84c2-2
zl_usb_serial - 1.0
Studying the file "/usr/lib/opkg/status", I've noticed that there are at less two home-made packages :

Code: Select all

Package: zl_relay
Version: 1.0
Depends: libc, libuci20130104, libpthread
Status: install user installed
Architecture: mipsel_24kc
Installed-Time: 1630448408

Package: zl_usb_serial
Version: 1.0
Depends: libc, libuci20130104, libpthread
Status: install user installed
Architecture: mipsel_24kc
Installed-Time: 1630448408
I installed the ‘usb-utils’ package onto the original firmware in order to list the USB devices, which are :

Code: Select all

root@ZLAN:~# lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux 5.4.143 ohci_hcd Generic Platform OHCI controller
Bus 001 Device 003: ID 1e0e:9011 SIMCom Wireless Solution A76XX Series LTE Module
Bus 001 Device 001: ID 1d6b:0002 Linux 5.4.143 ehci_hcd EHCI Host Controller
FYI, I did the firmware update keeping the settings and without doing a ‘cold reboot’, which kept the blue 4G LED lit even under Gargoyle.

I also installed the ‘usb-utils’ package onto the Gargoyle firmware :

Code: Select all

root@Gargoyle:~# opkg install usbutils
Preparing to install the following packages, which will require 84364 bytes:
	usbutils, libevdev, libudev-zero

Preparing to install package libevdev...
	Downloading...
	Downloaded libevdev successfully.
	Installing libevdev...
	Successfully installed libevdev.
Preparing to install package libudev-zero...
	Downloading...
	Downloaded libudev-zero successfully.
	Installing libudev-zero...
	Successfully installed libudev-zero.
Preparing to install package usbutils...
	Downloading...
	Downloaded usbutils successfully.
	Installing usbutils...
	Successfully installed usbutils.
Installation of packages successful.
... Unfortunately, USB peripherals don't appear :

Code: Select all

root@Gargoyle:~# lsusb
unable to initialize libusb: -99
Moreover, after switch Off and On the power supply, the blue 4G led doesn't lit anymore.

I think the ZLAN 9809M not only needs usb drivers, but also a gpio command to turn on the power to the USB devices (and the 4G modem).

Solving these problems may take some time, and I don't want to take advantage of your kindness.

In any case, I don't feel competent enough to do it alone.
What I can do is provide the original firmware sent to me by the ZLAN technician and any necessary files (I am not afraid to use the terminal, nor to use the serial cable).

Don't you think I should open a thread on the open-wrt forum?

Regards

Re: ZLAN 9809M - Din Rail 4G Router

Posted: Thu Aug 22, 2024 6:00 am
by Lantis
OpenWrt won’t help you unfortunately. You will be shouted off the forum and told to go back to the vendor because they’ve customised the OS.

I do have the same advice though.
If the vendor has been cooperative so far, ask them for a dump of the source code required to build the firmware. By the GPL agreement they must give it to you.
Dodgy vendors won’t provide this to you.

If you can get the source, you can potentially bring their drivers across.
Otherwise you’re a bit stuck sorry.

Re: ZLAN 9809M - Din Rail 4G Router

Posted: Thu Aug 22, 2024 6:37 am
by tahitibub
I've just sent an email to the engineer who sent me the firmware file. Wait and see ...

While waiting for a possible answer, I tried to list the USB packages installed on the Gargoyle firmware but the opkg list-installed *usb* command didn't return anything.

Code: Select all

root@Gargoyle:~# opkg list-installed *usb*
root@Gargoyle:~# 
So I tried to install all the USB packages present in the ZLAN firmware one by one, and here's the result:

Code: Select all

root@Gargoyle:~# opkg install kmod-usb-acm
WARNING: Package kmod-usb-acm is already installed, ignoring
         Use --force-reinstall to force reinstallation

No packages to install.

root@Gargoyle:~# opkg install kmod-usb-core
WARNING: Package kmod-usb-core is already installed, ignoring
         Use --force-reinstall to force reinstallation

No packages to install.

root@Gargoyle:~# opkg install kmod-usb-ehci
ERROR: No package named kmod-usb-ehci found, try updating your package lists

root@Gargoyle:~# opkg install kmod-usb-ledtrig-usbport
ERROR: No package named kmod-usb-ledtrig-usbport found, try updating your package lists

root@Gargoyle:~# opkg install kmod-usb-net
WARNING: Package kmod-usb-net is already installed, ignoring
         Use --force-reinstall to force reinstallation

No packages to install.

root@Gargoyle:~# opkg install kmod-usb-net-cdc-ether
WARNING: Package kmod-usb-net-cdc-ether is already installed, ignoring
         Use --force-reinstall to force reinstallation

No packages to install.

root@Gargoyle:~# opkg install kmod-usb-net-cdc-mbim
WARNING: Package kmod-usb-net-cdc-mbim is already installed, ignoring
         Use --force-reinstall to force reinstallation

No packages to install.

root@Gargoyle:~# opkg install kmod-usb-net-cdc-ncm
WARNING: Package kmod-usb-net-cdc-ncm is already installed, ignoring
         Use --force-reinstall to force reinstallation

No packages to install.

root@Gargoyle:~# opkg install kmod-usb-net-cdc-subset
ERROR: No package named kmod-usb-net-cdc-subset found, try updating your package lists

root@Gargoyle:~# opkg install kmod-usb-net-qmi-wwan
WARNING: Package kmod-usb-net-qmi-wwan is already installed, ignoring
         Use --force-reinstall to force reinstallation

No packages to install.

root@Gargoyle:~# opkg install kmod-usb-net-rndis
WARNING: Package kmod-usb-net-rndis is already installed, ignoring
         Use --force-reinstall to force reinstallation

No packages to install.

root@Gargoyle:~# opkg install kmod-usb-ohci
ERROR: No package named kmod-usb-ohci found, try updating your package lists

root@Gargoyle:~# opkg install kmod-usb-serial
WARNING: Package kmod-usb-serial is already installed, ignoring
         Use --force-reinstall to force reinstallation

No packages to install.

root@Gargoyle:~# opkg install kmod-usb-serial-option
WARNING: Package kmod-usb-serial-option is already installed, ignoring
         Use --force-reinstall to force reinstallation

No packages to install.

root@Gargoyle:~# opkg install mod-usb-serial-qualcomm
ERROR: No package named mod-usb-serial-qualcomm found, try updating your package lists

root@Gargoyle:~# opkg install kmod-usb-serial-wwan
WARNING: Package kmod-usb-serial-wwan is already installed, ignoring
         Use --force-reinstall to force reinstallation

No packages to install.

root@Gargoyle:~# opkg install kmod-usb-storage
WARNING: Package kmod-usb-storage is already installed, ignoring
         Use --force-reinstall to force reinstallation

No packages to install.

root@Gargoyle:~# opkg install kmod-usb-uhci
ERROR: No package named kmod-usb-uhci found, try updating your package lists

root@Gargoyle:~# opkg install kmod-usb-wdm
WARNING: Package kmod-usb-wdm is already installed, ignoring
         Use --force-reinstall to force reinstallation

No packages to install.

root@Gargoyle:~# opkg install kmod-usb2
ERROR: No package named kmod-usb2 found, try updating your package lists

root@Gargoyle:~# opkg install kmod-usb2-pci
ERROR: No package named kmod-usb2-pci found, try updating your package lists

root@Gargoyle:~# opkg install libusb
ERROR: No package named libusb found, try updating your package lists

root@Gargoyle:~# opkg install usb-modeswitch
WARNING: Package usb-modeswitch is already installed, ignoring
         Use --force-reinstall to force reinstallation

No packages to install.

root@Gargoyle:~# opkg install zl_usb_serial
ERROR: No package named zl_usb_serial found, try updating your package lists

root@Gargoyle:~#
So, for instance, we have :

Code: Select all

Name of the USB package	ZLAN firmware	Gargoyle firmware
Mod-usb-acm	5.4.143-1	Already installed
Kmod-usb-core	5.4.143-1	Already installed
Kmod-usb-ehci	5.4.143-1	Not found
Kmod-usb-ledtrig-usbport	5.4.143-1	Not found
Kmod-usb-net	5.4.143-1	Already installed
Kmod-usb-net-cdc-ether	5.4.143-1	Already installed
Kmod-usb-net-cdc-mbim	5.4.143-1	Already installed
Kmod-usb-net-cdc-ncm	5.4.143-1	Already installed
Kmod-usb-net-cdc-subset	5.4.143-1	Not found
Kmod-usb-net-qmi-wwan	5.4.143-1	Already installed
Kmod-usb-net-rndis	5.4.143-1	Already installed
Kmod-usb-ohci	5.4.143-1	Not found
Kmod-usb-serial	5.4.143-1	Already installed
Kmod-usb-serial-option	5.4.143-1	Already installed
Kmod-usb-serial-qualcomm	5.4.143-1	Not found
Kmod-usb-serial-wwan	5.4.143-1	Already installed
Kmod-usb-storage	5.4.143-1	Already installed
Kmod-usb-uhci	5.4.143-1	Not found
Kmod-usb-wdm	5.4.143-1	Already installed
Kmod-usb2	5.4.143-1	Not found
kmod-usb2-pci	5.4.143-1	Not found
Libusb-1.0-0	1.0.24-4	Not found
Usb-modeswitch	2017-12-19-f40f84c2-2	Already installed
zl_usb_serial	1.0	Not found
There are 10 "USB" packages not found :

Kmod-usb-ehci
Kmod-usb-ledtrig-usbport
Kmod-usb-net-cdc-subset
Kmod-usb-ohci
Kmod-usb-serial-qualcomm
Kmod-usb-uhci
Kmod-usb2
kmod-usb2-pci
Libusb
zl_usb_serial

Do you know if they are installed in the Gargoyle firmware (except "zl_usb_serial" of course) ?

Regards

Re: ZLAN 9809M - Din Rail 4G Router

Posted: Fri Aug 23, 2024 3:31 am
by tahitibub
Hello,

Some news ...

I tried to install the 9 missing kernels packages, but I got this error message :

Code: Select all

ERROR: Dependency kernel (= 5.15.162-1-81d2030506bf6ad3027d9c549b1e93da) of package kmod-usb-net-cdc-subset is installed,
		but has incompatible version 5.15.164-1-0455c133592d6b10411b265a2585b4
Do you know where I can find the good files ?

Finally, I wonder if it's possible to replace the proprietary ‘zl_usb_serial’ extension with one of the ‘kmod-usb-serial’ extensions in the directory. I'd have to dismantle the device to see which serial chip is present ...

Regards

Code: Select all

root@Gargoyle:/tmp# wget https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt76x8/kmods/5.15.162-1-81d2030506bf6ad3027d9c549
b1e93da/kmod-usb-ehci_5.15.162-1_mipsel_24kc.ipk
Downloading 'https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt76x8/kmods/5.15.162-1-81d2030506bf6ad3027d9c549b1e93da/kmod-usb-ehci_5.15.162-1_mipsel_24kc.ipk'
Connecting to 151.101.2.132:443
Writing to 'kmod-usb-ehci_5.15.162-1_mipsel_24kc.ipk'
kmod-usb-ehci_5.15.1 100% |*******************************| 25593   0:00:00 ETA
Download completed (25593 bytes)
root@Gargoyle:/tmp# wget https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt76x8/kmods/5.15.162-1-81d2030506bf6ad3027d9c549
b1e93da/kmod-usb-ledtrig-usbport_5.15.162-1_mipsel_24kc.ipk
Downloading 'https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt76x8/kmods/5.15.162-1-81d2030506bf6ad3027d9c549b1e93da/kmod-usb-ledtrig-usbport_5.15.162-1_mipsel_24kc.ipk'
Connecting to 151.101.2.132:443
Writing to 'kmod-usb-ledtrig-usbport_5.15.162-1_mipsel_24kc.ipk'
kmod-usb-ledtrig-usb 100% |*******************************|  3950   0:00:00 ETA
Download completed (3950 bytes)
root@Gargoyle:/tmp# wget https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt76x8/kmods/5.15.162-1-81d2030506bf6ad3027d9c549
b1e93da/kmod-usb-net-cdc-subset_5.15.162-1_mipsel_24kc.ipk
Downloading 'https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt76x8/kmods/5.15.162-1-81d2030506bf6ad3027d9c549b1e93da/kmod-usb-net-cdc-subset_5.15.162-1_mipsel_24kc.ipk'
Connecting to 151.101.2.132:443
Writing to 'kmod-usb-net-cdc-subset_5.15.162-1_mipsel_24kc.ipk'
kmod-usb-net-cdc-sub 100% |*******************************|  2177   0:00:00 ETA
Download completed (2177 bytes)
root@Gargoyle:/tmp# wget https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt76x8/kmods/5.15.162-1-81d2030506bf6ad3027d9c549
b1e93da/kmod-usb-ohci_5.15.162-1_mipsel_24kc.ipk
Downloading 'https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt76x8/kmods/5.15.162-1-81d2030506bf6ad3027d9c549b1e93da/kmod-usb-ohci_5.15.162-1_mipsel_24kc.ipk'
Connecting to 151.101.2.132:443
Writing to 'kmod-usb-ohci_5.15.162-1_mipsel_24kc.ipk'
kmod-usb-ohci_5.15.1 100% |*******************************| 21728   0:00:00 ETA
Download completed (21728 bytes)
root@Gargoyle:/tmp# wget https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt76x8/kmods/5.15.162-1-81d2030506bf6ad3027d9c549
b1e93da/kmod-usb-serial-qualcomm_5.15.162-1_mipsel_24kc.ipk
Downloading 'https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt76x8/kmods/5.15.162-1-81d2030506bf6ad3027d9c549b1e93da/kmod-usb-serial-qualcomm_5.15.162-1_mipsel_24kc.ipk'
Connecting to 151.101.2.132:443
Writing to 'kmod-usb-serial-qualcomm_5.15.162-1_mipsel_24kc.ipk'
kmod-usb-serial-qual 100% |*******************************|  3276   0:00:00 ETA
Download completed (3276 bytes)
root@Gargoyle:/tmp# wget https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt76x8/kmods/5.15.162-1-81d2030506bf6ad3027d9c549
b1e93da/kmod-usb-uhci_5.15.162-1_mipsel_24kc.ipk
Downloading 'https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt76x8/kmods/5.15.162-1-81d2030506bf6ad3027d9c549b1e93da/kmod-usb-uhci_5.15.162-1_mipsel_24kc.ipk'
Connecting to 151.101.66.132:443
Writing to 'kmod-usb-uhci_5.15.162-1_mipsel_24kc.ipk'
kmod-usb-uhci_5.15.1 100% |*******************************| 14942   0:00:00 ETA
Download completed (14942 bytes)
root@Gargoyle:/tmp# wget https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt76x8/kmods/5.15.162-1-81d2030506bf6ad3027d9c549
b1e93da/kmod-usb2_5.15.162-1_mipsel_24kc.ipk
Downloading 'https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt76x8/kmods/5.15.162-1-81d2030506bf6ad3027d9c549b1e93da/kmod-usb2_5.15.162-1_mipsel_24kc.ipk'
Connecting to 146.75.122.132:443
Writing to 'kmod-usb2_5.15.162-1_mipsel_24kc.ipk'
kmod-usb2_5.15.162-1 100% |*******************************|  9394   0:00:00 ETA
Download completed (9394 bytes)
root@Gargoyle:/tmp# wget https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt76x8/kmods/5.15.162-1-81d2030506bf6ad3027d9c549
b1e93da/kmod-usb2-pci_5.15.162-1_mipsel_24kc.ipk
Downloading 'https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt76x8/kmods/5.15.162-1-81d2030506bf6ad3027d9c549b1e93da/kmod-usb2-pci_5.15.162-1_mipsel_24kc.ipk'
Connecting to 146.75.118.132:443
Writing to 'kmod-usb2-pci_5.15.162-1_mipsel_24kc.ipk'
kmod-usb2-pci_5.15.1 100% |*******************************|  3913   0:00:00 ETA
Download completed (3913 bytes)
root@Gargoyle:/tmp# 
root@Gargoyle:/tmp# opkg install /tmp/*.ipk
ERROR: Dependency kernel (= 5.15.162-1-81d2030506bf6ad3027d9c549b1e93da) of package kmod-usb-net-cdc-subset is installed,
		but has incompatible version 5.15.164-1-0455c133592d6b10411b265a2585b4

Re: ZLAN 9809M - Din Rail 4G Router

Posted: Fri Aug 23, 2024 4:34 am
by Lantis
You can’t install kernel modules between different versions.
Gargoyle is using 5.15.164 and upstream package repository (OpenWrt) is using 5.15.162.

If you want those kernel modules you need to compile your own image with them built in.
However, it looks like you have not added my package repositories?
Of your list only the following are NOT in my repo:
Kmod-usb-net-cdc-subset
Kmod-usb-uhci
kmod-usb2-pci
zl_usb_serial

Check my site where you downloaded from. Add the mt76x8 ones.
Also FYI, gargoyle uses GPKG, not OPKG.
OPKG is a symlink to gpkg