Xiaomi Wifi Router 3G - 18.06.x / Wifi issues 2.4GHz + 5GHz

Have you tested if it works better if you disconnect the USB3 peripherals? I don't think everyone who had problems with 2.4 GHz were using the USB port.

So, I removed my card reader from USB and everything works well. Using 5Ghz is not a solution, not all devices at my home support this frequency.

I'm really interested in the solution by Xiaomi. How do they switch between USB 2.0 & 3.0 programmatically? They have a check box in UI.


Hi @nbd, it was nice to meet you at Prague at OpenWrt Summit 2017. Do you have any hints on how could we force USB 2.0 drivers for Xiaomi 3G?

Thanks in advance!

Have you tried building your own firmware? It's not so difficult: https://openwrt.org/docs/guide-user/additional-software/beginners-build-guide

When you have set up the build environment it is trivial to turn off USB3. It's under Kernel modules / USB Support in the make menuconfig menu.

I don't know of a way to switch it off in realtime if rmmod doesn't work. My guess is that they have added the functionality themselves.

Thanks! I've just built own firmware without USB 3.0 but with USB 2.0.

  1. Yes, there is no USB 3.0 in a system now
  2. USB 2.0 does not work => unable to initialize libusb: -99
  3. Kernel log => https://pastebin.com/raw/B0bV3k4M
  4. Menuconfig => https://pastebin.com/raw/P0xKyZN9
  5. Some additional information:

lsusb

unable to initialize libusb: -99

opkg list-installed | grep libusb

libusb-1.0 - 1.0.22-1

lsmod

cfg80211              227028  4 mt76x2e,mt7603e,mt76,mac80211
compat                   699  2 mac80211,cfg80211
crc_ccitt               1067  1 ppp_async
crc32c_generic          1456  0
ehci_hcd               35351  1 ehci_platform
ehci_platform           4688  0
ext4                  389200  0
gpio_button_hotplug     6448  0
ip_tables              10509  4 iptable_nat,iptable_mangle,iptable_filter
ipt_MASQUERADE           752  1
ipt_REJECT              1040  2
iptable_filter           720  1
iptable_mangle           976  1
iptable_nat              784  1
jbd2                   57986  1 ext4
leds_gpio               2992  0
ledtrig_usbport         2816  0
mac80211              446911  3 mt76x2e,mt7603e,mt76
mbcache                 4046  1 ext4
mt76                   20938  2 mt76x2e,mt7603e
mt7603e                31887  0
mt76x2e                48332  0
nf_conntrack           62728 11 ipt_MASQUERADE,xt_state,xt_nat,xt_conntrack,xt_REDIRECT,nf_nat_masquerade_ipv4,nf_conntrack_ipv4,nf_nat_ipv4,nf_nat,nf_flow_table,nf_conntrack_rtcache
nf_conntrack_ipv4       4464 11
nf_conntrack_rtcache    2448  0
nf_defrag_ipv4          1078  1 nf_conntrack_ipv4
nf_flow_table          13919  2 xt_FLOWOFFLOAD,nf_flow_table_hw
nf_flow_table_hw        2336  1
nf_log_common           2767  1 nf_log_ipv4
nf_log_ipv4             3536  0
nf_nat                 13611  4 xt_nat,nf_nat_redirect,nf_nat_masquerade_ipv4,nf_nat_ipv4
nf_nat_ipv4             3473  1 iptable_nat
nf_nat_masquerade_ipv4    1660  1 ipt_MASQUERADE
nf_nat_redirect         1531  1 xt_REDIRECT
nf_reject_ipv4          2179  1 ipt_REJECT
nls_base                5456  1 usbcore
ppp_async               7136  0
ppp_generic            23202  3 pppoe,ppp_async,pppox
pppoe                   8880  0
pppox                   1418  1 pppoe
scsi_mod               93330  2 usb_storage,sd_mod
sd_mod                 29536  0
slhc                    5275  1 ppp_generic
usb_common              2583  1 usbcore
usb_storage            39643  0
usbcore               132371  4 ledtrig_usbport,usb_storage,ehci_platform,ehci_hcd
x_tables               14159 19 iptable_mangle,iptable_filter,ipt_REJECT,ipt_MASQUERADE,ip_tables,xt_time,xt_tcpudp,xt_state,xt_nat,xt_multiport,xt_mark,xt_mac,xt_limit,xt_conntrack,xt_comment,xt_TCPMSS,xt_REDIRECT,xt_LOG,xt_FLOWOFFLOAD
xt_FLOWOFFLOAD          2848  0
xt_LOG                   752  0
xt_REDIRECT              784  0
xt_TCPMSS               2160  1
xt_comment               560 61
xt_conntrack            2384  9
xt_limit                1264  1
xt_mac                   688  0
xt_mark                  752  0
xt_multiport            1360  0
xt_nat                  1616  0
xt_state                 784  0
xt_tcpudp               1872  6
xt_time                 1840  0

