AX6S Hardware Configuration
CPU: MediaTek MT7622B, 2-core A53
Flash: 128 MB NAND
RAM: 256 MB
https://www.mi.com/global/product/xiaomi-router-ax3200/
Custom OpenWrt Build for the AX6S
Install Linux First; Ubuntu LTS Is Recommended
Install Build Dependencies
|
|
Download the Source, Update Feeds, and Select the Configuration
|
|
-
Select
Target Profile.

-
Select
LuCI -> Applications ->.
| Meaning | |
|---|---|
| [ * ] | Selected |
| [ ] | Not selected |
| < M > | Build as a module |
Common applications:
| Name | Menu Path | Description |
|---|---|---|
| luci-app-adbyby-plus | Services -> Adbyby Plus+ | Provides ad blocking for devices on the same network. |
| luci-app-aliddns | Services -> AliDDNS | Aliyun DDNS resolution. |
| luci-app-ddns | Services -> Dynamic DNS | Dynamic DNS; does not support AliDDNS. |
| luci-app-autoreboot | System -> Scheduled Reboot | Configure scheduled reboot. |
| luci-app-arpbind | Network -> IP/MAC Binding | Bind IP and MAC addresses. |
| luci-app-filetransfer | System -> File Transfer | Transfer files into the OpenWrt filesystem. |
| luci-app-firewall | Network -> Firewall | Firewall configuration. |
| luci-app-frpc | Services -> Frp Client | Frp intranet penetration client. |
| luci-app-frps | Services -> Frps | Frp intranet penetration server. |
| luci-app-guest-wifi | Network -> Guest Wi-Fi | Guest Wi-Fi network. |
| luci-app-nlbwmon | Bandwidth Monitor | All functions under the bandwidth monitoring menu. |
| luci-app-qos | Network -> QoS | Quality of Service; set traffic priorities by class. |
| luci-app-ssr-plus | Services -> ShadowSocksR Plus+ | Proxy plugin selector. |
| luci-app-turboacc | Network -> Turbo ACC | Network acceleration. |
| luci-app-unblockmusic | No menu | Unlock NetEase Cloud Music. |
| luci-app-upnp | Services -> UPnP | Universal Plug and Play (UPnP). |
| luci-app-vlmcsd | Services -> KMS Server | Microsoft product activation server. |
| luci-app-wireguard | Network -> Interfaces | View connection status under Status -> WireGuard Status. |
| luci-app-wol | Services -> Wake-on-LAN | Wake-on-LAN. |
Select the features you need, save the configuration, and exit after all selections are complete.
Download the dl Directory and Build the Firmware
The value after -j is the thread count. For the first build, using a single thread is recommended.
|
|
After the build succeeds, the firmware files are located under ~/lede/bin/targets/mediatek/mt7622/.
| Use Case | File |
|---|---|
| First-time flashing | openwrt-mediatek-mt7622-xiaomi_redmi-router-ax6s-squashfs-factory.bin |
| Upgrade from OpenWrt | openwrt-mediatek-mt7622-xiaomi_redmi-router-ax6s-squashfs-sysupgrade.bin |
Unlocking and Flashing the AX6S
Flash the Redmi Test Firmware
You must flash the test firmware first before telnet can be used for later operations on the AX6S. Test firmware: miwifi_rb03_firmware_stable_1.2.7.bin
Calculate the Telnet Password
The calculation requires the router serial number. You can find it on the label on the back of the device, and it is also available in the router management interface.
Many online calculators are no longer available. You can run the Python script below locally:
|
|
|
|
The output is the telnet password.
Connect to the AX6S by Telnet
First confirm the router IP address. You can check the LAN address from the management interface of the network the router is connected to. For example, my router IP address is 192.168.0.121. Open a terminal and run:
|
|
Username: root
Password: the password calculated above
After logging in successfully, run:
|
|
After the commands succeed, SCP will be enabled. Use SCP to upload the firmware to the router.
Upload the Firmware
On Windows, connect to the router with WinSCP. Upload the compiled file openwrt-mediatek-mt7622-xiaomi_redmi-router-ax6s-squashfs-factory.bin to /tmp/ and rename it to factory.bin.
Flash the Firmware
Run the following command in the telnet session:
|
|
After flashing, the router will reboot. The default information after reboot is:
IP address: 192.168.1.1
User: root
Password: password
Recovery After Flashing Problems
-
Download the Xiaomi router repair tool:
https://bigota.miwifi.com/xiaoqiang/tools/MIWIFIRepairTool.x86.zip -
Usage notes:
AX6S is not listed in the supported models, but it worked in my test. The PC repair tool needs system privileges to change network adapter settings, so antivirus software must be disabled before use.
https://web.vip.miui.com/page/info/mio/mio/detail?postId=19134127&app_version=dev.20051