Xiaomi mi wifi 3 support

Really? But isn't WPA3 coming out (like in OpenWRT 19.01)? Kinda pointless to keep it if the device doesn't support WPA3 officially nor unofficially though. Its a shame Xiaomi decided to go with a crippled U-Boot that restricted a lot of modding capabilities, or we really have a great device.

Also, the router repeating capability is quite bad (on the official firmware), I've only managed 2Mbps (from 30Mbps direct) even under extremely close distance, which is impossible for anything other than light browsing. Can I expect something better with unofficial firmware though?

is it possible to share build scripts for 19.07.3 ?

Hello everyone!

I started hunting for something for the Xiaomi Mi Router 3 because I would like to use its USB port for access via NFS, but the X-WRT does not have it built in.

Apparently the X-WRT maintainer tried to include official support through this PR: https://github.com/openwrt/openwrt/pull/597

If you install the newest version of X-WRT you will see that the kernel used is 5.4.61: Linux X-WRT 5.4.61 # 0 Sat Sep 5 18:58:19 2020 GNU / Linux mips

And even several packages are updated. So it works, but I don't know why the support doesn't exist.

Guys, we don't need to invent the wheel. Execute further commands in Linux:

git clone git://git.openwrt.org/openwrt/openwrt.git openwrt-mir3
cd openwrt-mir3
./scripts/feeds update -a && ./scripts/feeds install -a
git rev-parse --short HEAD

Put mir3-support.patch to git cloned openwrt-mir3 directory

patch -p1 <mir3-support.patch 
make menuconfig

In menuconfig select:
Target System (MediaTek Ralink MIPS)
Subtarget (MT7620 based boards)
Target Profile (Xiaomi Mi Router R3)
and Luci and whatever packets you want, NFS or other. Than click save, push Enter and exit menuconfig.

make -j5

After half an hour you will find your build firmware in "bin" directory.

Or you can try prebuilt firmware link
How to install/flash link
Just know, that by default after you install firmware, wifi is disabled and Luci service is not started.
So you must connect through LAN, SSH to using Linux or Putty, make password for Lucy, start Luci service, enter web interface, start wifi, set wifi password.
Information taken from Link

ssh -root@

BusyBox v1.31.1 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 OpenWrt SNAPSHOT, r14390-7716a43092
root@MiR3:~# cat /proc/cpuinfo 
system type		: MediaTek MT7620A ver:2 eco:6
machine			: Xiaomi Mi Router R3


There is no official MIR3 OpenWrt support, because of the copyright of NAND driver code for this device and will not be probably.


I will like to try flashing prebuilt image,any flashing tips? (Steps). Can u please share some info.

For those interested, I had asked on x-wrt's github to include support for NFS.

The project maintainer, @ptpt52 said that it was enough to configure and passed these steps:


Prepare the compilation environment.


git clone https://github.com/x-wrt/x-wrt.git
cd x-wrt
./scripts/feeds update -a
./scripts/feeds install -a

cp feeds/x/rom/lede/config.ramips-mt7620 .config

make menuconfig
#select kmod-nfs and nfs-kernel-server


I had already cloned the x-wrt repository and done the rest of the steps, but without the config file to import the settings ready for menuconfig I was getting lost in what was needed.

With the file in question it's easy.

I'll try.

Wish me luck, LOL!

PS: Thank You @ptpt52


i have the same problem ... can anyone help to solve this problem??

First you can try this recovery proceture:

  • Download miwifi_r3_all_55ac7_2.11.20.bin
  • Rename downloaded file to miwifi.bin
  • Put miwifi.bin into a USB flash drive (must be FAT/FAT32)
  • Plug said USB drive to router's usb port
  • Unplug router's power
  • Press reset button and then re-plug the power
  • Keep pressing reset button until the orange status LED starts blinking
  • wait until the LED turns blue.

If that doesn't work https://openwrt.org/toh/xiaomi/mir3, see paragraph " Recovering from Softbrick". You will have to buy CP2102, open you router and connect cables to hardware and follow the whole procedure.

I have done it and it doesn't work ... now the way it turns on doesn't turn on only lan port 1 one is on ... ttl port is also not working

1 Like

If none of these works, you can change ROM chip, buy and solder SPI W25Q128FVSIG. Use the same source https://openwrt.org/toh/xiaomi/mir3, paragraph "SPI Flash Mod" also russian forum, use google translator https://4pda.ru/forum/index.php?s=&showtopic=837667&view=findpost&p=69926582

@romandas Ty for the prebuild firmware, i successfully flashed my MIR3.
I have only one question, i need some packages, like kmod-usb, but the repository have only the version 5.4.67. What i can do? Re-Compile the kernel with latest version of files or have a better approach?

Obs.: I would like to avoid the recompile part, my ISP use some "Hardware method" to authenticate and when i flashed from padavan -> stock -> openwert, i have lost internet connection for one day and need to call they tech support to "reset" they config.i don`t now if a sysupgrade can cause this issue again.

Yes. You have to rebuild firmware yourself, because you cant change kernel.

Ok, ty, rebuild and do sysupgrade?

Yes, openwrt-ramips-mt7620-xiaomi_miwifi-r3-squashfs-sysupgrade.bin via browser

I have selected the kmod modules ( * - built-in) and flashed again, and the result it's the same before the flash, kmod modules don't installed and same kernel version,
It looks like it wasn't even done. What am I doing wrong?

I don't know. Do a research, solve and post here for us. Good luck.

Some type of "silent error" because some package i have installed, then i do a factory reset (firstboot), reboot and sysupgrade.
Thank you anyway.

I have compiled latest stable OpenWrt 19.07.4 with kernel 4.14. We couldn't install some packages before, because it was nightly snapshot OpenWrt firmaware.

How to install link.

Hey @romandas thank you for sharing your rebuild and the link how to install. - I flahed my a very long time ago. I think used the tool prometheus. Could you maybe give me a feedback what's the best way to continue? Flashing to original and back or is it possible to switch directly? I logged in again and here are my data information from status tab:

Xiaomi Mi Router R3
MediaTek MT7620A ver:2 eco:6
Firmware Version
OpenWrt SNAPSHOT r7215+43-a8d516c4a7 / LuCI Master (git-18.156.40018-80f1877)
Kernel Version
Local Time
Fri Jun 29 22:16:39 2018
0h 5m 32s
Load Average

Your router runs OpenWrt, but I don't know, what prometheus is, what modifications it did make. So safest way is to go back to original ant start the procedure. But If you aren't afraid to brick you router, you can try to upgrade via browser with openwrt-ramips-mt7620-xiaomi_miwifi-r3-squashfs-sysupgrade.bin and select not to keep settings. Your wifi will not be working at once, so you must connect via lan cable and setup if everything is ok.