ZTE mf710m on OpenWrt

Hello,
I want to get my zte mf710m on openwrt running.
I installed the following packages:

iperf3 usbutils usb-modeswitch kmod-usb-net-rndis kmod-usb-net-cdc-ether kmod-usb-net luci-proto-3g luci-app-mwan3

if I check dmesg I get:

[    2.199913] init: - watchdog -
[    3.267118] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.317724] usbcore: registered new interface driver usbfs
[    3.323399] usbcore: registered new interface driver hub
[    3.328919] usbcore: registered new device driver usb
[    3.340796] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.349212] ehci-fsl: Freescale EHCI Host controller driver
[    3.356433] ehci-platform: EHCI generic platform driver
[    3.362056] ehci-platform 1b000000.usb: EHCI Host Controller
[    3.367877] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    3.375946] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    3.397708] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    3.404953] hub 1-0:1.0: USB hub found
[    3.409207] hub 1-0:1.0: 1 port detected
[    3.416678] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.435180] init: - preinit -
[    3.762704] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    4.114384] hub 1-1:1.0: USB hub found
[    4.185924] hub 1-1:1.0: 4 ports detected
[    4.279829] random: procd: uninitialized urandom read (4 bytes read)
[    4.931191] random: jshn: uninitialized urandom read (4 bytes read)
[    5.198840] random: jshn: uninitialized urandom read (4 bytes read)
[    5.456210] random: jshn: uninitialized urandom read (4 bytes read)
[    5.586334] random: jshn: uninitialized urandom read (4 bytes read)
[    5.677807] random: jshn: uninitialized urandom read (4 bytes read)
[    6.833722] Atheros AR8216/AR8236/AR8316 mdio.0:00: Port 2 is up
[    6.841684] eth0: link up (1000Mbps/Full duplex)
[    6.857712] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    6.871644] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[    7.705642] usb 1-1.2: new high-speed USB device number 3 using ehci-platform
[    7.827576] usb 1-1.2: unable to read config index 2 descriptor/start: -32
[    7.834587] usb 1-1.2: chopping to 2 config(s)
[    7.839111] usb 1-1.2: can't read configurations, error -32
[    8.377648] usb 1-1.2: new high-speed USB device number 4 using ehci-platform
[   11.135760] jffs2: notice: (583) jffs2_build_xattr_subsystem: complete building xattr subsystem, 70 of xdatum (47 unchecked, 23 orphan) and 105 of xref (8 dead, 19 orphan) found.
[   11.156042] mount_root: switching to jffs2 overlay

How would I go on? If I read corretly it is not been recognized?

lsusb
Bus 001 Device 004: ID 19d2:1405 ZTE,Incorporated ZTE Mobile Broadband Station
Bus 001 Device 002: ID 05e3:0608  USB2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux 5.4.179 ehci_hcd EHCI Host Controller

The Router is a TP-LINK N600

Thanks for your help

check if you need to do ZTE MF79U usb modem not found - #7 by 4lex11s

thanks for the hint but isn't this a different modem? and how would I know what I need to add? or if I ?

perhaps, but the PID and VID are the same.

I added this entry in
/etc/usb-mode.json

    "19d2:1225": {                                                
                        "*": {
                                "t_vendor": 6610,                               
                                "t_product": [ 5125 ],                          
                                 "mode": "StandardEject",                       
                                "msg": [ 34 ]                                   
                        }                                                       
                },                              

this is what I should do? or ar the numbers different on my modem? How could I tell?

this is what it looks like right now:
image
so just the "34" is different

PID is different, and so is the t_product (whatever it is) ?

root@OpenWrt:~# lsusb -t

/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=, Driver=hub/4p, 480M
        |__ Port 2: Dev 6, If 0, Class=, Driver=cdc_ether, 480M
        |__ Port 2: Dev 6, If 1, Class=, Driver=cdc_ether, 480M
        |__ Port 2: Dev 6, If 2, Class=, Driver=, 480M

root@OpenWrt:~# lsusb -v