opkg list-installed | grep usb

kmod-usb-core - 4.14.67-1
kmod-usb-ehci - 4.14.67-1
kmod-usb-ledtrig-usbport - 4.14.67-1
kmod-usb-storage - 4.14.67-1
kmod-usb2 - 4.14.67-1
libusb-1.0 - 1.0.22-1
usbutils - 007-8
1 Like

That's unfortunate. You could try adding kmod-usb-dwc2, and possibly kmod-usb-ohci, kmod-usb-uhci, kmod-usb-ohci-pci and kmod-usb2-pci.

The same :frowning:

$ lsusb
unable to initialize libusb: -99

P.S: Do you have this device? Could you try if lsusb works for you? It seems that we can't turn off USB 3.0 kernel module :frowning:

I have one, but unfortunately I won't have access to it for a while so I can't test anything myself.

I resolved this issue with Padavan's firmware https://bitbucket.org/padavan/rt-n56u

I highly recommend everyone to try Padavan's firmware. You will never back to OpenWrt/LEDE version.
Of course, I can control USB2.0/USB3.0. Everything works great!!! No more problems!

04

2 Likes
d8:c4:6a:d6:20:71 IEEE 802.11: disassociated
Tue Sep 25 01:21:12 2018 daemon.info hostapd: wlan0: STA d8:c4:6a:d6:20:71 IEEE 802.11: authenticated
Tue Sep 25 01:21:12 2018 daemon.info hostapd: wlan0: STA d8:c4:6a:d6:20:71 IEEE 802.11: associated (aid 2)
Tue Sep 25 01:21:12 2018 daemon.notice hostapd: wlan0: AP-STA-CONNECTED d8:c4:6a:d6:20:71
Tue Sep 25 01:21:12 2018 daemon.info hostapd: wlan0: STA d8:c4:6a:d6:20:71 WPA: pairwise key handshake completed (RSN)
Tue Sep 25 01:21:12 2018 daemon.info dnsmasq-dhcp[2381]: DHCPDISCOVER(br-lan) d8:c4:6a:d6:20:71
Tue Sep 25 01:21:12 2018 daemon.info dnsmasq-dhcp[2381]: DHCPOFFER(br-lan) 192.168.6.245 d8:c4:6a:d6:20:71
Tue Sep 25 01:21:12 2018 daemon.info hostapd: wlan1: STA d8:c4:6a:d6:20:71 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Tue Sep 25 01:21:13 2018 daemon.info dnsmasq-dhcp[2381]: DHCPREQUEST(br-lan) 192.168.6.245 d8:c4:6a:d6:20:71
Tue Sep 25 01:21:13 2018 daemon.info dnsmasq-dhcp[2381]: DHCPACK(br-lan) 192.168.6.245 d8:c4:6a:d6:20:71 Matrix88
Tue Sep 25 01:21:29 2018 daemon.err uhttpd[1185]: luci: accepted login on / for root from 192.168.6.245
Tue Sep 25 01:24:32 2018 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED d8:c4:6a:d6:20:71
Tue Sep 25 01:24:32 2018 daemon.info hostapd: wlan0: STA d8:c4:6a:d6:20:71 IEEE 802.11: disassociated
Tue Sep 25 01:24:32 2018 daemon.info hostapd: wlan1: STA d8:c4:6a:d6:20:71 IEEE 802.11: authenticated
Tue Sep 25 01:24:32 2018 daemon.info hostapd: wlan1: STA d8:c4:6a:d6:20:71 IEEE 802.11: associated (aid 1)
Tue Sep 25 01:24:32 2018 daemon.

Always error please fix

Hi,

I have then tried PandoraBox. Well wifi is better than Padavan and better than OpenWrt.

I have also a Xiaomi 3, i changed that to PandoraBox due to use of propietary drivers.

It's a pitty OpenWrt can not use those drivers as it has the best support/plugins.

