How to Sweeten Xiaomi via Fastboot: A Detailed Guide with Teams and Tips

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

Done: 0 / 5

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.

πŸ“Š What Xiaomi model are you using?
Redmi Note 12/Pro
POCO X5/F5
Xiaomi 13/14
Redmi 10/11
Another model

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 devices

If 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:

  1. Link your Mi Account to your device in Settings β†’ Xiaomi Account.
  2. Log in to Fastboot (as described above).
  3. 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 reboot

For 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.N

What to do if a script flash_all.bat misstep?
If at launch flash_all.bat Error waiting for any device, check it out: 1. Are the drivers correctly installed (there should be no exclamation marks in the Device Manager). 2. Do you use the original cable (cheap cables often don't transfer data to Fastboot). 3. If the remote: partition table doesn't exist, your device uses dynamic partitions, manually run them, as shown above.

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 devicePC doesn't see the device in FastbootCheck the cable, drivers, run the CMD from the administrator
FAILED (remote: 'unknown command')Unsupported team for your modelUse the current version of Fastboot or manually stitch it.
remote: partition table doesn't existThe device uses dynamic partitionsPlease. system.img_sparsechunk.X piecewise
Invalid sparse file format at headerThe damaged system.img fileDownload the firmware again and check the MD5
Hanging on the Mi logoIncompatible firmware or error in recordingRepeat 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 reboot

The 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:

  1. Download. SP Flash Tool and unpack firmware in.zip format (should be a file) MTxxxx_Android_scatter.txt).
  2. Launch it. flash_tool.exe, Click Choose and specify the path to the scatter file.
  3. In the list, select Download Only (not Format All + Download, otherwise you will lose IMEI!).
  4. Connect the device to the PC (without pressing buttons!).
  5. 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.

How to make a backup copy of QCN?
1. Install. QPST Tool and Qualcomm drivers. 2. Connect your phone in Diag mode (type ##717717## or use it for this purpose). ADB-command adb reboot edl. 3. B QPST Select Backup and Save QCN-file-to-safety.

FAQ: Frequent questions about Xiaomi’s firmware through Fastboot

Can I flash Xiaomi through Fastboot without unlocking the bootloader?
Yes, but with limitations. The official firmware of the same or newer version can be installed on a locked bootloader, but for downgrades or custom firmware, unlocking is mandatory.
Why is the camera or sensors not working after the firmware?
This is a typical problem when running an incompatible version of MIUI (e.g. global on a Chinese device). Solution: Sweep through the correct version of the firmware (with the same region). If the problem persists, run the persist.img and vendor.img sections separately from the original firmware.
How to Switch Xiaomi if it is not included in Fastboot?
If the device does not respond to buttons or hovers on the logo, try: EDL-mode (emergency boot) using a test point (this will require disassembling the device) or adb reboot edl (if the device is not loaded). ADB Use the Mi Flash Tool to run the firmware in EDL-For new models (for example, Xiaomi 13) you may need an official service center, as EDL blocked.
Can I roll back the firmware to an older version?
Technically, yes, but most devices are protected by Anti-Rollback. For example, if you upgrade from MIUI 13 to MIUI 14, you can’t go back – the device will lock. Before downgrad, check the list of supported versions for your model on the forums (for example, Xiaomi.eu or XDA-Developers).
What if the device does not turn on after the firmware?
First try: Charge the device (sometimes after the firmware runs out of battery), log into the Fastboot and repeat the firmware, flash through the Mi Flash Tool in Clean All mode (it erases everything, but often helps). If nothing helps, maybe the bootloader is damaged, in which case only the service center or firmware through EDL (requires authorization).