Xiaomi Mi Router 3
The Mi Router 3 is a low cost consumer router from Xiaomi. It includes both a 2.4GHz and 5GHz radio and 4 external antennas.
The current flashing process requires being on firmware version
2.11.20. If your router shipped with a different version, or if you upgraded it, you will need to downgrade before you flash a custom firmware. Simply download the 2.11.20 firmware file and proceed with the following instructions.
- Save the firmware file as
miwifi.binon a FAT32 formatted flash drive and insert it into the router's USB port
- Hold the reset button while plugging in the router
- Once the LED starts flashing orange, release the reset button
- You must be on firmware version
2.11.20. Refer to the downgrading section if you need to downgrade. You can check your firmware verison in the web ui of the router.
rootfs0.binof the firmware you wish to flash
- Complete the initial setup of the router
- Log in to the router and look at the url for
- Load the following 3 URLs in your browser one after another, replacing
<STOK>with your 32 character code
- Next, load this URL in your browser, replacing
<STOK>with your 32 character code, replacing
<OLDPWD>with the admin password you set for the router in step 1, and replacing
<NEWPWD>with the desired SSH password
- Now you may scp over the
rootfs0.binto the router, entering the new password you just set when prompted:
- Log in to the router via SSH:
- Run the following commands:
After each one, you should get the response
If you don't get this response, it is safe to retry until you do.
You should get the response
scp lede-ramips-mt7620nand-miwifi-r3-squashfs-kernel1.bin firstname.lastname@example.org:/tmp/ scp lede-ramips-mt7620nand-miwifi-r3-squashfs-rootfs0.bin email@example.com:/tmp/
nvram set flag_last_success=1 nvram set boot_wait=on nvram set uart_en=1 nvram commit mtd write /tmp/lede-ramips-mt7620nand-miwifi-r3-squashfs-kernel1.bin kernel1 mtd write /tmp/lede-ramips-mt7620nand-miwifi-r3-squashfs-rootfs0.bin rootfs0 reboot
In the event of a bad flash, it may be possible to revert the device back to stock.
TODO: Add comprehensive list of recovery methods / Tidy up
- Stock -> stock = try downgrade instructions
- LEDE to stock via
fw_setenv flag_last_success 0and reset button
Using Console Access
- Save kernel0.bin from here to a TFTP server
- Place the
2.11.20firmware .bin on a FAT32 formatted flash drive and connect it to the router
- Boot the router and select option 1 "Load system code to SDRAM via TFTP."
- Set an IP for the router and enter the IP of the TFTP server
- Enter the name of the file (kernel0.bin)
- Wait for it to reboot
- It will print something like the following - press and hold reset unitl the LED flashes orange and it will revert back to stock:
[ 4.550000] Check for USB recovery... [ 4.580000] Both systems are corrupted... Entering recovery mode starting pid 81, tty '': '/etc/rcS' Press reset button to enter USB recovery