Padovan firmware. Flashing Xiaomi Mini router with Padovan firmware. ︎ conclusions ◀


Hello everyone, today we are reviewing a swimsuit from a router again :) But it’s unusual. Let's start with the fact that this router is not sold outside the Chinese market and I literally forced the store to add it to the range. What's so special about it? First of all, I was captivated by its appearance. Further, in the description it was listed as gigabit and, judging by the meager information obtained from Chinese forums, it should have been suitable for the requirements of the firmware “from Padawan”. What actually happened and why and what language barriers I had to face - I’ll tell you under the cut, welcome :)

︎ DOSSIER ◀

● Gee Turbo 2.0 signal core technology, promising increased coverage up to 300 meters
● 3 times faster than regular router powder(wifi), 10 times faster than regular routers(ethernet).
● 3 dual-band antennas, 2.4GHz 2x2 MIMO, 5GHz 2x2 MIMO
● Dual band b/g/n, 802.11 a/n/ac 2.4GHz 2x2 300Mbps, 802.11 a/n/ac 5GHz 2x2 867Mbps
● Gigabit network
● Micro SD slot
● USB 2.0
● 1 WAN, 2 LAN

︎ PHOTOS FROM THE STORE ◀

If you allow, first I will show marketing photos from the manufacturer/store, then my own.

In my opinion, the appearance of the eyes is pleasing.
Now a few slides describing the capabilities:

Additional Information

︎ WHAT IS SO EXPENSIVE?! ◀

Wait, the indignant reader will ask, why is it so expensive, gold, or something? No, it's not gold, it's made of anodized aluminum, like iPhones/MacBooks. Moreover, this is not painted aluminum, but just such an alloy, I tried to saw it with a file, the paint did not come off. So why is it so expensive? Let's figure it out:
Product Weight: 0.538 kg
Package Weight: 0.800 kg
Product Size (L x W x H): 11 x 192.6 x 2.3 cm
Package Size (L x W x H): 13 x 21 x 5 cm
First of all, we pay for a parcel weighing 800 grams. Alas, beauty comes at a price. Further, the router has LNAs (amplifiers), which also increase the cost of production. Well, gigabit, it also requires more expensive chips and transformers. Well, dual-band, where would we be without it? Is it worth it? Let's try to find out.

Well, okay, that's sorted out, now my own photos.

︎ OWN PHOTOS ◀

The router arrived in a box like this:


Having torn the packaging a little on the side, I saw the logo of the HiWiFi brand - “Gee”


Box, top view. Girbest threw a crappy quality adapter into the box, but it’s still nice.


She's the one below.


I took off the lid of the box, the boxes with small things were neatly laid out, the antennas of the router were sticking out, the router was covered with instructions.


We remove the instructions.


Let's turn it over :)


Delivery set (and they could have put a gold patch cord!):


Instructions in Chinese




Hero of the review.


Can stand vertically (wall mount lugs are not provided)


The antennas bend 90 degrees and rotate 180 degrees.


A trick from the Chinese - triangular screws.


But nothing is impossible; a slotted screwdriver with a width that matches the edge of the triangle did the job.


The antennas do not unscrew.


And here is the board, our beloved MT7620 :)


The reverse side of the moon board.


Comparisons that suggest themselves:
1) smartphone


2) xiaomi 10400


Let's weigh:


With a connected console.

︎FIRMWARE FROM FACTORY◀

Note: if the screenshots are English, this is an auto-translator from Chinese in google chrome.

Welcome screen:


Connect the Internet to the router


Setting the connection type


Suggestion to use the Chinese miracle application for a smartphone:


Setting a password for the admin panel:




Success!


After which the main screen of the router, familiar to many (those who have read my previous reviews), appears. It seems that the Chinese have some kind of single axis; this issue will need to be studied.


Additional settings:




In general, the firmware is interesting, it can support some applications, but they are mostly intended for the Chinese market and they wouldn’t give us any bonuses anyway. But it was also funny, I really liked the title:

︎ HACKING ◀

