Fastboot is one of the most reliable ways to restore the device, update software or install custom firmware. This method is suitable for cases where the phone does not turn on, hovers on the logo or requires a complete reinstallation of the system. Unlike Recovery firmware, MiFlash works directly with memory partitions, which avoids many errors.
But the process has its nuances, from unlocking the bootloader to choosing the right firmware version. Errors at any stage can lead to a device βbrickβ (complete failure), and in this article we will look at all the steps from preparation to final validation, and also look at typical problems and their solutions.
If you have never flashed Xiaomi through Fastboot before, we recommend you to carefully study each section. For experienced users, the FAQ block with answers to frequent questions and a firmware compatibility table will be useful.
1. Firmware Preparation: What to Do Before Starting
Before you start firmware, make sure all the prerequisites are met, which will save time and prevent critical errors.
Basic requirements:
- π Battery charge of at least 50% (at low charge, the process can be interrupted).
- π» Computer on Windows 7/10/11 (MiFlash is required.NET Framework 4.5+).
- π Original. USB-cable (cheap cables may not transmit data to Fastboot).
- π₯ Firmware is exactly for your model (an error in the choice will lead to a brick!).
Pay special attention to unlocking the bootloader. Xiaomi locks the bootloader on all devices by default, and without unlocking, you can't flash your phone through Fastboot. If you haven't done this before, move on to the next section.
2 Unlocking the bootloader: a mandatory step before the firmware
Unlocking the bootloader is an official procedure that must be performed through the Mi Account, without which MiFlash will not be able to write firmware to the device memory.
How to unlock the bootloader:
- Connect the device to Mi Account in settings (Settings β Xiaomi Account).
- Go to en.miui.com/unlock and download the Mi Unlock Tool.
- Launch the utility, log in to your account and connect your phone in Fastboot mode (clip Volume Down + Power).
- Follow the instructions of the program. Usually, it takes 72-168 hours to unlock (depending on the model).
Important: Once unlocked, all data on the phone will be erased! Backup via Mi Cloud or manually.
What if the Mi Unlock Tool canβt see the device?
3. Installation of drivers and setting up MiFlash
Fastboot requires drivers, without which the computer will not recognize the phone in firmware mode.
Instructions for installing drivers:
- Download MiFlash (the latest version).
- Install the program by following the installation wizard.
- Connect the phone in Fastboot mode (clip Volume down + Power before the hare appears in the hat-eared).
- Open Device Manager on your PC and find a device with an exclamation point (usually Android Bootloader Interface).
- Update the driver manually by specifying the path to the folder with MiFlash (for example, C:\Xiaomi\MiPhone\Qualcomm\Driver).
After installing the drivers, check the connection with the device via the command line:
fastboot devicesIf you see the serial number of the phone in response, the drivers are installed correctly.
βοΈ Preparing MiFlash for work
4. Selection and download of firmware for Xiaomi
Mistakes in firmware are the most common reason for a blink. Xiaomi releases different versions of software for the same model, and they are not always compatible.
Firmware types:
- π¦ Stable - official firmware with minimal bugs, recommended for everyday use.
- π§ͺ Developer β Test version with new features, but errors are possible.
- π§ Fastboot firmware β an archive with the extension.tgz or.zip, containing files for firmware through MiFlash.
- π οΈ Custom (e.g. LineageOS, Pixel Experience) β unofficial firmware, require unlocked bootloader and additional knowledge.
Download the firmware only from official sources:
- π Xiaomi official website (select the Global Region, EEA China, depending on the model).
- π Xiaomi Firmware Updater (alternative source with current versions).
| Type of firmware | File extension | For what cases is suitable | Risks. |
|---|---|---|---|
| Stable Fastboot | .tgz | Recovery of serviceability, renewal | Minimum (official firmware) |
| Developer Fastboot | .tgz | Testing of new functions | Possible bugs, unstable work |
| Castomic (AOSP) | .zip | Installation of alternative software (for example, without MIUI) | High (brick risk, loss of warranty) |
| Anti-Rollback | .tgz (special) | Downgrade of the software version on models with protection | Critical (can lock the device permanently!) |
β οΈ Note: On Xiaomi models with Anti-Rollback (e.g. Redmi Note) 7/8/9, Mi 9/10) You can't install firmware older than the current version. It'll lead to an irreversible blink.
5. Step-by-step instruction: Xiaomi firmware via MiFlash
Now, to the firmware process itself, follow the instructions strictly by step.
Step 1: Preparation of firmware files
- Unpack the downloaded.tgz archive into a folder (e.g., C:\Xiaomi\ROM).
- Inside should be a folder with images files and script flash_all.bat.
Step 2: Launching MiFlash
- Open MiFlash on behalf of the administrator.
- Click Select and point the way to the folder with unpacked firmware.
- Connect the phone in Fastboot mode (screen with a hare).
- MiFlash should have a device (serial number).
Step 3: Selecting a firmware mode
At the bottom of the MiFlash window, select one of the following options:
- π clean all β complete cleaning (recommended when changing the software version or brik).
- ποΈ Clean all and lock - cleaning + Loader lock (only for official firmware!).
- π§ Save user data β saving user data (not always working correctly).
Step 4: Starting the firmware
Press Flash and wait until the process is complete. It usually takes 5-15 minutes. Don't turn off your phone or interrupt the process!
β οΈ Warning: If MiFlash gives an error "cannot receive hello packet", try it USB-Change port to cable. USB 2.0 (some models do not work with the USB Reinstall drivers manually through Device Manager.
π‘
If the firmware is 99% frozen longer than 10 minutes, donβt panic β this is normal for some models: wait for the automatic reboot or turn off the phone manually (press the power for 15 seconds).
Typical errors and their solutions
Even if you follow the instructions accurately, you can get errors, and let's look at the most common ones and how to fix them.
| Mistake. | Reason. | Decision |
|---|---|---|
| cannot receive hello packet | Problems with drivers or USB-connection | Reinstall drivers, change cable/port |
| flash not done | Incompatible firmware or corrupted files | Download the firmware again, check the model |
| anti-rollback check fail | Trying to downgrade the software version on an Anti-Rollback device | Install a new firmware or official |
| The phone does not turn on after the firmware | Incorrect firmware mode (clean all and lock on custom software) | Repeat the firmware in clean all mode |
Additional advice:
- π If after firmware the phone is stuck on the logo, try resetting the settings through Recovery (Loudness up). + Nutrition).
- π‘ If there is no network after firmware, check the settings IMEI (It may be necessary to restore QCN-file).
- π If your phone is dead during firmware, charge it to at least 30% and repeat the process.
π‘
If MiFlash gives you an error that mentions anti, do not attempt to bypass the protection through third-party utilities, this will lead to a complete lockdown of the device.
7. Check the result and the first actions after firmware
After successful firmware, the phone should automatically restart. If this does not happen, perform a forced reboot (press the Power for 10-15 seconds).
What to do after the firmware:
- Go through the initial setting (select language, connect to Wi-Fi).
- Check the performance of the main functions: π Calls and mobile network. πΆ Wi-Fi and Bluetooth. π Sound and microphone. πΈ Camera.
Settings β About the phone β System update
Restore the data from the backup (if you did a backup).
If you have been using custom software, you may need additional configuration:
- Install GApps (Google Services)
- Set up root rights (if necessary).
- Check the compatibility of Magisk modules.
β οΈ Note: After firmware is installed, the device originally designed for the China market may not work: π‘ Frequency 4G/LTE operator. π΅ Pre-installed services (e.g. Mi Video, Mi Music). π± Gestures and functions, sharpened for the Chinese market. EEA (Europe or Global version with support for your region.