i am italian and my english is not good but google translate helps me.
I read that openwrt now supports ZTE MF286D, so I wanted to do an experiment.
I installed on a virtual machine OpenWRT 21.02.3 x86 and I connected the ZTE modem module via usb with a Mini-PCIe WWAN to USB adapter. I installed the packages:
usb-modeswitch
kmod-mii
kmod-usb-net
kmod-usb-wdm
kmod-usb-net-qmi-wwan
uqmi
kmod-usb-net-cdc-mbim
umbim
kmod-usb-serial-option
kmod-usb-serial
kmod-usb-serial-wwan
in short, all the packages of the guide page "How to use LTE modem in QMI mode for WAN connection" but at the end
root @ OpenWrt: / # ls -l /dev/cdc-wdm0
ls: /dev/cdc-wdm0: No such file or directory
the module is recognized like this:
root @ OpenWrt: / # lsusb
Bus 002 Device 001: ID 1d6b: 0001 Linux 5.4.188 uhci_hcd UHCI Host Controller
Bus 004 Device 001: ID 1d6b: 0001 Linux 5.4.188 uhci_hcd UHCI Host Controller
Bus 001 Device 002: ID 19d2: 1485 ZTE, Incorporated ZTE Technologies MSM
Bus 001 Device 001: ID 1d6b: 0002 Linux 5.4.188 ehci_hcd EHCI Host Controller
Bus 003 Device 001: ID 1d6b: 0001 Linux 5.4.188 uhci_hcd UHCI Host Controller
Bus 005 Device 001: ID 1d6b: 0001 Linux 5.4.188 uhci_hcd UHCI Host Controller
In your opinion is it possible to make it work correctly?
So you have removed the modem from a MF286 and connected it to an x86 VM. This should work. From the page about running the whole MF286 with OpenWrt, it looks like the necessary drivers are usb-serial-option and qmi-wwan. Do those generate any log entries or errors? Do you get any /dev/ttyUSBx device?
A good test of USB modems is to plug it into a laptop or desktop running a full Linux distribution to confirm that it can connect to the Internet and see which drivers are in use.
Support for the modem was added to qmi_wwan in upstream Linux 5.17 -- I think your 5.4 is too early and you should try with snapshot or a recent, full-blown Linux-distro.
Support for the modem was only added to OpenWrt just 4 months ago in 5.10 and 5.15:
I don't know how to help, I've never had any reason to look into uhttpd or its settings. Just for the sakes of trying something, here's the contents of /etc/config/uhttpd on my OpenWrt-routers, maybe it'll help:
config uhttpd 'main'
list listen_http '0.0.0.0:80'
list listen_http '[::]:80'
list listen_https '0.0.0.0:443'
list listen_https '[::]:443'
option redirect_https '0'
option home '/www'
option rfc1918_filter '1'
option max_requests '3'
option max_connections '100'
option cert '/etc/uhttpd.crt'
option key '/etc/uhttpd.key'
option cgi_prefix '/cgi-bin'
list lua_prefix '/cgi-bin/luci=/usr/lib/lua/luci/sgi/uhttpd.lua'
option script_timeout '60'
option network_timeout '30'
option http_keepalive '20'
option tcp_keepalive '1'
option ubus_prefix '/ubus'
config cert 'defaults'
option days '730'
option key_type 'ec'
option bits '2048'
option ec_curve 'P-256'
option country 'ZZ'
option state 'Somewhere'
option location 'Unknown'
option commonname 'OpenWrt'
Try creating /etc/config/uhttpd with the above settings?