Adding OpenWrt support for Xiaomi "Redmi Router AX6S"/"Xiaomi Router AX3200"

Hi all,

Just wondering, as anyone tries the latest snapshot:
https://firmware-selector.openwrt.org/?version=SNAPSHOT&target=mediatek%2Fmt7622&id=xiaomi_redmi-router-ax6s

Has the slow speed issue solved?

Noticed few posts about unstable wifi or installing extra wifi modules after Openwrt installation, can anybody confirm how good is wifi (2.4g and 5g) and will I need to install any additional modules for the wifi?

I have the same issue. radio0 (2.4Ghz) is down.

Sat Feb 18 18:57:06 2023 kern.err kernel: [   30.852831] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Sat Feb 18 18:58:56 2023 user.info : luci: accepted login on /admin/system/reboot for root from 192.168.1.20
Sat Feb 18 18:59:10 2023 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0) --> new PHY
Sat Feb 18 18:59:10 2023 daemon.err hostapd: Could not set interface wlan0 flags (UP): I/O error
Sat Feb 18 18:59:10 2023 daemon.err hostapd: nl80211: Could not set interface 'wlan0' UP
Sat Feb 18 18:59:10 2023 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Sat Feb 18 18:59:10 2023 daemon.err hostapd: nl80211 driver initialization failed.
Sat Feb 18 18:59:10 2023 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Sat Feb 18 18:59:10 2023 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started
Sat Feb 18 18:59:10 2023 daemon.notice netifd: radio0 (2370): Command failed: ubus call hostapd config_add {"iface":"wlan0", "config":"/var/run/hostapd-phy0.conf"} (Invalid argument)

Im back to the stock openwrt drivers. But upload speed is very low, I barely get 20mbps when using the mt drivers I had more than 100mbps :confused:

Download speed is a bit lower but still fine. Any advice to improve it?

Are you using 802.11ax? If so there is a known issue that is exactly what you reported (see below).

For now changing to 802.11ac will solve the issue.

1 Like

Yes Im, thanks very much to point it out. I changed here to AC and now I can reach close to 200mbit, its good enough for now :smiley:

Is it possible to swich off both LED lights on the front of the router ?

yes, naturally.

Add to /etc/config/system:

config led 'led_wan'
<------>option name 'WAN'
<------>option sysfs 'blue:net'
<------>option trigger 'none'
<------>option default '0'

config led 'led_wan_amber'
<------>option name 'WANamber'
<------>option sysfs 'amber:net'
<------>option trigger 'none'
<------>option default '0'

config led 'led_power'
<------>option name 'POWER'
<------>option sysfs 'blue:power'
<------>option trigger 'none'
<------>option default '0'

config led 'led_power_amber'
<------>option name 'POWERamber'
<------>option sysfs 'amber:power'
<------>option trigger 'none'
<------>option default '0'

2 Likes

Flashed RB03 to openwrt today. 5ghz radio is working, but speed is too slow (24mbps). I've tried to change settings (enable AC, N, or AX) - but nothing is changed. Also tried different channels/widths. 2.4Ghz is not working completely, in kernel log i see errors:

Sun Apr  9 13:15:02 2023 kern.err kernel: [   28.646875] mt7622-wmac 18000000.wmac: Message 00000010 (seq 1) timeout
Sun Apr  9 13:15:02 2023 kern.err kernel: [   28.653493] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Sun Apr  9 13:15:02 2023 kern.err kernel: [   28.877112] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Sun Apr  9 13:15:02 2023 kern.err kernel: [   29.097050] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Sun Apr  9 13:15:03 2023 kern.err kernel: [   29.317006] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Sun Apr  9 13:15:03 2023 kern.err kernel: [   29.536988] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Sun Apr  9 13:15:03 2023 kern.err kernel: [   29.757003] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Sun Apr  9 13:15:03 2023 kern.err kernel: [   29.976988] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Sun Apr  9 13:15:03 2023 kern.err kernel: [   30.197001] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Sun Apr  9 13:15:04 2023 kern.err kernel: [   30.416995] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Sun Apr  9 13:15:04 2023 kern.err kernel: [   30.636994] mt7622-wmac 18000000.wmac: Failed to get patch semaphore
Sun Apr  9 13:15:04 2023 daemon.err hostapd: Could not set interface wlan0 flags (UP): I/O error
Sun Apr  9 13:15:04 2023 daemon.err hostapd: nl80211: Could not set interface 'wlan0' UP

Have anyone solved this ?

I have same issue, still no solution.
Similar problem with MT7622 on linksys-rt3200:

i've bought second ax6s router today, the same board (difference only in last two digits of serial number). i've flashed it with the same openwrt version and it works with mt7622 without problem! seems that there are some bug in mt7622 driver code, i've created an issue in their github today. the 5ghz band works fine on both routers (i get ~900mbit/s with ipad pro 2022).

UPDATE: i've also tried to load stock mtk drivers, and no luck! they also report error while loading firmware.

Hi,

I have wiped the preloader with a command:
ubiformat /dev/mtd0
Please don't ask how and why :slight_smile: It was a mistake...
After reloading the router I see the error message via Telnet:
System halt!

So, I have to rewrite NAND directly using ch341a connicting as described in this post

Is anyone has a NAND dump and can share it? (or at least the preloader section)
Or maybe you can point me to where I can download it?

UPDATE
Please skip my message, I found it in the comment:

1 Like

I too have some issues but WiFi speeds are consistently good enough when choosing a fixed channel (48 in my case), but I've had bad luck with the speeds on auto channels (5GHz ax). On channel 36, my upload speeds were disastrous. This is conjecture though, since I didn't test extensively.

Waiting for a fix for mt7622 drivers but in the meantime, my setup is alright as it is.

1 Like

I have an OPNSense main router and I bought 2 Xiaomi AX3200's to setup as dumb Access Points and do fast roaming between them. I followed onemarcfifty's video and it looks like I configured it correctly (same mobility domain, channels non-overlapping ). I have also setup a Guest wifi with VLAN which also seems to work fine. So I currently have 4 different wireless networks on each AP (LAN_2.4GHz, LAN_5GHz, Guest_2.4GHz, Guest_5GHz). For simplicity I am using LAN SSID for all LAN and Guest SSID for all Guests.

I am running iperf on OPNSense and using my GrapheneOS phone to measure the performance (Ping Tools). When I run the test and move around the house it doesn't look like any roaming is taking place.

Do you have any solutions to propose?
So far I initially tried to have separate mobility domains for LAN and Guest and then once I saw that this wasn't working used the same mobility domain for all (LAN and Guest) but this still wasn't working.
Shall I disable the 2.4GHz networks so that luckily the signal is easier to drop?

I am going to try this next (Wi-Fi roaming recipe)
Any help is appreciated.

Thank you very much.

Is anybody else experiencing a memory leak on
OpenWrt 22.03.4 and
OpenWrt 22.03.5 with the AX6S / AX3200 ? I now reverted to OpenWrt 22.03.3 and am monitoring it.

Even on OpenWrt 22.03.3 there appeared to be a leak, so I compared packages to a non-memory leaking router (same model), Removed banip - 0.8.6-1 which were newer than banip - 0.8.2-6 and according to my knowledge under heavy development as well as collectd-mod-mqtt - 5.12.0-33 were removed as most likely candidates, busy monitoring again before more changes.

How's snapshot comparing?

Memory is now rock solid, most likely new banip, I will mention in respective thread.

2 Likes

After upgrading to 22.03.5 I still have this issue:

Tue May 30 19:29:10 2023 daemon.notice netifd: Network device 'wan' link is up
Tue May 30 19:29:12 2023 daemon.notice netifd: Network device 'wan' link is down
Tue May 30 19:29:14 2023 daemon.notice netifd: Network device 'wan' link is up
Tue May 30 19:29:15 2023 daemon.notice netifd: Network device 'wan' link is down
Tue May 30 19:29:18 2023 daemon.notice netifd: Network device 'wan' link is up
Tue May 30 19:29:21 2023 daemon.notice netifd: Network device 'wan' link is down
Tue May 30 19:29:24 2023 daemon.notice netifd: Network device 'wan' link is up
Tue May 30 19:29:26 2023 daemon.notice netifd: Network device 'wan' link is down
Tue May 30 19:29:28 2023 daemon.notice netifd: Network device 'wan' link is up
Tue May 30 19:29:32 2023 daemon.notice netifd: Network device 'wan' link is down
Tue May 30 19:29:34 2023 daemon.notice netifd: Network device 'wan' link is up
Tue May 30 19:30:07 2023 daemon.notice netifd: Network device 'wan' link is down
Tue May 30 19:30:10 2023 daemon.notice netifd: Network device 'wan' link is up
Tue May 30 19:30:15 2023 daemon.notice netifd: Network device 'wan' link is down
Tue May 30 19:30:18 2023 daemon.notice netifd: Network device 'wan' link is up

I get these errors despite having currently only 2 wireless clients (well in range) and two wired clients (on gigabit, no packet loss).
Googling after didn't help, got only the general bu****it like "it happens when having 100M clients", "check the cable", etc. Nothing useful.
Does anyone have a hint how to find the actual root cause?