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

still waiting for an electronics expert to add a usb port if it's possible

Banging my head to the wall, gigantic facepalm... etc/openwrt_release and openwrt_version were kept during sysupgrade. :scream:

By rectifying this and a restart, and I've the correct version displayed.

git clone https://git.openwrt.org/openwrt/openwrt.git -b v22.03.3

My build environment and built images were fine - I tested that if I reset the owrt config on my own build, the correct build information was shown - it only became the wrong one when I restored my config. Hence the realization that the problem was in my config. :weary:

1 Like

Hello everyone,
I own two Xiaomi AX6S. I successfuly flashed openwrt on them and would like to upgrade to the latest version. The official page warns that sysupgrade image might bricks the device due to mtd partitions offset on some AX6S. Is there a way to check if my routers have this offset?
When I check dmesg after a boot, I got the mtd starts (first 0x00) and sizes (second 0x00):

[    0.785210] Creating 10 MTD partitions on "1100d000.snfi":
[    0.790700] 0x000000000000-0x000000080000 : "Preloader"
[    0.797080] 0x000000080000-0x0000000c0000 : "ATF"
[    0.802441] 0x0000000c0000-0x000000140000 : "u-boot"
[    0.808509] 0x000000140000-0x000000180000 : "u-boot-env"
[    0.814459] 0x000000180000-0x0000001c0000 : "bdata"
[    0.819999] 0x0000001c0000-0x000000240000 : "factory"
[    0.826153] 0x000000240000-0x000000280000 : "crash"
[    0.831685] 0x000000280000-0x0000002c0000 : "crash_log"
[    0.837588] 0x0000002c0000-0x0000006c0000 : "kernel"
[    0.850609] no rootfs found after FIT image in "kernel"
[    0.855833] 0x0000006c0000-0x0000075c0000 : "ubi"

Does this mean my routers don't have offset/are safe for sysupgrade?
If sysupgrade is not possible, what are the alternatives for a secure upgrade?
And lastly, if the sysupgrade bricks the device. Is there a way to unbrick the system (TFTP?)?

Sorry, for the several questions. But I'm sure it will help new owners of AX6S/AX3200.
Thanks a lot for your help.

1 Like

You can always unbrick your soft-bricked device using UART flash method (see wiki). But you will need UART-TTL adapter and TFTP server.
Run
hexdump /dev/mtd8 | head
on your device. If it starts with
0000000 0dd0 edfe
it should be safe to sysupgrade.
Otherwise you will need to use UART flash method to recover vendor firmware and then flash openwrt factory image from it. The downside is you will lose all your configuration.

3 Likes

Developement build r21757 broke wifi, both radios not detected.
Since I needed my unit back asap I did a dirty flash back to stable release because was only few days older.
I wonder if the wireless is solved now in development releases.

Replay to myself,
Yep, OpenWrt SNAPSHOT, r21778-3d5c5427e1 wifi is working on both radios, tested and keep.

So there is no need for this method? https://forum.openwrt.org/t/adding-openwrt-support-for-xiaomi-redmi-router-ax6s-xiaomi-router-ax3200/111085/715

No, it's working out of the box with latest stable or developement builds. Mind that development versions don't include a gui (luci).

I tried firmware 22.03.3, the problem remained. Will build snapshot tomorrow and try it myself

What problem?
Ps. I did a dirty flash via ssh sysupgrade /tmp/openwrt-image-placeholder, no arguments on sysupgrade.

Thank you rincewind.
I checked hexdump /dev/mtd8 | head and both of my routers started with 0000000 0dd0 edfe. I updated and everything went well.
Great!

Last Snapshot does not work WiFi.
5G there is no interface at all, 2.4 does not work, although it is.

although this works, is there no permanent solution or do we need to recompile for each update to remove these mediatec,bmt lines?

Created PR: https://github.com/openwrt/openwrt/pull/11814

5 Likes

Any updates related to wifi on devel builds?
I'm still running the above mentioned version with success, both radio working, channels 6 and 100.
I plan to test tonight via auc, then revert if needed.

I did sysupgrade via cli to latest development available via openwrt firmware selector, wget to /tmp, settinge preserved, install bridger, wifi works after reboot, no problem. Not installed/using the luci gui atm.


22.03.3


last snapshot

And if you turn off the router to which this one is connected by a bridge, do your WiFi networks remain on the network from this router, or do they also disappear until you turn on the router to which you are connecting via WiFi?

I hope I wrote clearly? My english is really bad(((

Out of curiosity, which version did you upgrade to? Looking to do the same and prefer to go with a version someone has successfully upgraded to. I've checked my router and it also same the same output from the hexdump command.