As it turned out, the router is fully fenced and you can’t just upload firmware to it. Of course, with the help of a programmer this can be done in 10 clicks, but since not everyone on Muska has purchased them yet, we will look for a popular method.
To do this you need to learn Chinese.
Joke. But almost necessary. To update the firmware, you need to change the bootloader to breed (preferably) and replace the standard one, but the developers have provided almost everything: the firmware is either downloaded from the update server or uploaded through the standard web interface, but both the bootloader and the firmware are protected by an electronic signature (digital signature) and a leftist I can’t slip it in: (While studying the firmware by brute force, I identified a section with an electronic digital signature, but I couldn’t figure out how to fake it, here it is:


And here is the digital signature itself:

Therefore, we will try to enable developer mode, a mode in which ssh to the router is available.
We go into the router, register a hiwifi account for ourselves, and try to enable developer mode.



But to turn it on, you must have...

Additional Information

CHINESE SIM!!!


To which an SMS with an unlock code will already fall. Where can I get it, and even for all Muscovites? And then I decided to try technical support. But technical support is available exclusively through a Chinese program similar to either Twitter or Viber called WeChat. Register there and write to HiWiFi technical support (account: jiluyou)
We write a cart:

Skylar technical support agent joins the chat:
Tell us your Mac address and we will unlock developer mode for you, but you will be void of warranty. Haha, with guarantee, yeah.

A little time passed and I was informed that my developer account had been activated.

Next came instructions on how to enable a developer account (a person with a cog-brain, this is apparently a developer):

Next we go where we were sent:






Hurray! Half the job is done.
I hope that after my reviews, everyone already knows how to use ssh?!
We log into the router via ssh, port 1022, IP 192.168.199.1, admin/admin:


We're in the system! Next, we prepare a USB flash drive with two files - breed and the padawan firmware that I prepared.

By the way, guys, I finally decided to try to make a site on routers, I called it nothing more or less - :)
I propose to discuss almost all models of routers, firmware from Padavan, OpenWRT, Zyxel, InvizBox (firmware for nexx 3020 out of the box can handle tor, a kind of Internet condom).
You can also always find daily fresh firmware builds from Padavan; the following routers are currently supported:

HiWiFi 5681
NEXX WT3020
VONETS all 300 Mbit
TCL-T1
And, exclusive, the alpha version of the firmware for NEXX WT1520, at the moment wan and usb do not work, but there are hopes to fix it.

So, we logged in via ssh, using the login password admin/admin, let’s see how our flash drive was identified:


Ok, sda1.
Create a directory for mount point:

We mount the flash drive, look at what files are on the flash drive:


We flash the bootloader, enter letter by letter, otherwise it will be excruciatingly painful.


Flashing the firmware from the Padawan:


Actually, that's all. Turn off the power, remove the flash drive, wait for it to load. And so:

︎ A bummer you weren't expecting ◀

And then such a sour bummer awaited me:


WOW-WOW-WOW, what else is 100 Mbit, we have a gigabit router!
As it turned out, it really is a gigabit router, but... With one gigabit port. C'est la vie.
Having drunk a strong alcoholic drink in one gulp, I began to think. What to do? Well, it’s bad, of course, but on the other hand, if you have a 100Mbit provider, then it’s okay, gigabit LAN, everything is fine.
If your provider provides Internet at speeds exceeding 100 Mbit and you do not have a gigabit local area connection, then all is not lost. However, if you have both a gigabit local network and a gigabit provider - it’s a problem, look for another router, we’re expecting a wave of new devices in the fall on the 7621 chip.

︎ WHAT IS THE POWER, BROTHER? ◀

So, let's return to the mega feature of this router - antenna amplifiers. At work, I compared the signal strength of the points, Cisco Wifi for a couple of kilobucks and this one. Guess who has the stronger signal? Our networker was shocked and decided to take this device for himself :) The router beats MUCH, forgive me for such expressions. Screenshot from an Android phone:
2.4 GHz:


5GHz


Nato speed test (IPoE):



In my opinion, it’s quite decent; in peaks it downloads at a speed of 51 megabytes per second.

︎ PROS ◀

+ Gigabit (although not entirely honest)
+ Fierce strength of wifi signal
+ Appearance
+ Alternative firmware
+ Slot for memory cards (despite the fact that I have not yet figured out how to embed this into the firmware)

