Luckily there's no need to build from source. Here's how to fairly easily get ZTE MF 823 LTE USB dongle to work with Gargoyle 1.8.1:
1. Fetch the opkg and kmod-usb-net-cdc-ether ipk packages from
https://downloads.openwrt.org/barrier_b ... ages/base/ to your Gargoyle router's /tmp.
2. Install the opkg package 1st. This will replace Gargoyle's native opkg->gpkg symlink with a proper opkg executable.
3. Install kmod-usb-net-cdc-ether with `opkg install
--nodeps' to override the pesky "incompatible version" blocker.
4. Connect the ZTE dongle to your router and inspect `cat /sys/kernel/debug/usb/devices' output. If you have something like "P: Vendor=19d2 ProdID=
1403 Rev=f0.d2" there and "Driver=(none)" on comm and data interfaces, it means that usbmode switches your modem into a wrong "1403" mode (from the initial "1225") instead of "1405". Uninstall usb-modeswitch or edit the /etc/usb-mode.json to get rid of the respective fragment:
Code: Select all
"19d2:1225": {
"*": {
"t_vendor": 6610,
"t_product": [ 5125 ],
"mode": "StandardEject",
"msg": [ ]
}
},
5. Reconnect the dongle, check if /sys/kernel/debug/usb/devices reports "1405" mode and "Driver=cdc_ether" is assigned. `ip link' should also list an usb-ethernet interface now.
6. Connect to your new wan interface. In my case the following worked:
Code: Select all
root@Gargoyle:~# uci get network.wan.ifname
eth0.2
root@Gargoyle:~# uci set network.wan.ifname=usb0
root@Gargoyle:~# uci get network.wan.ifname
usb0
root@Gargoyle:~# uci commit
root@Gargoyle:~# /etc/init.d/network restart
Mind that saving any changes in Connection->Basic web GUI will reset your wired DHCP network.wan.ifname back to eth0.2, or whatever was your default, so you will neeed to redo #6 any time you change something there, e.g. DNS servers, wireless settings etc.
Read more about the modem:
-
https://wiki.archlinux.org/index.php/Ta ... 9_4G_Modem
-
https://wiki.archlinux.org/index.php/ZT ... 9_4G_Modem
Dear Gargoyle developers,
Can you integrate this into future Gargoyle releases so that ZTE MF823 is supported out of the box in CDC ethernet mode, and have a dropdown to select an ethernet device in Connection->Basic->Connect Via web GUI in "DHCP (Wired)" mode? Eko's 1.6.2.2 release used to do it this way, pitty he doesn't support Gargoyle anymore.