Bus 001 Device 006: ID 19d2:1405 ZTE,Incorporated ZTE Mobile Broadband Station
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            2
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x19d2
  idProduct          0x1405
  bcdDevice           51.33
  iManufacturer           1 ZTE,Incorporated
  iProduct                2 ZTE Mobile Broadband Station
  iSerial                 3 1234567890ABCDEF
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x006f
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower              500mA
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         0
      bInterfaceCount         2
      bFunctionClass          2
      bFunctionSubClass       6
      bFunctionProtocol       0
      iFunction               6 CDC
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2
      bInterfaceSubClass      6
      bInterfaceProtocol      0
      iInterface              4 CDC Ethernet Control Model (ECM)
      CDC Header:
        bcdCDC               1.10
      CDC Union:
        bMasterInterface        0
        bSlaveInterface         1
      CDC Ethernet:
        iMacAddress                      7 020CE70B0102
        bmEthernetStatistics    0x00000000
        wMaxSegmentSize               1514
        wNumberMCFilters            0x0000
        bNumberPowerFilters              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               9
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass        10
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           2
      bInterfaceClass        10
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              5 CDC Ethernet Data
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8
      bInterfaceSubClass      6
      bInterfaceProtocol     80
      iInterface              8 Mass Storage
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            2
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0001
  Self Powered

Bus 001 Device 002: ID 05e3:0608  USB2.0 Hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9
  bDeviceSubClass         0
  bDeviceProtocol         1
  bMaxPacketSize0        64
  idVendor           0x05e3
  idProduct          0x0608
  bcdDevice           85.36
  iManufacturer           0
  iProduct                1 USB2.0 Hub
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0019
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             4
  wHubCharacteristic 0x00e9
    Per-port power switching
    Per-port overcurrent protection
    TT think time 32 FS bits
    Port indicators
  bPwrOn2PwrGood       50 * 2 milli seconds
  bHubContrCurrent    100 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0100 power
   Port 2: 0000.0503 highspeed power enable connect
   Port 3: 0000.0100 power
   Port 4: 0000.0100 power
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            9
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0001
  Self Powered

Bus 001 Device 001: ID 1d6b:0002 Linux 5.4.179 ehci_hcd EHCI Host Controller
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9
  bDeviceSubClass         0
  bDeviceProtocol         1
  bMaxPacketSize0        64
  idVendor           0x1d6b
  idProduct          0x0002
  bcdDevice            5.04
  iManufacturer           3 Linux 5.4.179 ehci_hcd
  iProduct                2 EHCI Host Controller
  iSerial                 1 1b000000.usb
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0019
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             1
  wHubCharacteristic 0x0009
    Per-port power switching
    Per-port overcurrent protection
    TT think time 8 FS bits
  bPwrOn2PwrGood       10 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0503 highspeed power enable connect
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0001
  Self Powered

is there an entry in the file for 19d2:1405 too ?

No entry for 1405
Should there be an entry for 19d2:1405 ?

Also found this but it's german and no idea if this helps since it's ubuntu and quite old:
https://forum.ubuntuusers.de/topic/keine-internetverbingung-oder-ip-adresse-umts-/2/

it's device specific, so yeah, one entry for each VID:PID.

there's one for 1405 in the thread I linked to.

added the missing entry, reboot but still like this:

[   19.373123] cdc_ether 1-1.2:1.0 usb0: unregister 'cdc_ether' usb-1b000000.usb-1.2, ZTE CDC Ethernet Device
[   30.011702] usb 1-1.2: USB disconnect, device number 4
[   40.729694] usb 1-1.2: new high-speed USB device number 5 using ehci-platform
[   40.859330] usb 1-1.2: unable to read config index 2 descriptor/start: -32
[   40.866365] usb 1-1.2: chopping to 2 config(s)
[   40.870900] usb 1-1.2: can't read configurations, error -32
[   41.241696] usb 1-1.2: new high-speed USB device number 6 using ehci-platform
[   41.380538] cdc_ether 1-1.2:1.0 usb0: register 'cdc_ether' at usb-1b000000.usb-1.2, ZTE CDC Ethernet Device, 92:09:23:6c:a8:ae
[   42.390356] cdc_ether 1-1.2:1.0 usb0: unregister 'cdc_ether' usb-1b000000.usb-1.2, ZTE CDC Ethernet Device

does it do USB Mass Storage device detected, as in the othe thread,
after the unregister 'cdc_ether' ?

no thats all there is as i posted dmesg
I did try a different 4LTE stick almost same result.
1st is ZTE stick, 2nd is huawai stick:

[   17.246250] kmodloader: done loading kernel modules from /etc/modules.d/*
[   19.373123] cdc_ether 1-1.2:1.0 usb0: unregister 'cdc_ether' usb-1b000000.usb-1.2, ZTE CDC Ethernet Device
[   30.011702] usb 1-1.2: USB disconnect, device number 4
[   40.729694] usb 1-1.2: new high-speed USB device number 5 using ehci-platform
[   40.859330] usb 1-1.2: unable to read config index 2 descriptor/start: -32
[   40.866365] usb 1-1.2: chopping to 2 config(s)
[   40.870900] usb 1-1.2: can't read configurations, error -32
[   41.241696] usb 1-1.2: new high-speed USB device number 6 using ehci-platform
[   41.380538] cdc_ether 1-1.2:1.0 usb0: register 'cdc_ether' at usb-1b000000.usb-1.2, ZTE CDC Ethernet Device, 92:09:23:6c:a8:ae
[   42.390356] cdc_ether 1-1.2:1.0 usb0: unregister 'cdc_ether' usb-1b000000.usb-1.2, ZTE CDC Ethernet Device
[   49.126526] Atheros AR8216/AR8236/AR8316 mdio.0:00: Port 2 is down
[   49.134690] eth0: link up (1000Mbps/Full duplex)
[   49.148450] br-lan: port 1(eth0.1) entered blocking state
[   49.153990] br-lan: port 1(eth0.1) entered disabled state
[   49.159841] device eth0.1 entered promiscuous mode
[   49.164758] device eth0 entered promiscuous mode
[   49.181703] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   49.207087] br-lan: port 1(eth0.1) entered blocking state
[   49.212629] br-lan: port 1(eth0.1) entered forwarding state
[   50.149890] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   57.526220] wlan1: authenticate with 2c:3a:fd:fa:3a:1c
[   57.541094] wlan1: send auth to 2c:3a:fd:fa:3a:1c (try 1/3)
[   57.549069] wlan1: authenticated
[   57.553703] wlan1: associate with 2c:3a:fd:fa:3a:1c (try 1/3)
[   57.562933] wlan1: RX AssocResp from 2c:3a:fd:fa:3a:1c (capab=0x1511 status=0 aid=3)
[   57.571098] wlan1: associated
[   57.591424] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[   57.619034] wlan1: Limiting TX power to 23 (23 - 0) dBm as advertised by 2c:3a:fd:fa:3a:1c
[  177.157965] Atheros AR8216/AR8236/AR8316 mdio.0:00: Port 2 is up
[  813.592208] usb 1-1.1: new high-speed USB device number 7 using ehci-platform
[  814.394103] usb 1-1.1: USB disconnect, device number 7
[  814.772258] usb 1-1.1: new high-speed USB device number 8 using ehci-platform
[  814.973988] cdc_ether 1-1.1:1.0 eth1: register 'cdc_ether' at usb-1b000000.usb-1.1, CDC Ethernet Device, 00:1e:10:1f:00:00

Does this help?

cat /sys/kernel/debug/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  1, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 5.04
S:  Manufacturer=Linux 5.4.179 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=1b000000.usb
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 4
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=05e3 ProdID=0608 Rev=85.36
S:  Product=USB2.0 Hub
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=256ms

T:  Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  8 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=02(comm.) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=14db Rev= 1.02
S:  Manufacturer=HUAWEI_MOBILE
S:  Product=HUAWEI_MOBILE
C:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=  2mA
A:  FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00
I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=cdc_ether
E:  Ad=83(I) Atr=03(Int.) MxPS=  16 Ivl=2ms
I:  If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether
I:* If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

T:  Bus=01 Lev=02 Prnt=02 Port=01 Cnt=02 Dev#=  6 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=02(comm.) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=19d2 ProdID=1405 Rev=51.33
S:  Manufacturer=ZTE,Incorporated
S:  Product=ZTE Mobile Broadband Station
S:  SerialNumber=1234567890ABCDEF
C:* #Ifs= 3 Cfg#= 1 Atr=c0 MxPwr=500mA
A:  FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00
I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=(none)
E:  Ad=82(I) Atr=03(Int.) MxPS=  16 Ivl=32ms
I:* If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
I:  If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=125us

But it does not tell me what ttusb it is connected to?

Your Huawei modem seems to be working. If you make eth1 the wan device it should reach the Internet.

The ZTE on the other hand registers as usb0 then de-registers probably because it is going into mass storage mode. Either get usb-modeswitch working on it or use a PC to reconfigure the modem to disable the CD / mass storage mode.