︎ CONS ◀

- Not all ports are gigabit
- Complicated firmware method
- Price, due to the heavy router case and overall box.

︎ CONCLUSIONS ◀

I spent a lot of time persuading the manager to add a router that no one was selling outside the Chinese market and had high hopes for this router. On the one hand, he justified the trust, on the other, there are shortcomings.
But in general, I really liked this router, and, with the caveat of the price and inferior gigabit capacity (as well as a rather tricky way to decouple from the Chinese firmware), I can safely recommend it to everyone (but put it out of the way).

That's all, I wish everyone a good, stable Internet and look forward to everyone interested at the routerclub;) See you again, friends!

And yes, if this review helped you, feel free to give the review a plus, this is the best gratitude.

Alternative firmware for routers was, is and will always be popular. Especially when proprietary software from the manufacturer has flaws and shortcomings.
One of the striking examples is the firmware from Padawan for Asus and Xiaomi. It is more functional than proprietary software, more stable and reliable, for which it has thousands of fans around the world.
In this instruction, I want to go into detail on how to set up IPTV television using Padawan firmware.
Moreover, this issue is becoming more and more relevant, as digital television services from various providers are increasingly gaining ground from classic terrestrial TV.

In order to set up digital TV on Padavan firmware, you need to open the web interface of your router and go to the “WAN” section, where the Internet connection settings have already been made:

Scroll the page to the very last subsection “Port isolation and VLAN filtering”. Most digital television operators (Rostelecom, Beeline, Dom.ru, TTK) require one of the LAN ports to be allocated for the set-top box to operate. It is disconnected from the general group and configured as if parallel to the WAN port. This is done simply. In the “IPTV STB port (WAN bridge)” field, select the LAN port in which the set-top box will be connected.

In some cases (this scheme is initially configured on the telecom operator’s equipment), you must specify a VLAN ID for the TV to work. Then you need to move the “Filtering VLAN tagged traffic” switch to the “On” position.

Below you will see additional fields for entering VLAN for the Internet or digital TV. As a rule, most often you do not need to specify a VLANID on the Internet. But for TV, in the “VID” field, enter the identifier that you previously learned from technical support. In the “PRIO” field, it is advisable to indicate priority 4 or 5.

At this point, the IPTV settings on the Padawan firmware for ASUS and Xiaomi routers are usually completed and you can connect a TV set-top box. If suddenly the menu loads, the list of channels loads, but the channels are not shown, try additionally enabling “IGMP Snooping”. This is done in the section LAN >> IPTV:

Find the line “Enable Multicast routing” and move the slider to the “On” position. Below there is also a section “Multicast traffic - Ethernet switch”, and in it the line “Enable IGMP Snooping”. In it, you also need to move the slider to the “On” position. Click the “Apply” button.

If the TV set-top box cannot obtain an IP address, try going to the section LAN >> Routes:

Slide to On position "Use DHCP routes" slider. Click the "Apply" button.

The topic of firmware for the Xiaomi Mi Router is very relevant for several reasons. The main thing is that its entire interface is in Chinese without any alternative. Therefore, in order to more or less understand what is written in the stock firmware, you need to install an additional translation extension in the browser. You can use it, but it's inconvenient. It would seem, why these troubles? Buy yourself another router with Russian localization and use it. But the low cost with the great technical indicators and functionality of the router is captivating. Analogs from other manufacturers sold here cost a thousand or more rubles more.

What are the options?

As you understand, it is impossible to constantly use the Chinese version. Therefore, I decided to make this guide in which I will talk about two options for flashing router firmware:

  • To official English
  • For Padavan or Asus version

This instruction is suitable for all models with a USB port - the Xiaomi Mi Router 3 firmware is installed in exactly the same way as the Mini.

Official firmware for Xiaomi Mi WiFi 3 router in English

So - how to translate Xiaomi Router 3 into English and no longer bother with these endless spiders.

The procedure is simple:

  • Download Xiaomi English firmware
  • Download it to the router
  • Configure again in the English version

Firmware for Xiaomi Mi WiFi Router from Padavan for Asus

