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

I mean, a modified uboot variant is already doable. It's just that install mishaps would be a hard-brick for most people without the ability to reprogram spi-nand in-place. (Hence why the uboot variants of the other devices like the E8450/RT3200 and the U6 LR use automated installers?)

I on the other hand, just leave the uart leads installed poking out the back. :rofl:

10 fixed-partitions partitions found on MTD device 1100d000.snfi
[    0.748597] OF: Bad cell count for /snfi@1100d000/partitions
[    0.754261] OF: Bad cell count for /snfi@1100d000/partitions
[    0.760314] OF: Bad cell count for /snfi@1100d000/partitions
[    0.765975] OF: Bad cell count for /snfi@1100d000/partitions
[    0.771719] Creating 10 MTD partitions on "1100d000.snfi":
[    0.777206] 0x000000000000-0x000000080000 : "Preloader"
[    0.783596] 0x000000080000-0x0000000c0000 : "ATF"
[    0.788983] 0x0000000c0000-0x000000140000 : "u-boot"
[    0.795032] 0x000000140000-0x000000180000 : "u-boot-env"
[    0.801015] 0x000000180000-0x0000001c0000 : "bdata"
[    0.806541] 0x0000001c0000-0x000000240000 : "factory"
[    0.812721] 0x000000240000-0x000000280000 : "crash"
[    0.818270] 0x000000280000-0x0000002c0000 : "crash_log"
[    0.824145] 0x0000002c0000-0x0000006c0000 : "kernel"
[    0.837114] no rootfs found after FIT image in "kernel"
[    0.842342] 0x0000006c0000-0x0000075c0000 : "ubi"
[    1.084784] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xffffffc011b80000, irq 30
[    1.094344] i2c /dev entries driver

i'm only able to boot the router from bootmenu in serial console. i have no idea how fix that.

If you see in Serial Console output that your router stops booting on U-Boot console, boot manually to OpenWRT and set the flag to boot OpenWRT on startup:

MT7622> bootmenu
# Try first or second entry in bootmenu, click enter to boot

# In OpenWRT set a flag
fw_setenv boot_fw1 "run boot_rd_img;bootm"

reboot

from https://github.com/mikeeq/xiaomi_ax3200_openwrt#router-debricking

i'm on openwrt again, looks like update to last xiaomi firmware did the trick.

is there a working bandwith monitor ? vnstat doesn't work corrently for me shows much less than used on wan

Regarding the bandwidth monitor - are you using hw flow offloading? Try using sw only.

1 Like

Hi there! Good day to all. Can you please confirm if how to upgrade the version of openwrt on my router? I am complete noob on this. Can I use the commands found on https://github.com/mikeeq/xiaomi_ax3200_openwrt#how-to-upgrade-openwrt with my router version?

Also what version does OpenWrt SNAPSHOT r19525-fb7ff6b027 run on? Tried googling it but I can't seem to find it. If there is a clear upgrade instructions I appreciate it, thanks in advance!

Yes or if downloading on Luci go to System/Backup flash firmware & flash new firmware at the bottom of the list. Browse for you file and thats it. It will reboot for you into the file you have loaded.
Snapshot is the latest version you have uploaded. It is not recommended for a daily router as it may contain bugs. For a daily router choose the Stable version https://downloads.openwrt.org/releases/22.03.2/targets/mediatek/mt7622/ choose xiaomi_redmi-router-ax6s-squashfs-sysupgrade.bin version

1 Like

Thank you! but I can safely follow the one from mikeeq's github procedure, or do I need anything to jump to stable release? Thanks again for your response!

EDIT: Just bit the bullet and I am now in stable build! Thanks for your help guys, you rock!

Glad to hear it. There is no 100% safeway to upgrade & as you say you've just got to bite the bullet.
Now that you are using it, it is beneficial to occasionally update in System/Software. Update the list with the Actions button & check there for updates in the tab (Available/Installed/Updates)

1 Like

Will do that, thanks for your wisdom and guidance mate!

the way to be sure is check the dts of the firmware you are flashing

anyway this is an incredible openwrt router, i think the best one.

1 Like

Hi, I feel a bit stupid, could you elaborate on how to enabled telnet on the second device ?
I tried without switching ports and both combinations of WAN/LAN LAN/WAN and LAN/LAN but the second router seems stuck in netmode 0
thanks

Hi, first, you need to factory reset both devices. You need to start the process again by assuming the device to which the procedure will be applied as the first device, telnet enabled device as the second device.

After resetting the device to factory settings, power on both devices, skip the initial setup screen only in first device, after connecting the first device's lan port to the other device's wan port, it will become netmode 4 in five seconds.

After the all process is complete, factory reset both devices.
:+1:

thanks for the updated instructions. it looks like the device that has telnetd enabled does not respond to reset button anymore. any way of triggering the reset another way (the gui does not seem to work either)
thanks

so I seem to be stuck in factory_mode=1 , telnetd has no password , pressing reset only shows a message on the console "BUTTON:reset ACTION:pressed".
I can flash openwrt and it boots fine and the reset buttong works but as soon as I revert to stock firmware , the reset button is disabled again. Must be something weird in one of the auxilairy partitions.
any ideas ?
thanks

Interesting, I don't think this has anything to do with the telnet activation procedure applied. The procedure went smoothly for everyone. I agree with you, there is a possibility that it is related to a factory setting. Maybe someone else has an idea about the situation.

who knows if we can add a usb port, the only limit of this device, to use things like adguard?

1 Like

Hey, I got a repro and a fix :slight_smile:
with both my routers, after writing the crash partition and enabling telnet with your clever hack, my routers are in factory mode : no password needed for telnet and reset button does not do anything except showing a message on the console "BUTTON:reset ACTION:pressed".
without a way to use reset, I cannot but any other router in netmode 4

here is a fix:
deleting the crash partition from telnet with
`mtd erase crash
fixed it , I could then use the reset button to switch the other router to netmode 4, and perform the procedure.
I then needed the password calculated from the serial number to perform the upgrade this router.
Thanks again for the help, I hope my experience with help others as well if you want to include it in your instructions.

1 Like

hi there guys i just received today my device and flash with last openwrt all working good expect for 160mh channels my wifi max speed with 80mhz is only 1200mhz i want the full 2400mhz. is there any fix or patch?