Connecting MiFi e5573 (or any other mifi) to OpenWRT are similiar with connectiong Openwrt to Smartphone USB Thetering
Check / Install Driver
Provide USB tethering support for Android 8/10 with RNDIS:
opkg update
opkg install kmod-usb-net-rndis
Extra steps depending on USB type and drivers for your router:
opkg update
opkg install kmod-nls-base kmod-usb-core kmod-usb-net kmod-usb-net-cdc-ether kmod-usb2
Additional steps for iOS devices:
opkg update
opkg install kmod-usb-net-ipheth usbmuxd libimobiledevice usbutils
# Call usbmuxd
usbmuxd -v
# Add usbmuxd to autostart
sed -i -e "\$i usbmuxd" /etc/rc.local
MiFi
Make sure mifi is able to provide connection using USB cable data
Luci
Create new interface with protocol DHCP CLient
,
choose interface with your active USB port
depending on the model, it can be eth*
or USB*
on my case, because I use Orange Pi Zero which have only one ethernet port (eth0), MiFi device showed up as eth1
.
if modem stil not showing up on interface list, it might be driver problem
In my case I follow openwrt docs to install modem3g/4g/UMTS dogle driver hereopkg install kmod-usb2 kmod-usb-ohci kmod-usb-uhci kmod-usb-serial kmod-usb-serial-option kmod-usb-serial-wwa kmod-usb-acm usb-modeswitch luci-proto-3g comgt kmod-usb-serial kmod-usb-serial-option kmod-usb-serial-wwan usb-modeswitch
restart your network
/etc/init.d/network restart
Notes
if opkg update is failed because opkg is locked, run this
rm -f /var/lock/opkg.lock
Troubleshooting
If all went well, you should be able to see something like the following in the kernel log
click on Status and then on Kernel Log to see this log from the LuCi web interface
or write “dmesg” in the console over SSH.
[ 168.599245] usb 1-1: new high-speed USB device number 2 using orion-ehci
[ 175.997290] usb 1-1: USB disconnect, device number 2
[ 176.449246] usb 1-1: new high-speed USB device number 3 using orion-ehci
[ 176.654650] rndis_host 1-1:1.0 usb0: register 'rndis_host' at usb-f1050000.ehci-1, RNDIS device, ee:da:c0:50:ff:44
Note how the last line tells us that this new “RNDIS device” was bound to interface usb0.
❗ The above messages will not be shown with iPhone tethering.