Another solution for the Chinese language in the control panel is to install a custom version of the firmware on the Xiaomi router. The most successful firmware today is the Padavan firmware, or as it is also called from Asus, named after the company for which it was originally made. The installation process is not the easiest, but if you do everything correctly, it will be no problem if you know how to use a computer at least a little. Therefore, in this article I tried to outline in as much detail as possible the entire process of updating the router software using the example of the Xiaomi Mini model for your convenience.

To achieve the final result, we will need to flash Xiaomi Mi Router several times:

  • Install original XiaoMi firmware for developers
  • Install Pandora firmware
  • Install Asus firmware

Firmware for developers

Let's begin. First of all, go to the Xiaomi downloads page in the “ROM” tab and download the “ROM for” package for your model (Mini, 3, 3C, 3G, etc.) from the right column - this is the official version of the software for developers. With its help, we can manage the deep firmware of the router.

Next, go to the router’s admin panel at , to the “General Settings > System Status” section and select the downloaded file for the firmware. In my screenshots you will see translated interface pages through the Google translator built into Chrome - this is the most convenient way to use stock firmware. When working, for convenience, use a cable connection from the computer to the Xiaomi router - you will not need to reconnect to it every time you reboot.

The router is being re-flashed - at this time it cannot be disconnected from the power supply.

Download the necessary files and programs

After rebooting the router, we again configure it to connect to the Internet from your provider and go to the Router Club repository, where craftsmen regularly post the latest Padavan firmware and not only for several different routers. Scroll to the bottom of the page and go to the folder with the latest date.

In this folder we find another one - xrm_base, it contains the necessary firmware from Asus, download it to your computer.

In your Xiaomi Mi Router personal account, we find your account number - it is to the right of the menu next to the profile photo.

Everyone’s login will be “root” - the password will be individual.

Click on the button with hieroglyphs to the right of the password and then again in the pop-up window, also the right button - and download the file for connecting via the SSH protocol to the Xiaomi Mi Router.

It must be placed on a clean, FAT32 formatted flash drive with a size of 4 to 8 GB.

And finally, the last thing is to download the software package from our repository for Asus firmware.

Firmware from Pandora

Let's get started with the actual firmware. We take out the power cable from our router, take the flash drive and insert it into the USB connector on the Xiaomi router.
Next, press the “Reset” button with a pin and insert the power cable. We wait until the LED flashes yellow and release the “Reset” button. If everything is normal, the LED will change color to blue. If it turns red, then repeat all manipulations with the flash drive and router from the beginning.

After that, run the hfs.exe program from the same archive and add the PandoraBox.bin file to it. This is a virtual server that we launch on the computer and from which we upload the firmware to the router.

The next step is to launch the putty.exe program from the same archive - this is an SSH client that will allow you to connect to the “internals” of Xiaomi. We enter the router IP in the address bar - 192.168.31.1. Leave the remaining values ​​as they are and click the “Open” button.

A new dialog box will open, where we will first be asked to enter the login and password for the router - remember the information that we received in our account on the Xiaomi website. Login - “root”

and the password is the one the site gave you. No characters will be displayed when entering your password, so make no mistake. If the connection is successful, a greeting from the Chinese will appear.

Next, enter the command “ cd /tmp" - to get into the folder with the temporary files of the router.
After this we give the command “ wget LINK_TO_FILE_FROM_PROGRAM_HFS.EXE". In my case it looks like “wget http://192.168.151.1/PandoraBox.bin”

Next, you need to determine where exactly in your specific device to install the firmware. This is done with the command “ cat /proc/mtd". After it, a list will appear in which you need to find one of the values ​​- “firmware”, “OS1” or “FirmwareStub”. There will be exactly one of them that we will use. I got "OS1"

Now we run the command that will flash our router to the Pandora version:

mtd -r write /tmp/PandoraBox.bin OS1

Instead of OS1, as you understand, you may have firmware or FirmwareStub

The router will start flashing and then reboot.

Xiaomi firmware from Asus (Padavan)

Now that Pandora is up and running, we launch HFS.EXE again and similarly add the Asus firmware file to it - the one that was downloaded at the very beginning from the RouterClub repository.

Downloaded. Now we restart the PUTTY.EXE program again and connect to the router again, now using the new IP, which is set in the new firmware - 192.168.1.1

