Help figuring out usb 4g dongle type

hi,

i have used a usb dongle with my (openwrt router) in the past, that usb dongle died

the packages i used to make the old dongle work were kmod-usb-net-cdc-ether and usb-modeswitch

based on the dmesg of that old usb dongle

[   94.098756] usb 1-1: USB disconnect, device number 2
[   94.518275] usb 1-1: new high-speed USB device number 3 using ehci-platform
[   94.745338] cdc_ether 1-1:1.0 eth1: register 'cdc_ether' at usb-101c0000.ehci-1, ZTE CDC Ethernet Device, 34:4b:50:00:00:00

the new dongle has the following dmesg

root@OpenWrt:~# dmesg
[    0.000000] Linux version 5.15.150 (builder@buildhost) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r23809-234f1a2efa) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 Fri Mar 22 22:09:42 2024
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7628AN ver:1 eco:2
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is TP-Link TL-MR3020 v3
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16240
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] Writing ErrCtl register=0007bbee
[    0.000000] Readback ErrCtl register=0007bbee
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 56084K/65536K available (5964K kernel code, 606K rwdata, 748K rodata, 1184K init, 217K bss, 9452K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] intc: using register map from devicetree
[    0.000000] CPU Clock: 580MHz
[    0.000000] timer_probe: no matching timers found
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000002] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.007634] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.073549] pid_max: default: 32768 minimum: 301
[    0.079098] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.086136] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.102472] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.112009] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.118761] pinctrl core: initialized pinctrl subsystem
[    0.125997] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.132338] thermal_sys: Registered thermal governor 'step_wise'
[    0.149585] clocksource: Switched to clocksource MIPS
[    0.162052] NET: Registered PF_INET protocol family
[    0.166970] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.175135] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.183365] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.190814] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.198199] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.205020] TCP: Hash tables configured (established 1024 bind 1024)
[    0.211341] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.217641] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.224905] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.230434] PCI: CLS 0 bytes, default 32
[    0.238885] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[    0.252087] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.257687] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.268923] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.279443] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.285266] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.291042] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.297089] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.306586] printk: console [ttyS0] disabled
[    0.310836] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.319588] printk: console [ttyS0] enabled
[    0.327980] printk: bootconsole [early0] disabled
[    0.339447] spi-mt7621 10000b00.spi: sys_freq: 193333333
[    0.369201] spi-nor spi0.0: s25fl064k (8192 Kbytes)
[    0.374325] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.380829] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[    0.388282] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[    0.396048] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[    0.403542] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[    0.411552] Creating 4 MTD partitions on "spi0.0":
[    0.416440] 0x000000000000-0x000000020000 : "boot"
[    0.425614] 0x000000020000-0x0000007c0000 : "firmware"
[    0.432526] 2 tplink-fw partitions found on MTD device firmware
[    0.438567] Creating 2 MTD partitions on "firmware":
[    0.443692] 0x000000000000-0x00000023376e : "kernel"
[    0.448733] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
[    0.460574] 0x000000233770-0x0000007a0000 : "rootfs"
[    0.465646] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
[    0.476300] mtd: setting mtd3 (rootfs) as root device
[    0.482614] 1 squashfs-split partitions found on MTD device rootfs
[    0.488937] 0x0000005b0000-0x0000007a0000 : "rootfs_data"
[    0.495857] 0x0000007c0000-0x0000007d0000 : "config"
[    0.504305] 0x0000007d0000-0x000000800000 : "factory"
[    0.542917] rt3050-esw 10110000.esw: mediatek esw at 0xb0110000, irq 25 initialized
[    0.551826] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.562805] NET: Registered PF_INET6 protocol family
[    0.575461] Segment Routing with IPv6
[    0.579285] In-situ OAM (IOAM) with IPv6
[    0.583508] NET: Registered PF_PACKET protocol family
[    0.588806] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    0.602362] 8021q: 802.1Q VLAN Support v1.8
[    0.608810] gpio-export gpio_export: 1 gpio(s) exported
[    0.623459] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[    0.637166] Freeing unused kernel image (initmem) memory: 1184K
[    0.643229] This architecture does not have kernel memory protection.
[    0.649780] Run /sbin/init as init process
[    0.653930]   with arguments:
[    0.653936]     /sbin/init
[    0.653942]   with environment:
[    0.653948]     HOME=/
[    0.653954]     TERM=linux
[    1.256074] init: Console is alive
[    1.260343] init: - watchdog -
[    2.188613] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.257835] usbcore: registered new interface driver usbfs
[    2.263688] usbcore: registered new interface driver hub
[    2.269174] usbcore: registered new device driver usb
[    2.283171] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.294071] fsl-ehci: Freescale EHCI Host controller driver
[    2.301798] ehci-platform: EHCI generic platform driver
[    2.317701] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
[    2.324539] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
[    2.329849] ehci-platform 101c0000.ehci: EHCI Host Controller
[    2.335709] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    2.343900] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    2.379601] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    2.387221] hub 1-0:1.0: USB hub found
[    2.392049] hub 1-0:1.0: 1 port detected
[    2.404549] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.412598] ohci-platform: OHCI generic platform driver
[    2.418376] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    2.425404] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    2.433665] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    2.514767] hub 2-0:1.0: USB hub found
[    2.519505] hub 2-0:1.0: 1 port detected
[    2.534154] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.544708] init: - preinit -
[    3.649149] random: jshn: uninitialized urandom read (4 bytes read)
[    3.814309] random: jshn: uninitialized urandom read (4 bytes read)
[    3.928407] random: jshn: uninitialized urandom read (4 bytes read)
[    6.744445] jffs2: notice: (318) jffs2_build_xattr_subsystem: complete building xattr subsystem, 30 of xdatum (25 unchecked, 5 orphan) and 38 of xref (5 dead, 0 orphan) found.
[    6.763863] mount_root: switching to jffs2 overlay
[    6.774180] overlayfs: upper fs does not support tmpfile.
[    6.787617] urandom-seed: Seeding with /etc/urandom.seed
[    6.902375] procd: - early -
[    6.905743] procd: - watchdog -
[    7.476648] random: jshn: uninitialized urandom read (4 bytes read)
[    7.724991] procd: - watchdog -
[    7.729923] procd: - ubus -
[    7.837889] random: jshn: uninitialized urandom read (4 bytes read)
[    7.898847] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.929102] procd: - init -
[    8.847112] random: jshn: uninitialized urandom read (4 bytes read)
[    8.945809] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.959892] random: ubus: uninitialized urandom read (4 bytes read)
[    9.062963] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.691237] Loading modules backported from Linux version v6.1.24-0-g0102425ac76b
[    9.698860] Backport generated by backports.git v5.15.92-1-44-gd6ea70fafd36
[    9.779505] usbcore: registered new interface driver cdc_ether
[   10.203146] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[   11.271965] mt76_wmac 10300000.wmac: Firmware Version: 20151201
[   11.278011] mt76_wmac 10300000.wmac: Build Time: 20151201183641
[   11.339593] mt76_wmac 10300000.wmac: firmware init done
[   11.511881] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   11.793393] PPP generic driver version 2.4.2
[   11.812416] NET: Registered PF_PPPOX protocol family
[   11.890079] kmodloader: done loading kernel modules from /etc/modules.d/*
[   12.064783] urngd: v1.0.2 started.
[   12.460125] random: jshn: uninitialized urandom read (4 bytes read)
[   13.349658] usb 1-1: new high-speed USB device number 2 using ehci-platform
[   17.432503] random: crng init done
[   17.435987] random: 52 urandom warning(s) missed due to ratelimiting
[   36.869119] br-lan: port 1(eth0.1) entered blocking state
[   36.874731] br-lan: port 1(eth0.1) entered disabled state
[   36.880619] device eth0.1 entered promiscuous mode
[   36.885500] device eth0 entered promiscuous mode
[   40.449378] usb 1-1: USB disconnect, device number 2
[   40.869650] usb 1-1: new high-speed USB device number 3 using ehci-platform
[   42.598647] br-lan: port 2(phy0-ap0) entered blocking state
[   42.604413] br-lan: port 2(phy0-ap0) entered disabled state
[   42.610479] device phy0-ap0 entered promiscuous mode
[   43.023721] IPv6: ADDRCONF(NETDEV_CHANGE): phy0-ap0: link becomes ready
[   43.030774] br-lan: port 2(phy0-ap0) entered blocking state
[   43.036451] br-lan: port 2(phy0-ap0) entered forwarding state
[   43.093066] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   80.165319] usb usb1-port1: disabled by hub (EMI?), re-enabling...
[   80.171667] usb 1-1: USB disconnect, device number 3
[   80.542456] usb 1-1: new high-speed USB device number 4 using ehci-platform
[   80.929681] usb 1-1: device descriptor read/64, error -71

im unable to comprehend what packages i need to install to make this new dongle work, any help would be appreciated

Don't start router with this dongle ,just put it when system will finish boot , and then place logread and dmesg.
please also give result of command"cat /sys/kernel/debug/usb/devices"

1 Like

thanks
i waited for openwrt router to boot before plugging the usb dongles like you said

dmesg
https://pastebin.com/raw/s4n5VJMi

logread
https://pastebin.com/raw/YJib1qBH

root@OpenWrt:~# 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=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 5.15
S:  Manufacturer=Linux 5.15.150 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=101c0000.ehci
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#=  4 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=05c6 ProdID=90b4 Rev=ff.ff
S:  Manufacturer=Android
S:  Product=Android
S:  SerialNumber=cb100280
C:* #Ifs= 4 Cfg#= 1 Atr=80 MxPwr=500mA
A:  FirstIf#= 0 IfCount= 2 Cls=e0(wlcon) Sub=01 Prot=03
I:* If#= 0 Alt= 0 #EPs= 1 Cls=e0(wlcon) Sub=01 Prot=03 Driver=(none)
E:  Ad=82(I) Atr=03(Int.) MxPS=   8 Ivl=32ms
I:* If#= 1 Alt= 0 #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= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E:  Ad=84(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none)
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12   MxCh= 1
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0001 Rev= 5.15
S:  Manufacturer=Linux 5.15.150 ohci_hcd
S:  Product=Generic Platform OHCI controller
S:  SerialNumber=101c1000.ohci
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=   2 Ivl=255ms

You need to follow this:
https://openwrt.org/docs/guide-user/network/wan/wwan/ethernetoverusb_rndis

1 Like

Yes , probably it is RNDIS modem, so install kmod-usb-net-rndis .

1 Like

thank you, appreciate it

Please share the full model name, for the records :wink:

1 Like

sure thing

Muvit 4G LTE Wireless Dongle

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.