OpenWrt support for Xiaomi AX3000T

Get SSH access to the stock firmware (Step 1 from here) and then see this post for the commands you need to run to check for the AN8855 switch.

2 Likes

I have read the official instructions but they aren't clear to me. I also am not sure what chip I have and I don't understand how the image shared help you identify the chip. Yes my router is set-up and I have access to the Xiaomi router settings.

"I also am not sure what chip I have" ... you can identify it by looking to the board on bottom side of the router...
Also the post from dsouza can help you...

i used the XMIR tool and get it, thanks.
To how want to get it, download XMIR tool, then set ip to your router on option 1, than use code 2 to connect to router via exploit ssh, than use code 3 to get the basic information about the device and than go to option 8 ( 8 - {{{ Other functions }}} ) and than option 3 ( 3 - Read dmesg and syslog )
It will download the syslog.txt to outdir folder on XMIR and you can read all log about the startup of the router, on it will have almost all information about the router itself.

My router on this case have the switch mediatek: "mt753x gsw@0: Switch is MediaTek MT7531AE rev 1"

i need help to get know about the correct installation process and if have some firmware with VLAN support on version V24.10?

above that if have some bug to need to be patched with a bugfix to work right... like the conversation about the bootloop and uboot change.

Your chip is Winbond. If you need VLAN, then install the latest custom ones, since your photo does not show which switch.
Try this one.

2 Likes

my switch is Mediatek -> "mt753x gsw@0: Switch is MediaTek MT7531AE rev 1"
what manual i can follow to flash this firmware correctly? (i search and found 3 different ways)

The recommendation is the same as for the user above.
The easiest way is xmir-patcher-main.
Both the official Snapshot and the official 24...rc5 should work for you.
But in order not to write any commands against the death of the router, it is better to flash the firmware, which I gave you a link to above.
Good luck!

P.S
After successful flashing, remember the sequence of actions and help your more indecisive colleague who writes exactly the same questions as you))).

2 Likes

Hi, I have a problem with the AX3000T rd23 router with ESMT NAND flash chip.
I flashed with xmir-patcher-main and everything was fine, then I put openwrt-23.05.5-mediatek-filogic-xiaomi_mi-router-ax3000t-squashfs-sysupgrade.bin
and it also worked. Since it was in English I wanted to put the language pack in Spanish, but after installing it it didn't work anymore.
I can't connect again with xmir-patcher and I don't know what I can do to get it back. The factory reset doesn't do anything. The light is orange and from time to time it turns off and on again.
Please can you help me????

go back to the stock Xiaomi firmware and flash OpenWrt again.

Use TFTP recovery method (or MiWiFi recovery tool) + stock 1.0.49 rd23 firmware

1 Like

Thank you for the reply.

It seems that the problem "vanished" after I kept it in the stock firmware for a while. I left it on and went to work. When I came back, everything was working as intended. Both transfers between wired and WiFi were hitting close to 900Mbps. I use OpenSpeedTest for the tests.

I really don't know what happened. Such a weird thing... :expressionless:

I'll try re-installing OpenWrt again to see if the issue reappears or not. Hopefully not. :sweat_smile:

Hello, i had many bad tries with other stable version and turn back to firmware. Question, anyone tries 24.10.0-rc5 ??

Hi again! I'm here to report a possible issue about the "configuration reset issue" (https://openwrt.org/inbox/toh/xiaomi/ax3000t#basic_configuration_). I had this configuration applied when I installed OpenWRT; and now after a restart, for a my big surprise, my config was gone! Everything was wiped. So I checked using the envs using fw_printenv and I saw another exact variable called flag_try_sys2_failed and it was set to 6, meanwhile flag_try_sys1_failed was set to 0. There is no mention about flag_try_sys2_failed in the Basic configuration section, but it's mentioned on https://openwrt.org/inbox/toh/xiaomi/ax3000t#flash_instructions, 4th step. I'm not really sure if it's literally the same as flag_try_sys1_failed but my config was wiped anyways.

I would like to try myself if flag_try_sys2_failed is also a counter that wipes the data just like flag_try_sys1_failed does, but I can't have a lot of downtime because I selfhost services.

Fow now I will add fw_setenv flag_try_sys2_failed 0 to my rc.local:

sed -i '/exit 0/i sleep 5\nfw_setenv flag_try_sys1_failed 0\nfw_setenv flag_try_sys2_failed 0' /etc/rc.local

Thank you very much. I followed the MiWiFi recovery tool and I was able to recover the router.
I now have the latest version of openWrt installed and working.

1 Like

Congrats with your router's successful recovery!

Don't forget to execute the script to prevent a router bootloop after 6 reboots:

1 Like

It is.
It is present under the hyperlink on the word "caused" in the Basic Configuration section, where the stock bootloader logic + flag_try_sys2_failed flag are explained with reference to the stock bootloader source code.
Feel free to review: OpenWrt support for Xiaomi AX3000T - #452 by alexq

I would recommend leaving flag_try_sys2_failed= 6 so that the stock bootloader will always attempt to load from firmware 0 (sys1), where you're forcing flag_try_sys1_failed=0 via /etc/rc.local.
But feel free to review the bootloader code yourself and select the best approach.

I see! You a right. I will just the custom OpenWRT Uboot. I don't want to deal with this lol

2 Likes

i'm running it. So far i have more issues than RC4

Seems like dnsmasq crashes at random spots...

oh, thank you for share.

I just acquired three new units of the AX3000T in a local sale.

I asked the seller to send the RB23 variant if its in his sale's stock (he said he had a mixed batch of RB03 and RB23).

Fingers crossed for MediaTek switches I guess. I'll let you which switch RB23 is shipping.