Here we need to log in again, for this we use the login “root”, password “admin”.
Next, go to the directory again with the command “ cd /tmp" and upload the firmware file from Padavan - Asus - " wget http://192.168.1.151/FILE_NAME.trx"- we again take the link from the HFS program.

After that, download the firmware with the command “ mtd -r write /tmp/FILE_NAME.trx firmware"- please note that here we already use the “firmware” command at the end

And we wait for the router to reboot, after which we type its IP in the browser - 192.168.1.1, which will take us to the admin panel. For authorization we use the login-password pair admin-admin. To connect to the router via WiFi to the “Router Club” network, use the password “1234567890”.

The reward of our long labors will be a new admin panel with many additional features that were not in the stock firmware. For example, the function of connecting mobile modems and distributing a guest wifi network at a frequency of 5 GHz will now be available, and this is only the very minimum of changes that have occurred.

I hope everything worked out for you too!

For greater clarity, here are two video tutorials that show the entire process step by step. By the way, installing Podovan firmware on Xiaomi Mi Wi-Fi Router 3 and 3G differs from Mini - pay attention to this!

Padavan for Mi Router 3/3G

For Xiaomi Mini

How to Return Official Firmware to Xiaomi Mi Router 3?

I have been using a Xiaomi router for quite a long time on different firmware, but for many blog readers the process of installing a third-party version of the software is too complicated, so more often I still get asked questions about how to work with Xiaomi routers in the regular official version of the admin panel. Therefore, I decided to return everything back and roll back the device to the original Chinese version in order to create a series of articles about setting up the router, as they say, “out of the box”.

Of course, I will share with you my experience on how to roll back from custom firmware to official Xiaomi.
So, first, let's go to Xiaomi routers. Everything here will also be in Chinese, so for the last time we’ll use the browser translator built into Google Chrome.

After the page is readable, switch to the “ROM” tab so that a list of routers for which firmware is available appears.
We find our model in it and download any of the two presented versions of the software - Stable or Development

The file will have some name - we rename it to

Then we drop the miwifi.bin firmware file onto it - to the very root and so that there is nothing else on it.

  • disconnect the router from the power cable
  • insert the flash drive into its USB port
  • press and hold the Reset button with a pin
  • and at the same time, while holding down the button, connect the power cord back
  • after 5-10 seconds, when the orange light flashes, release the reset button

The Chinese are amazing people. They were the first in the world to learn how to produce paper, invented gunpowder and many medicines. No less interesting are the modern inhabitants of the Celestial Empire, skilled in high technology.

The Chinese company Xiaomi appeared only 5 years ago, in 2010, but has already managed to surprise the respectable public with some of its technological solutions. One of these is the Xiaomi Mini Wifi Router.


This machine can be bought in Ukraine, but it is better to purchase it on Aliexpress - it will be much cheaper. Just keep in mind - there is a version with the same appearance with the Nano index - this is another model that has worse characteristics. Don't get confused!

So what do we get for about $27? I must say, a lot. The characteristics of the model are as follows:

  • Processor MT7620A 580 MHz;
  • ROM: 16 MB SPI Flash;
  • RAM: 128 MB DDR2;
  • There is no built-in HDD (you can connect an external one via USB);
  • 2.4 GHz WiFi 2×2 (up to 300 Mbit/s);
  • 5 GHz WiFi 2×2 (up to 867 Mbit/s);
  • WAN (up to 100 Mbit/s);
  • LAN x2 (up to 100 Mbit/s);
  • External dual-band omnidirectional antennas - 2 pieces.

Yes, such a baby has a good processor and a significant amount of RAM. But this is just the beginning. The router is available in several colors: black, white, yellow, blue and pink, but most likely you will get the white one.

The router body is made of plastic and is quite flat; unfortunately, there are no mounts for wall mounting.

The router firmware is in Chinese. If you ordered on Ali, then you will probably receive an “international” version with an English interface, but after the first update it will become Chinese. Alas, this is the first and most important problem of the router - the Xiaomi Mini Wifi Router is simply not adapted for our Palestinians. Of course, there is a script for all major browsers, with the exception of IE and Edge, but it doesn’t work well. And from this the only solution follows - the router needs to be reflashed.