Ciao
Attaros

Hey,
can you tell us how to install PandoraBox? Which version do I have to install and how does it work? Via sysupgrade or is there anything else I have to do?

Does anyone have the same Problem as me?
After flasing OpenWRT and connecting my routers lan to the wan port of the mi wifi3g I can activate Wifi and its working. But when I turn off the power and turn it back on I cant get internet access over Wifi anymore and it never comes back. I am trying since 10 hours and I really do not know what to do anymore.

Start by posting the system and kernel log after a reboot. My first thought is that there's a problem with the flash memory, resulting in a broken config file. That has caused several similar problems on this router.

System log:

Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[964]: exiting on receipt of SIGTERM
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: started, version 2.80test3 cachesize 150
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC no-ID loop-detect inotify dumpfile
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq-dhcp[1844]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain test
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain onion
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain localhost
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain local
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain invalid
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain bind
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain lan
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: reading /tmp/resolv.conf.auto
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain test
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain onion
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain localhost
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain local
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain invalid
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain bind
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using local addresses only for domain lan
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using nameserver 1.1.1.1#53
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using nameserver 8.8.8.8#53
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: using nameserver fd00::e228:6dff:fedf:7c2f#53
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: read /etc/hosts - 4 addresses
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq-dhcp[1844]: read /etc/ethers - 0 addresses
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: read /etc/hosts - 4 addresses
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq[1844]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sat Oct 20 08:04:40 2018 daemon.info dnsmasq-dhcp[1844]: read /etc/ethers - 0 addresses
Sat Oct 20 08:04:40 2018 daemon.warn odhcpd[1056]: A default route is present but there is no public prefix on br-lan thus we don't announce a default route!
Sat Oct 20 08:04:52 2018 daemon.err uhttpd[1142]: luci: accepted login on /admin/system/reboot for root from 192.168.178.52

kernel log:

[    0.000000] Linux version 4.14.63 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7102-3f3a2c9)) #0 SMP Thu Aug 16 07:51:15 2018
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is Xiaomi Mi Router 3G
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat 80545e80, node_mem_map 81003000
[    0.000000]   Normal zone: 512 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000] random: get_random_bytes called from 0x80549740 with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu @81210000 s26256 r8192 d22896 u57344
[    0.000000] pcpu-alloc: s26256 r8192 d22896 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Writing ErrCtl register=00033060
[    0.000000] Readback ErrCtl register=00033060
[    0.000000] Memory: 253664K/262144K available (4596K kernel code, 239K rwdata, 564K rodata, 220K init, 270K bss, 8480K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 256
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000010] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.007809] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.073972] pid_max: default: 32768 minimum: 301
[    0.078738] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.085246] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.094003] Hierarchical SRCU implementation.
[    0.099127] smp: Bringing up secondary CPUs ...
[    0.104315] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.104324] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.104336] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.104470] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.163867] Synchronize counters for CPU 1: done.
[    0.198408] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.198418] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.198427] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.198496] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.254969] Synchronize counters for CPU 2: done.
[    0.285427] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.285435] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.285443] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.285521] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.340150] Synchronize counters for CPU 3: done.
[    0.370013] smp: Brought up 1 node, 4 CPUs
[    0.377725] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.387507] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.393796] pinctrl core: initialized pinctrl subsystem
[    0.399601] NET: Registered protocol family 16
[    0.409750] Can't analyze schedule() prologue at 80478bc4
[    0.415106] FPU Affinity set after 11720 emulations
[    0.415800] pull PCIe RST: RALINK_RSTCTRL = 4000000
[    0.721045] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.726078] ***** Xtal 40MHz *****
[    0.729449] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.734557] Port 0 N_FTS = 1b105000
[    0.738000] Port 1 N_FTS = 1b105000
[    0.741460] Port 2 N_FTS = 1b102800
[    1.896774] PCIE2 no card, disable it(RST&CLK)
[    1.901118]  -> 21007f2
[    1.903537] PCIE0 enabled
[    1.906144] PCIE1 enabled
[    1.908728] PCI host bridge /pcie@1e140000 ranges:
[    1.913491]  MEM 0x0000000060000000..0x000000006fffffff
[    1.918676]   IO 0x000000001e160000..0x000000001e16ffff
[    1.923848] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[    1.939700] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.945565] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.951341] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.958429] PCI host bridge to bus 0000:00
[    1.962452] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.969309] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    1.975141] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.981897] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.989784] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    1.989824] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.989837] pci 0000:00:00.0: reg 0x14: [mem 0x60300000-0x6030ffff]
[    1.989901] pci 0000:00:00.0: supports D1
[    1.989910] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.990152] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    1.990179] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.990195] pci 0000:00:01.0: reg 0x14: [mem 0x60310000-0x6031ffff]
[    1.990245] pci 0000:00:01.0: supports D1
[    1.990254] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    1.990659] pci 0000:01:00.0: [14c3:7603] type 00 class 0x028000
[    1.990702] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    1.990829] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    1.990999] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.991187] pci 0000:02:00.0: [14c3:7662] type 00 class 0x028000
[    1.991240] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    1.991286] pci 0000:02:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    1.991378] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    1.991555] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.991570] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 02
[    1.991628] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    1.998182] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.005058] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.011640] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.018530] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.025291] pci 0000:00:01.0: BAR 8: assigned [mem 0x60100000-0x601fffff]
[    2.032014] pci 0000:00:01.0: BAR 9: assigned [mem 0x60200000-0x602fffff pref]
[    2.039204] pci 0000:00:00.0: BAR 1: assigned [mem 0x60300000-0x6030ffff]
[    2.045927] pci 0000:00:01.0: BAR 1: assigned [mem 0x60310000-0x6031ffff]
[    2.052684] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff]
[    2.059397] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.064345] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.071066] pci 0000:02:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bit]
[    2.078355] pci 0000:02:00.0: BAR 6: assigned [mem 0x60200000-0x6020ffff pref]
[    2.085490] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.090434] pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff]
[    2.097156] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff pref]
[    2.105639] clocksource: Switched to clocksource GIC
[    2.111941] NET: Registered protocol family 2
[    2.117084] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    2.124007] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    2.130418] TCP: Hash tables configured (established 2048 bind 2048)
[    2.136834] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.142597] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.149070] NET: Registered protocol family 1
[    2.153389] PCI: CLS 0 bytes, default 32
[    2.385612] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.391755] Crashlog allocated RAM at address 0x3f00000
[    2.397132] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    2.410904] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.416718] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.429494] random: fast init done
[    2.433386] io scheduler noop registered
[    2.437273] io scheduler deadline registered (default)
[    2.442926] gpio-export gpio_export: 1 gpio(s) exported
[    2.448893] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    2.458778] console [ttyS0] disabled
[    2.462321] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[    2.471333] console [ttyS0] enabled
[    2.478205] bootconsole [early0] disabled
[    2.486975] cacheinfo: Failed to find cpu0 device node
[    2.492095] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.498992] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.506139] Enable NFI Clock
[    2.509010] # MTK NAND # : Use HW ECC
[    2.512669] Device found in MTK table, ID: c8d1, EXT_ID: 809540
[    2.518580] Support this Device in MTK table! c8d1 
[    2.523528] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[    2.530012] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xd1
[    2.536350] nand: ESMT NAND 128MiB 3,3V 8-bit
[    2.540686] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.548255] Scanning device for bad blocks
[    2.696691] 10 fixed-partitions partitions found on MTD device MT7621-NAND
[    2.703531] Creating 10 MTD partitions on "MT7621-NAND":
[    2.708842] 0x000000000000-0x000000080000 : "Bootloader"
[    2.715257] 0x000000080000-0x0000000c0000 : "Config"
[    2.721261] 0x0000000c0000-0x000000100000 : "Bdata"
[    2.727164] 0x000000100000-0x000000140000 : "Factory"
[    2.733223] 0x000000140000-0x000000180000 : "crash"
[    2.739116] 0x000000180000-0x0000001c0000 : "crash_syslog"
[    2.745665] 0x0000001c0000-0x000000200000 : "reserved0"
[    2.751904] 0x000000200000-0x000000600000 : "kernel_stock"
[    2.758507] 0x000000600000-0x000000a00000 : "kernel"
[    2.764479] 0x000000a00000-0x000007f80000 : "ubi"
[    2.771189] [mtk_nand] probe successfully!
[    2.776046] Signature matched and data read!
[    2.780294] load_fact_bbt success 1023
[    2.784699] libphy: Fixed MDIO Bus: probed
[    2.858202] libphy: mdio: probed
[    4.261940] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    4.268576] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 20
[    4.279363] NET: Registered protocol family 10
[    4.285379] Segment Routing with IPv6
[    4.289194] NET: Registered protocol family 17
[    4.293690] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    4.306606] 8021q: 802.1Q VLAN Support v1.8
[    4.313706] UBI: auto-attach mtd9
[    4.317098] ubi0: attaching mtd9
[    5.427013] ubi0: scanning is finished
[    5.446901] ubi0: attached mtd9 (name "ubi", size 117 MiB)
[    5.452377] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    5.459272] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    5.466047] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    5.472974] ubi0: good PEBs: 940, bad PEBs: 0, corrupted PEBs: 0
[    5.478973] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    5.486180] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 1483783663
[    5.495267] ubi0: available PEBs: 0, total reserved PEBs: 940, PEBs reserved for bad PEB handling: 20
[    5.504497] ubi0: background thread "ubi_bgt0d" started, PID 387
[    5.506481] block ubiblock0_0: created from ubi0:0(rootfs)
[    5.506493] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    5.506512] hctosys: unable to open rtc device (rtc0)
[    5.535227] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    5.542920] Freeing unused kernel memory: 220K
[    5.547401] This architecture does not have kernel memory protection.
[    6.068074] init: Console is alive
[    6.071711] init: - watchdog -
[    6.636570] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.724936] usbcore: registered new interface driver usbfs
[    6.730530] usbcore: registered new interface driver hub
[    6.736002] usbcore: registered new device driver usb
[    6.749658] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    6.754998] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[    6.765846] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x00210010
[    6.774326] xhci-mtk 1e1c0000.xhci: irq 19, io mem 0x1e1c0000
[    6.781059] hub 1-0:1.0: USB hub found
[    6.784876] hub 1-0:1.0: 2 ports detected
[    6.789481] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    6.794796] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[    6.802284] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0  SuperSpeed
[    6.808912] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    6.817823] hub 2-0:1.0: USB hub found
[    6.821632] hub 2-0:1.0: 1 port detected
[    6.828431] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.845956] init: - preinit -
[    7.460421] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[    7.551038] mtk_soc_eth 1e100000.ethernet: PPE started
[    7.631332] random: procd: uninitialized urandom read (4 bytes read)
[   10.771305] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 481
[   10.845709] UBIFS (ubi0:1): recovery needed
[   11.042954] UBIFS (ubi0:1): recovery completed
[   11.047535] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   11.055329] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   11.065215] UBIFS (ubi0:1): FS size: 112373760 bytes (107 MiB, 885 LEBs), journal size 5586944 bytes (5 MiB, 44 LEBs)
[   11.075821] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   11.082413] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID 9F33610E-0600-4DD4-AAB5-1FA23E090EEA, small LPT model
[   11.099835] mount_root: switching to ubifs overlay
[   11.135770] urandom-seed: Seeding with /etc/urandom.seed
[   11.230359] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[   11.244925] procd: - early -
[   11.247945] procd: - watchdog -
[   11.915768] procd: - watchdog -
[   11.919208] procd: - ubus -
[   11.981713] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.992918] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.999694] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.006975] procd: - init -
[   12.363049] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.373050] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.701731] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   12.709755] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   12.718139] ip_tables: (C) 2000-2006 Netfilter Core Team
[   13.060284] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
[   13.270086] xt_time: kernel timezone is -0000
[   13.508869] bus=0x1, slot = 0x0, irq=0xff
[   13.513069] mt7603e 0000:01:00.0: ASIC revision: 76030010
[   13.521716] mt7603e 0000:01:00.0: Firmware Version: ap_pcie
[   13.527311] mt7603e 0000:01:00.0: Build Time: 20160107100755
[   13.565633] firmware init done
[   13.744695] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   13.751872] bus=0x2, slot = 0x1, irq=0xff
[   13.756164] mt76x2e 0000:02:00.0: ASIC revision: 76120044
[   13.786375] mt76x2e 0000:02:00.0: ROM patch build: 20141115060606a
[   13.897852] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00
[   13.903330] mt76x2e 0000:02:00.0: Build: 1
[   13.907455] mt76x2e 0000:02:00.0: Build Time: 201507311614____
[   13.935744] mt76x2e 0000:02:00.0: Firmware running!
[   13.942047] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   13.950874] PPP generic driver version 2.4.2
[   13.956699] NET: Registered protocol family 24
[   13.963888] kmodloader: done loading kernel modules from /etc/modules.d/*
[   14.550079] urandom_read: 5 callbacks suppressed
[   14.550093] random: jshn: uninitialized urandom read (4 bytes read)
[   20.304644] mtk_soc_eth 1e100000.ethernet: PPE started
[   20.316980] device eth0 entered promiscuous mode
[   20.323755] br-lan: port 1(eth0.1) entered blocking state
[   20.329322] br-lan: port 1(eth0.1) entered disabled state
[   20.335295] device eth0.1 entered promiscuous mode
[   20.345250] br-lan: port 1(eth0.1) entered blocking state
[   20.350761] br-lan: port 1(eth0.1) entered forwarding state
[   20.356882] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   21.086835] random: crng init done
[   21.356149] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   22.098456] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[   22.113118] br-lan: port 2(wlan1) entered blocking state
[   22.118501] br-lan: port 2(wlan1) entered disabled state
[   22.124528] device wlan1 entered promiscuous mode
[   22.129687] br-lan: port 2(wlan1) entered blocking state
[   22.135059] br-lan: port 2(wlan1) entered forwarding state
[   22.396208] br-lan: port 2(wlan1) entered disabled state
[   22.788172] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[   22.794824] br-lan: port 2(wlan1) entered blocking state
[   22.800162] br-lan: port 2(wlan1) entered forwarding state

Wifi at 5GHz is unstable at 18.06.1 . I built from source yesterday a new firmware and nothing changed. The picture i attached shows the problem. Every couple of minutes the connection drops. I tested with 3 devices and they reproduce the same behavior therefore the router is the causing of the problem. This behavior was present 6 months ago when i first build and install the lede firmware. I hoped over the time to improve. I guess we should inform the developer of the wifi driver. Reporting here seems the like wrong place for things to be fixed.drop_packages

Edit: I must also mention the test conditions: The router is 3 meters (10ft) away from the receiver. There is no other station at 5GHz and im nowhere near any airport. I used iperf3. Sending from the router to the device there is a faster connection around 200Mbs yet there is a lot of drop packages every couple of minutes. Sending from the device to the router the connection is more stable with only maybe 30 to 50 packages lost every couple of minutes. Yet the later is slower for some reason around 130 to 150Mbs.

1 Like

Did you try compiling without USB3 support like Carp did earlier in this thread? Unfortunately he was not successful in using other USB drivers instead.

I don't use the 2.4GHz band, so i didn't care that much about USB. Out of curiosity i decided to omit usb all together from the kernel. The results strangely enough got worst.drop_packages_bo_usb
Now i loose packages constantly, have lower speeds and still have disconnects, less frequent though. That was weird enough to got me revert to the previous firmware so i could eliminated the environment factor.drop_packages_with_usb
So reverting i got the old behavior. Im not convinced that the usb have such a dramatic effect, yet is the only thing i changed. Hmmm ....

2 Likes

Hi,

I suggest always to go to Stock before chaning to Padvan/OpenWrt/Pandora.
OpenWrt -> Stock -> Pandora

When i was on OpenWrt i first updated the "bootloader" to "breed". This then makes it easy to go to Padvan/OpenWrt/Pandora/Stock. Search the Web for instrunctions on Breed

To update "bootloader" while i was on "OpenWrt" i did as below.
Connect via ssh to the router:

cd /tmp
mtd_write unlock Bootloader
wget --no-check-certificate https://breed.hackpascal.net/breed-mt7621-xiaomi-r3g.bin
mtd_write write breed-mt7621-xiaomi-r3g.bin Bootloader
mtd_write verify breed-mt7621-xiaomi-r3g.bin Bootloader
reboot

If you miss mtd_write then you can:
SSH to the router, and execute the command:

opkg update
opkg install kmod-mtd-rw
insmod mtd-rw i_want_a_brick=1
mtd unlock /dev/mtd0
mtd -r write /tmp/breed-mt7621-xiaomi-r3g.bin Bootloader
reboot

To flash with "Breed":
Before the power on, press and hold the reset buttom until the light blinks stable.
Now you should able to access the BREED interface though browser 192.168.1.1

https://downloads.pangubox.com/pandorabox/18.10/targets/ralink/mt7621/packages/

Ciao
Attaros

2 Likes

Why are not there any developers fixing 2.4 g wi-fi in this modem? It is always connected and can not be reconnected if the legacy rate is only 10 megabits per second

Can not customize the Tx power option 2.4ghz