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

@Lexeyko you are funny guy :slight_smile:
@Jungle It is good you follow the instructions step by step, but maybe you see the things more complicated than they actually are. Xmir patcher works without any extra knowledge if telenet is enabled or whatever. It is way easier to install openwrt from linux, because patcher is written in python, also cloning from git is a matter of one command, but if you want to go harder way, on windows it should work too, there is this run.bat command in the git.

This is what worked for me (linux ubuntu):

  1. Download xmir patcher
    cd ~/Downloads
    git clone https://github.com/openwrt-xiaomi/xmir-patcher
  2. install python
    sudo apt install python3.10-venv
  3. download xiaomi factory image (http://downloads.openwrt.org/releases/23.05.2/targets/mediatek/mt7622/openwrt-23.05.2-mediatek-mt7622-xiaomi_redmi-router-ax6s-squashfs-factory.bin) and place it into folder xmir-patcher/firmware
  4. run xmir patcher
    cd xmir-patcher
    ./run.sh
    menu 1 - Set IP-address (192.168.31.1)
    menu 2 - Connect to device (install exploit)
    menu 7 - Install firmware (from directory "firmware")
    menu 9 - [[ Reboot device ]]
  5. log in into openwrt
    ssh root@192.168.1.1 (no password yet) and run mentioned commands to disable bricking after reboot:
    fw_setenv boot_fw1 "run boot_rd_img;bootm"
    fw_setenv flag_try_sys1_failed 8
    fw_setenv flag_try_sys2_failed 8
    fw_setenv flag_boot_rootfs 0
    fw_setenv flag_boot_success 1
    fw_setenv flag_last_success 1

And that was pretty much it, I hope I have not forgotten to remove my panties in some of the steps :slight_smile: I have made like 10 reboots since and no brick yet, router works as my main router at home now, running snowflake proxy to help people workaround censorship and I still have a lot of free memory. If you don't have linux, just install live ubuntu onto flash disk and do it from there, because it is way easier to install openwrt from linux.

5 Likes