Installing firmware through Fastboot is one of the most reliable ways to bring the brick back to life, upgrade to the latest version, or reflash Xiaomi to custom build. Unlike Recovery, Fastboot works at the bootloader level, which allows you to bypass MIUI locks and restore the device even in case of serious failures. However, the process requires accuracy: one error in the command or incorrect firmware can turn a smartphone into a useless βbrickβ.
In this article you will find relevant commands for firmware through Fastboot in 2026 In the year, including solutions to typical errors (e.g. remote: partition table doesn't exist or FAILED (We will discuss how to prepare a computer, what tools will be needed for models based on Qualcomm and Mediatek, and how to avoid loss of information. IMEI after flashing it, if you've never worked with ADB/Fastboot, Donβt worry β the instructions are adapted for beginners, but taking into account the nuances, which are silent even official guides.
What is Fastboot and When to Use It
Fastboot is a protocol for interacting with the Android bootloader that allows you to install firmware, unlock the bootloader, and even repair damaged partitions. Unlike Recovery, where firmware is installed via a graphical interface, Fastboot runs through the command line, which gives you more control but also requires accuracy.
When should you choose this method?
- π You need to downgrade the version. MIUI (Downgrade, and through Recovery it is forbidden.
- π§± The device does not turn on or hung on the Mi logo ("brickΒ»).
- π You need to unlock the bootloader to install custom firmware (for example, LineageOS or Pixel Experience).
- π οΈ You need to restore damaged partitions (for example, modem or persist after a failed update).
Itβs important to understand that Fastboot isnβt a universal solution. For example, devices on Mediatek (like the Redmi Note 11 or POCO M4 Pro) may require a special SP Flash Tool rather than standard commands. Some newer models (like the Xiaomi 13 Ultra) also have Anti-Rollback protection, which blocks installation of older firmware versions.
β οΈ Note: If your device was purchased in China (the C-suffix version in the model name), firmware on the global version via Fastboot may cause network loss due to differences in modem files.
Preparation: What you need to Firmware through Fastboot
Before you start firmware, make sure you have everything you need, and skipping at least one item can lead to errors or failed installation.
- π» Computer running Windows 10/11 (for Linux/macOS Additional drivers will be required).
- π Original. USB-cable (preferably from the kit, as cheap cables may not transmit data in Fastboot mode).
- π± Charged device (at least 50% to avoid shutdown during the process).
- π§ Archive with firmware in.tgz or.zip format (official can be downloaded from the website) MIUI Download).
- π οΈ Utilities. ADB Fastboot (you can download it as part of Android) SDK Platform-Tools).
- π Unlocked bootloader (if you install custom firmware). Unlocking is not required for official firmware.
Pay special attention to the choice of firmware. For Fastboot, only files with the Fastboot tag in the title are suitable (for example, ingres_global_images_V14.0.4.0.TMOMIXM_20231012.0000.00_12.0_global_1234567890.tgz). Firmware for Recovery (with the extension.zip) will not work!
βοΈ Checklist before firmware
If you are flashing a device with a Mediatek processor (for example, Redmi 10A or POCO C40), additionally download the SP Flash Tool and the Mediatek Preloader driver. For Qualcomm devices (most flagships of Xiaomi), there are enough standard Fastboot commands.
Step-by-step: Xiaomi firmware via Fastboot
Now, to the process itself, follow the instructions strictly in steps to avoid mistakes.
Step 1: Installation of drivers and preparation of tools
1. Unpack Platform-Tools archive in the root of the disk C:\ (for example, C:\platform-tools\). This will make it easier to work with the command line.
2. Install drivers for your device.
- Connect the switched off smartphone to the PC.
- Press Volume Down + Power to enter Fastboot (a screen with a rabbit and the inscription Fastboot).
- In Device Manager, find a device with an exclamation mark (usually Android Bootloader Interface) and update the driver manually, indicating the path to the folder. platform-tools\.
3. Check the connection. Open the command line (Win + R β enter cmd) and do:
cd /d C:\platform-tools\
fastboot devicesIf the device is recognized, you'll see its serial number. If it's not, check the cable, USB port, or drivers.
Step 2: Unlock the bootloader (if required)
To install custom firmware or downgrade the MIUI version, you need to unlock the bootloader. The official firmware through Fastboot can be installed on the blocked bootloader, but with restrictions (for example, you can not flash the older version).
To unlock the bootloader:
- Link your Mi Account to your device in Settings β Xiaomi Account.
- Log in to Fastboot (as described above).
- Fastboot oem unlock On some devices, you will first need to link an account through the Mi Unlock Tool (download on the official website).
β οΈ Warning: Unlocking bootloader resets the device to factory settings! also on some models (e.g. Xiaomi) 12T) After unlocking, Anti-Rollback protection can work, making it impossible to return to old versions. MIUI.
Step 3: Installation of firmware
1. Unpack the archive with firmware in a folder platform-tools\. There's gotta be a folder inside. images\.img-file.
2. Launch the file. flash_all.bat (for Windows or flash_all.sh (for Linux/macOS). This is an automatic script that will sew all the sections.
If the script doesn't work, or if you want to flash only certain sections, use manual commands.
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot flash dtbo dtbo.img
fastboot flash vbmeta vbmeta.img
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot rebootFor devices with dynamic partitions (e.g. Xiaomi) 11T or POCO F4) instead system.img use:
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
...
fastboot flash system system.img_sparsechunk.NWhat to do if a script flash_all.bat misstep?
Step 4: First download and check
After successful firmware, the device will automatically restart. The first boot can take 5-15 minutes - don't interrupt the process! If after 20 minutes the Mi logo is still on the screen, then something has gone wrong (see the error section).
After downloading:
- Check out the MIUI version in Settings β About the phone.
- Make sure the network is running (if youβve been running a global version on a Chinese device, you may need to reconfigure the modems).
- Restore the data from the backup (if you made it in advance).
π‘
Always check the hash amount (MD5) of the downloaded firmware! Fake or corrupted files can turn a device into a brick. You can check MD5 using WinMD5Free.
Common mistakes and their solution
Even with the correct following of the instructions, errors can occur, and below are the most common problems and ways to correct them.
| Mistake. | Reason. | Decision |
|---|---|---|
| waiting for any device | PC doesn't see the device in Fastboot | Check the cable, drivers, run the CMD from the administrator |
| FAILED (remote: 'unknown command') | Unsupported team for your model | Use the current version of Fastboot or manually stitch it. |
| remote: partition table doesn't exist | The device uses dynamic partitions | Please. system.img_sparsechunk.X piecewise |
| Invalid sparse file format at header | The damaged system.img file | Download the firmware again and check the MD5 |
| Hanging on the Mi logo | Incompatible firmware or error in recording | Repeat the firmware or select a different version of MIUI |
If the network is missing after the firmware, check if the modem database has crashed.
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot rebootThe NON-HLOS.bin file should be in the firmware archive, and if it's not available, download the full package for your model.
π‘
If the device does not turn on after firmware, try to enter EDL-Mode (emergency loading) by clamping Volume up + Loudness down + Power (on the device turned off) In this mode, you can restore the device through the Mi Flash Tool even in case of serious damage.
Device firmware on Mediatek (SP Flash Tool)
For Xiaomi smartphones on Mediatek processors (for example, Redmi) 9A, POCO C31, Redmi 10A) The standard Fastboot may not work. It's a utility that's used instead. SP Flash Tool.
Firmware algorithm:
- Download. SP Flash Tool and unpack firmware in.zip format (should be a file) MTxxxx_Android_scatter.txt).
- Launch it. flash_tool.exe, Click Choose and specify the path to the scatter file.
- In the list, select Download Only (not Format All + Download, otherwise you will lose IMEI!).
- Connect the device to the PC (without pressing buttons!).
- Click Download in the program and wait until the end (the green circle will appear).
β οΈ Note: When you are running through SP Flash Tool: Never use Format All + Download if you donβt want to lose it. IMEI and the serial number! IMEI You will need an engineering menu and backup of NV-data.
How to Avoid Data Loss and IMEI
Fastboot firmware completely erases user data, but some critical partitions (such as persist or nvram) can get damaged, resulting in loss of IMEI or network problems.
- π± Create a backup copy IMEI To do this, type in the dialer: ##4636## and save the information from the section IMEI.
- π Use the firmware of the same version MIUI, The current (or newer) downgrade may cause disruption.
- π‘οΈ Don't flash the persist and nvram partitions unnecessarily. If the firmware archive doesn't have these files, don't look them up separately!
- π§ Check the firmware after you've done it. IMEI In Settings β The phone. β If it's missing, restore it through the engineering menu (#36446337## for Mediatek).
If IMEI It is still lost, and can be restored using the Maui tool. META (for Mediatek or QCN Restore (for Qualcomm).However, it will require a backup. QCN-File that needs to be done before the firmware.