Xiaomi Mi WiFi Router 3
802.11ac
step-by-step
SSH
TFTP
Router firmware is not the same as upgrading through a standard MiWiFi interface, but it's a complete software replacement, which gives you access to advanced settings, support. VPN-But with the freedom comes the responsibility: a mistake at any stage can deprive you of a working device. So we're going to look at not just the "how" but the "why" each step is important, and what to do if something goes wrong.
Before you start, consider that Xiaomi does not officially support third-party firmware installation and can block the device if you detect modifications. All actions you perform at your own risk. However, with the right approach, the risks are minimal - the main thing is to follow the instructions and not miss the verification steps.
1. Firmware Preparation: What to Do Before Starting
The first and most important step is preparation, where many people make mistakes that later lead to problems, starting with hardware and software.
β Check the router model. The box or sticker under the device must indicate Mi WiFi Router 3 (code) R3). Confusing him with Mi Router 3G or Mi Router 3C No, no, no, no, no, no!
β Download the correct firmware. Mi Router 3 is relevant:
- π Official firmware (if you need to return the runoff) β taken from the official website of Xiaomi.
- π Padavan is the most popular custom firmware with Russian interface and support for OpenVPN, WireGuard, Samba.
- π OpenWRT β for advanced users, requires manual configuration.
- π Breed Bootloader β an alternative loader that simplifies the installation of firmware.
β οΈ
β οΈ Warning: Mi Router 3 and Mi Router 3 Pro firmware are incompatible (MT7621 vs MT7620A), Installation of an inappropriate version will cause irreversible damage to the downloader.
β Prepare the equipment:
- π Uninterruptible Power Supply (UPS) or Full-charge laptop β a power outage during firmware is almost guaranteed to kill the router.
- π₯οΈ Computer with Windows/Linux and installed drivers for the network card.
- π§ Screwdriver (may be needed to disassemble the body if restoration is required through the UART).
- π‘ Ethernet cable (Wi-Fi is not suitable for firmware!).
β Save your current settings. If you plan to go back to stock firmware, export the configuration through Settings. β System system β Backup in the MiWiFi web interface.
Download the firmware for your model|Check file integrity (MD5-sum)|Disable Antivirus/Firewall|Connect the router to the PC via cable|Prepare a backup power source-->
2. Method 1: Firmware via web interface (the most secure way)
This method is suitable for installing official updates or Padavan (if the bootloader is not blocked), the main advantage is that you do not need to disassemble the device or work with the command line.
πΉ Step. 1. Connect to the router via cable (Wi-Fi off!). Go to the web interface at the address 192.168.31.1 (The default login and password is usually a combination admin/admin or a tied Xiaomi account).
πΉ Step 2. Go to the Update section:
- Open the Settings. β Firmware update.
- Click βSelect Fileβ and specify the path to the downloaded firmware (the file must be in.bin or.trx format).
- Confirm the start of the process.
πΉ Step 3. Wait until it's done. The router will restart 2-3 times, it will take 5-10 minutes!
β οΈ
β οΈ Note: If the router doesn't load after firmware is installed (only the orange indicator burns), then the firmware is not suitable for your board revision. R3D (for a revision with 512 MB of memory; or R3 (256 MB).
π‘ If the web interface does not accept third-party firmware files, then the bootloader is blocked. SSH (see next section).
π‘
Before firmware through the web interface, reset the router to factory settings (Settings) β Additionally. β Resetting: This will reduce the risk of configuration conflicts.
3. Method 2: Firmware through SSH (power-user)
This method is needed if:
- π The bootloader is blocked and does not accept third-party firmware through the web interface.
- π You need to install Breed Bootloader for further experiments.
- π οΈ Recovery is required after a failed firmware.
πΉ Step 1. Turn it on. SSH-access:
- Install the Mi WiFi app on your smartphone (available for Android and iOS).
- Connect to the router through the application.
- Go to Settings. β Additionally. β Permission. SSH (It may be called the Developer ModeΒ»).
πΉ Step 2. Connect to the SSH:
- Use a PuTTY (Windows) client or terminal (Linux/macOS).
- Enter. IP router (192.168.31.1), port 22, root login and password (by default - a password from a web interface or an empty one).
πΉ Step 3. Download the firmware to the router:
cd /tmp
wget http://[link to firmware]/firmware.binπΉ Step 4. Install firmware:
mtd write /tmp/firmware.bin firmware
rebootβ οΈ
β οΈ Note: If the error appears after the mtd write command Could not open mtd device: firmware, then the partition is blocked).
π Alternative method (if wget does not work):
- Download the firmware on your PC.
- Use it. SCP To transfer the file to the router: scp firmware.bin root@192.168.31.1:/tmp/
Method 3: Firmware through TFTP (repair)
This method will come in handy if the router does not load (flashes orange or does not respond to a reset). TFTP, which allows you to download firmware directly to the device memory.
πΉ Step 1. Set up. TFTP-PC-server:
- Download and install. TFTP-server, Tftpd64 Windows).
- Place the firmware file (.bin) in the server folder (usually C:\TFTP-Root).
- Set up. IP-PC address at 192.168.31.100 (mask 255.255.255.0).
πΉ Step 2 Connect the router to the PC via cable (to the port) LAN1).
πΉ Step 3: Start the router in Recovery Mode:
- Shut down the power.
- Press the Reset button (on the back).
- Without releasing the button, connect the power.
- Hold the Reset for 10-15 seconds until the indicator flashes orange quickly.
πΉ Step 4. Send the firmware through TFTP:
- V Tftpd64 Check that the server is running.
- The router will automatically request the file miwifi_r3_firmware.bin (Rename your firmware accordingly!).
- Wait for the transfer to be completed (a message about the successful download will appear in the server logs).
πΉ Step 5. Wait for the reboot. If it goes well, the router will boot with the new firmware.
What to do if TFTP doesn't work?
5. Breed Bootloader Installation: Universal Bootloader
Breed is an alternative bootloader that allows you to install any firmware without the risk of blocking the device, and its installation is recommended before experiments with OpenWRT or Padavan.
πΉ Step 1 Download Breed for Mi Router 3:
- Official repository: breed.hackpascal.net.
- Select the version for MiWiFi R3 (file breed-mt7620a-xiaomi-r3.bin).
πΉ Step 2. Flow through TFTP or SSH:
- If the router is working, use the method. SSH (see section 3).
- If it doesn't work, the method TFTP (see section 4).
πΉ Step 3. Go to the Breed interface:
- After installation, connect to the router via cable.
- Open it in your browser. 192.168.1.1 (login: admin/admin).
- In the Breed interface, you can choose the firmware to install (.bin or.trx).
β Benefits of Breed:
- π Possibility of rollback to any firmware.
- π‘οΈ Protection against brickingΒ».
- π₯ Convenient web interface for downloading firmware.
π‘
Breed is the best way to protect your router from bad firmware, and even if something goes wrong, you can always download the working version through its interface.
6. Selection of firmware: comparison of official, Padavan and OpenWRT
Each firmware has its pros and cons, and the table below shows a comparison of key parameters:
| Parameter | Official (MiWiFi) | Padavan | OpenWRT |
|---|---|---|---|
| Support for VPN | β No. | β OpenVPN, WireGuard, PPTP | β Any protocols |
| AdBlock | β No. | β Built-in (dnsmasq) | β Through plugins. |
| Support for USB support | β No. | β NTFS, ext4 (printer-drive) | β Complete (Samba, DLNA) |
| Stability | β Great. | β Good (regular updates) | β οΈ Depends on the build. |
| Russian | β Yes. | β Yes (full translation) | β Partially. |
π‘ Recommendations for selection:
- π For home use with minimal settings β official firmware.
- π‘οΈ For extended functions (VPN, Ad blocking) - Padavan.
- π§ For experimentation and customization β OpenWRT (will require configuration via console).
β οΈ
β οΈ Note: OpenWRT firmware for Mi Router 3 is often collected by enthusiasts and may contain bugs. Check forum reviews before installing (e.g., for example, for feedback on forums, 4PDA or OpenWRT Wiki).
7.Recovery after failed firmware
If the router doesn't load (orange light is on, doesn't respond to ping), don't panic. 90% of the time, it can be restored.
πΉ Method 1: TFTP (Repeat the procedure with the correct firmware.
πΉ Method 2: UART (advanced):
- Disassemble the router body (carefully so as not to damage the antennas!).
- Get in touch. UART (usually GND, TX, RX, 3.3V).
- Use PuTTY or Screen (Linux) to access the console.
- Enter commands to flash through tftp or flash.
πΉ Method 3: Back firmware through Breed (if installed):
- Go to the Breed interface (192.168.1.1).
- Select a backup or stock firmware.
- Press Upgrade and wait until it is completed.
β What not to do:
- π Do not connect power if the body is disassembled (risk of short circuit!).
- π₯ Do not use a soldering iron without experience (you can damage the fee).
- β‘ Donβt try to flash firmware from other models (even Mi Router). 3C won't fit!).
Where can I find help if nothing is working?
8. Frequent errors and their solutions
Even with the right instructions, there can be problems.
π΄ Error: "Invalid firmware" (when downloaded via web interface).
- π Reason: Inappropriate firmware version or blocked bootloader.
- π§ Solution: Try to sew through SSH or install Breed.
π΄ Error: Router fails to respond after firmware (brick).
- π Reason: Interrupted process or incompatible firmware.
- π§ Solution: Restore through TFTP or UART (see section 7).
π΄ Error: Wi-Fi does not work after installation Padavan/OpenWRT.
- π Reason: Incorrect settings of the region or drivers.
- π§ Solution: Go to the wireless network settings and select Russia region (or your country), channel - Auto.
π΄ Mistake: I can't connect to the SSH post-fix.
- π Reason: New firmware is disabled SSH port-change.
- π§ Solution: Check the settings in the web interface (Network) β SSH) Or reset the router to factory settings.
π‘ Tip: If the router is unstable after firmware (often restarts, loses connection), try it:
- Reverse to the previous version of the firmware.
- Reset the settings to factory.
- Check the power supply (unstable voltage can cause failures).