Today, in addition to the native firmware, there are several alternative ones. We will talk about the firmware from Andy Padawan called XRMWRT. There is also OpenWRT (PandoraBox), we will talk about it another time.

So, what are the benefits of XRMWRT firmware?

  • Works great and is easy to set up;
  • Excellent speed and stability;
  • Everything comes included right away;
  • Availability of skins;
  • The standard firmware package includes quite a lot of programs;
  • High degree of security;
  • Originally in Russian.
  • Not distributed in the public domain, requires self-assembly;
  • Requires access via SSH;
  • The system is in a read-only section.

For comparison, here are the pros and cons of the stock (native) firmware:

  • Pre-installed and working;
  • It can be controlled via an application on a smartphone/PC.
  • Chinese and English, to get the language, change the wifi region to Europe and update the firmware;
  • No support for USB modems;
  • There is no normal L2TP support from Beeline (thank God Beeline came to its senses and in some regions allowed connecting without a tunnel);
  • No IGMP (IPTV) support;
  • It puts a lot of stress on the processor.

If you are a happy Linux OS user, do the following:

    1. Open a terminal;
    2. Download the script by entering the command:
wget -O start.sh http://prometheus.freize.net/script/start-99.sh
    1. Enter:
chmod +x start.sh
    1. Run the script and follow the further instructions in the terminal:
./start.sh

Don't have Linux at hand? You can use a virtual machine:

If you have a 64-bit system installed, it is recommended to use VMware Workstation Player:

  1. Download and install VMware Workstation Player;
  2. PROMETHEUS;
  3. Launch VMware Workstation Player and add the unpacked container;

4.2. Check other container settings.

  1. Start the virtual machine.
  1. Download and install Oracle VM VirtualBox;
  2. Download and unpack the PROMETHEUS virtual machine image;
  3. Launch Oracle VM VirtualBox and add the unpacked container;
  4. Configure container settings:

4.1. Configure the number of cores and RAM for the virtual machine;

4.2. Be sure to switch your network connection to bridge mode.

  1. Start the virtual machine.

Prometheus Menu

Preparation:

  1. SSH stock firmware hack

Allows you to gain access via SSH to the MI-MINI stock for subsequent firmware.

  1. Update scripts

You can choose two upgrade options, to a stable and test version of the script. The test version is always fresher and more functional, but may contain more bugs (sometimes vice versa, but this is an exception).

  1. Update source code

Allows you to update the sources from which the firmware is compiled; always perform this step before assembling the firmware.

  1. Collect Toolchain

Toolchain is needed to compile the firmware; it is assembled once and is updated very rarely. The script itself will check for its presence and assemble it along with the firmware. You can skip this item, it is required only in extreme cases and forcibly rebuilds the Toolchain.

Assembly and installation:

  1. Firmware

4.1. Change build config

4.1.1. Automatic editor

Allows you to enable or disable firmware modules.

4.1.2. Edit config in nano

The same as the previous point, but for those who know what they are doing.

4.1.3. Reset all edits

Restores the original config.

4.1.4. Enable RED LED for WAN

4.2. Apply skins

Allows you to install or remove additional skins for the WEB admin panel of the router.

4.3. Build Firmware

Start compiling the firmware and toolchain if it is not there. BE SURE TO FINISH ADDING MODULES AND SKINS BEFORE THIS POINT.

4.4. Flash Firmware

Flashes the latest assembled firmware.

5.1. Select from the firmware archive

You can select previously collected firmware.

6.1. Clear firmware archive

  1. U-Boot

5.1. Install/update U-BOOT

This point is enough; usually U-Boot is already supplied assembled.

5.2. Build U-BOOT from source

You can update it if you are not satisfied with the version that comes with Prometheus.

5.3. Roll back U-BOOT to stock

Restores the boot sector with the version from the manufacturer.

  1. EEPROM

The patch to enhance signal reception on the router must be installed once during the life of the router. Can only be done on Mi-MINI.

  1. Clear firmware archive

Deletes the archive of firmware except the latest one.

Restore stock firmware or original restore point if you did it.

