OpenWrt for Xiaomi Mi Router 4C

4, "Disassociated due to inactivity" },


First reply for a search......
https://www.toomanyatoms.com/computer/disconnection_codes.html

Does not look like a bug and probably an explanation somewhere.

.

Today, another laptop screwed by the R4CM.
An XPSM1530, update a bunch a .deb for the Unbuntu distro, download speed ~ 15 20Kbs, rtc modem speed.
Turn on the ex access point (Fonera2), woup 2400Kbs as sound as wifi reconnected.

There is a BIG problem here.

Is it really hard to change operating frequency mode to N ?

In advanced settings there is a "Disassociate On Low Acknowledgement" option. IIRC it's enabled by default but I disabled it on my usage. Try that out.

First of all, thank you for the provided firmware. I was able to install
openwrt-ramips-mt76x8-xiaomi_mi-router-4c-squashfs-24-09-2020-MacTavishAO-sysupgrade.bin
on my Mi Router 4c. Everything is working fine except the Wifi.
Just to confirm as someone has already posted, after about 6MB/s throughput via Wifi, the SSID is not visible to any clients (phones, laptops etc.). The device reports the Wifi adapter is enabled but it just hangs there.
However, if there is low bandwidth usage, it seems to be working normally. I can't tell where the threshold is.
I've tried the "Disassociate On Low Acknowledgement" option both on and off, no luck.
I'd greatly appreciate if there is some kind of an update to help with this.

For anyone facing the same issue, I've partially fixed the issue issue by limiting the bandwidth via QoS traffic shaping on wlan0 adapter to around 20Mbit/s egress and 5Mbit/s ingress.
It's not ideal, but at least it's stable.

Does Mi Router 4C pcb has usb pads? Can we solder usb port to pcb

Firmware seems unstable.
random LAN and WIFI issues.

Router 4A firmware is very stable but no WAN function.

hi
so this means is possible to flash 4c using 4a firmware, how ? by the Luci or command line? thanks

Did you mean that you are running 4A's firmware on your 4C currently and you want to flash my build on top of it?

no,

i was thinking that i can user 4a firmware on 4c router , cana I ?

First release of OpenWrt 19.07.4 STABLE

  • What's different then your previous releases ?
  • This version is built from v19.07.4 sources. As 19.07.4 is a release version, this build should be stable. My previous builds built on master (development) branch. Let's quote Wiki about master branch:
    "The development branch can contain experimental code that is under active development and should not be used for production environments. Snapshot images may support additional hardware; however, it is experimental, considered unstable, and sometimes won't compile."

How to install this on top of SNAPSHOT builds ?

1- Go to System -> Backup/Flash Firmware.
2- Under "Flash new firmware image" browse new bin and hit upload.
3- Don't keep any data and enable force install.
4- Click to install button

Link:
Google Drive

3 Likes

very nice release, thank you

Thank you very much

Hello,

This new 19.07.4 STABLE release will keep the SNAPSHOT image configuration? I need to update in remote and can not lose any config.

Regards.

I'm not sure.

1 Like

OK, I will wait to stay locally to update.

Regards.

Already tried using this image however after a few hours of testing and using my router, my wireless AP gets disconnected randomly. Upon further checking, I saw some of these logs:

[ 3132.376872] rt3050-esw 10110000.esw: link changed 0x14
[ 3363.864118] rt3050-esw 10110000.esw: link changed 0x16
[25488.142417] rt3050-esw 10110000.esw: link changed 0x14
[25923.085644] rt3050-esw 10110000.esw: link changed 0x16
[25997.107528] rt3050-esw 10110000.esw: link changed 0x06
[26012.364489] rt3050-esw 10110000.esw: link changed 0x16
[26023.572812] rt3050-esw 10110000.esw: link changed 0x06
[26026.159816] rt3050-esw 10110000.esw: link changed 0x16
[26093.035030] rt3050-esw 10110000.esw: link changed 0x14
[26122.306629] rt3050-esw 10110000.esw: link changed 0x16
[26232.068766] rt3050-esw 10110000.esw: link changed 0x14
[26245.262659] rt3050-esw 10110000.esw: link changed 0x16
[26289.308509] rt3050-esw 10110000.esw: link changed 0x14
[26336.207169] rt3050-esw 10110000.esw: link changed 0x16
[41273.628753] rt3050-esw 10110000.esw: link changed 0x12
[41275.251216] rt3050-esw 10110000.esw: link changed 0x16
[41281.279571] rt3050-esw 10110000.esw: link changed 0x12
[66986.802467] rt3050-esw 10110000.esw: link changed 0x16
[66990.265095] rt3050-esw 10110000.esw: link changed 0x12
[66993.063303] rt3050-esw 10110000.esw: link changed 0x16
[66996.811015] rt3050-esw 10110000.esw: link changed 0x12
[66999.551367] rt3050-esw 10110000.esw: link changed 0x16
[67006.281990] rt3050-esw 10110000.esw: link changed 0x12
[67009.100168] rt3050-esw 10110000.esw: link changed 0x16
[89233.465712] rt3050-esw 10110000.esw: link changed 0x00
[89233.503159] device wlan0 left promiscuous mode
[89233.503286] br-lan: port 2(wlan0) entered disabled state
[89233.940585] br-***********: port 2(wlan0-1) entered disabled state

Installed packages are SQM-QOS, NFT-QOS, MWAN3, SNMPD and OPENVPN.

What should I do with this error?

And noticed I am having this error:

[73425.599643] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[73425.605933] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:00000055
[73425.605951] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=02c88000, max=1024, ctx=292, dtx=292, fdx=110, next=292
[73425.605966] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=02db8000, max=1024, calc=554, drx=555
[73433.077299] do_page_fault(): sending SIGSEGV to snmpd for invalid read access from 00000014
[73433.077312] epc = 77de414f in libnetsnmpmibs.so.35.0.0[77dcb000+4d000]
[73433.077339] ra = 77de4139 in libnetsnmpmibs.so.35.0.0[77dcb000+4d000]
[73435.599377] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[73435.605668] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:00000055
[73435.605686] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=02c88000, max=1024, ctx=125, dtx=125, fdx=38, next=125
[73435.605701] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0248c000, max=1024, calc=249, drx=250
[82185.343896] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[82185.350201] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:00000055
[82185.350220] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=02c88000, max=1024, ctx=978, dtx=978, fdx=918, next=978
[82185.350235] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=02db8000, max=1024, calc=719, drx=720
[82195.343543] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[82195.349834] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:00000055
[82195.349852] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=02db8000, max=1024, ctx=459, dtx=459, fdx=449, next=459
[82195.349866] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=034b8000, max=1024, calc=304, drx=305
[82205.343226] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[82205.349517] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:00000055
[82205.349535] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=02db8000, max=1024, ctx=317, dtx=317, fdx=153, next=317
[82205.349549] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0346c000, max=1024, calc=326, drx=327
[82215.342924] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[82215.349217] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:00000055
[82215.349234] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=02db8000, max=1024, ctx=252, dtx=252, fdx=16, next=252
[82215.349250] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=0248c000, max=1024, calc=171, drx=172
[85030.232139] mtk_soc_eth 10100000.ethernet eth0: transmit timed out
[85030.238435] mtk_soc_eth 10100000.ethernet eth0: dma_cfg:00000055
[85030.238452] mtk_soc_eth 10100000.ethernet eth0: tx_ring=0, base=02db8000, max=1024, ctx=724, dtx=724, fdx=682, next=724
[85030.238467] mtk_soc_eth 10100000.ethernet eth0: rx_ring=0, base=02c88000, max=1024, calc=120, drx=121