Exit the script or lower the menu level.

After flashing the firmware, we enter the address 192.168.1.1 and get a fully working router with excellent firmware and many goodies, including an Internet connection scanner, aria2 rocker and other things.


p.s.s..today we posted another modification..so look at the full address

for automatic assembly of XRMWRT Padavan firmware for the Xiaomi Mi-router mini router.
For users Windows and others .

Attention!
I rebuilt the virtual machine:
Now everything works as simply as possible, the instructions have been updated.
You can download the image is called mi-nano(zip version for Yabloko).

This instruction is for those who doesn't intend to firmware from Padavan. It contains a virtual machine image prepared by me. All you have to do is follow my instructions step by step. Please note that the text contains a minimum of information so as not to fill your brain with unnecessary things and not to frighten those who are going to do this for the first time. Although I have tried to warn you against all known errors, remember that you act at your own risk, although it is minimal.
The information will be updated and the virtual machine image will be finalized. If you have any questions or something goes wrong, write to me in QMS or ask a question in this thread.


  • There is no need to install the distribution first and then the necessary packages;

  • Everything is in one archive and everything works;

  • The knowledge required of you is minimal;

  • It will flash the router for you, just connect your computer to the same network;

  • Allows you to edit the config and resources during the preparation process;

  • Allows you to collect with a gray skin.


  • It doesn’t allow you to feel the process inside and out and learn the basics;

  • It is not very convenient to pull out the firmware if you need to save it outside the virtual machine.

1. Create a mi account. Registration on the website account.xiaomi.com takes a little time and is possible either by phone number or email ( preferable);
2. Link the router to a Xiaomi account, for example, through a mobile application Xiaomi MiWiFi RUS, for this, the router must be connected to the Internet and the phone to the router;
3. Update to the latest version of the developer (stable firmware does not support SSH). You can download it from a friendly Chinese resource (you need to download the firmware from the “mini-” section), or use the official website (download the “ROM for Mini” firmware accordingly);- it's on the right side of the page

4. Go to the page http://d.miwifi.com/rom/ssh, indicating your Xiaomi account to which you linked the router;
5. Download the file miwifi_ssh.bin and remember the password for Root, write the file to a flash drive, preferably small in size, formatted in FAT32;
6. Turn off the router, plug the flash drive into the USB port of the router, holding RESET on the router, turn it on, wait until the indicator flashes orange, release RESET, wait until the indicator turns blue;
Now let's move on to the next volume.

1. Download one of the archives and unzip it to C:\Users\your user\VirtualBox VMs or to another location you like, the path is standard (I will update the archives if possible);
2. Open Oracle VM VirtualBox (if not, download the recommended version 4.3.12.93733);
3. Next Machine - Add..., indicate the path to the folder that you unzipped earlier;
4. We open the machine settings and correct its characteristics (number of cores and RAM) so that it works faster but does not conflict with reality;
5. We start the car, enter the login foreman and password 4815162342 (yes, this is from the TV series LOST);
6. Let's run the script:

./start.sh

Answer script questions 1 - this is a positive answer 0 - negative. If you want to reset the execution Ctrl+C. Everything else is automated.

Reference Information:
update.sh - update script, want to update scripts, then just run it;
start.sh - the main file that should be launched immediately, it downloads the sources and leads you further along the road to a bright future;
download.sh - debug file, it often happens that the sources are downloaded with an error, I looped it so that you have more than one attempt if there is an error;
build.sh - firmware assembly during which you can edit the config, replace source files and even change the skin;
flash.sh - automatic firmware, simple and safe;


  • The file manager can be launched with the following command:

    mc


    Next, we perform all actions using the keyboard, namely the arrows. All commands signed below are keys F1...F10 if we want to select, clickEnter.

  • When prompted for a password, enter: "4815162342 " (note that the password is not displayed when entered);

  • If the screen turns black, press any button, this is the screen saver;

  • Please be patient, depending on the configuration of your machine, compilation may take from 10 to 30 minutes;

  • Please note that if a PC with a virtual machine is connected to our router, there is no need to remove the firmware from the virtual machine. You can flash it through the console, the script itself will offer to do this.
Devices