Update Xiaomi firmware through Fastboot: a complete guide to debunking errors

Why Fastboot is the Best Way to Update Your Firmware Deeply

Updating the firmware through Fastboot mode is not just an alternative to the standard OTA-It is a powerful tool for those who want to gain full control over the system of their Xiaomi. β†’ The phone. β†’ System update, Fastboot method allows you to install a clean version of the firmware without remnants of previous data, which is especially critical when switching between global and Chinese versions. MIUI or after system failures.

This method is suitable for all modern Xiaomi, Redmi and POCO smartphones released after 2018, including the flagship Xiaomi series 13/14, Redmi Note 12 and POCO F5. However, it is important to understand: Fastboot-firmware requires an unlocked bootloader (bootloader), otherwise you will get a device is locked error. If your phone has never been unlocked, first read the official instructions Xiaomi unlock bootloader.

In this article, we will discuss:

  • πŸ”§ How to Prepare Your Phone and Computer for Fastboot Firmware
  • πŸ“₯ Where to download official firmware and how to check their integrity
  • πŸ’» Step-by-step instruction with commands for Windows, macOS and Linux
  • ⚠️ Typical errors (from critical partition flashing is not allowed to anti-rollback)>) and the way in which they are addressed
πŸ“Š How often do you update your firmware on Xiaomi?
Only through OTA.
Using Fastboot when new versions are released
Only if there are problems
Never update.

Preparation for firmware: what to do before the start

Before you go into action, make sure that all the preliminary steps are followed, and neglect of preparation is the main reason for the "bricking" of devices.

1. Verification of the model and firmware version

Each firmware is codenamed, for example, Redmi Note 11 Pro+ 5G has peux code, and Xiaomi 12T Pro has diting code.

  • πŸ“± Through the Settings app β†’ The phone. β†’ Version. MIUI (Tap 7 times on the line "Version" MIUI", To activate the developer menu, then check in Settings β†’ Additionally. β†’ For developers β†’ Model of the device).
  • πŸ” On the official website of Xiaomi in the firmware section (enter the name of the model in the search).
  • πŸ› οΈ Adb shell getprop ro.product.device (if you have a ADB already in tune).

Also, write down the current version of MIUI (e.g. MIUI Global 14.0.5) and Android (e.g. Android 13) to avoid problems with anti-rollback protection.

2 Unlocking the bootloader (bootloader)

Without an unlocked bootloader, firmware through Fastboot is impossible. If you have never unlocked the bootloader, follow Xiaomi's official instructions:

  1. Link your Mi Account to your device in Settings β†’ Xiaomi Account.
  2. Apply for unlocking via Xiaomi’s website (it may take up to 72 hours to wait).
  3. Use the Mi Unlock Tool to complete the procedure.

Once unlocked, the phone will be reset to factory settings!

Make sure the phone model matches the firmware|Unlock bootloader (unless previously done)|Download the correct version of the firmware (Global/China/EEA)|Charge your phone at least to 60%|Prepare. USB-cable (preferably original)|Disable antivirus on PC (can block firmware files)-->

3. Installation of necessary tools

To run through Fastboot, you will need:

Tool.AppointmentDownload link
Mi Flash ToolThe official utility for Xiaomi firmwareXiaomi website
ADB & FastbootTeam tools for working with AndroidAndroid Developers
Xiaomi driversFor phone recognition in Fastboot modeXiaomi Flash Tool
7-Zip or WinRARFor unpacking the archive with firmwareOfficial website

⚠️ Note: If you are using macOS or Linux, install fastboot via the package manager (brew install android-platform-tools for Mac or sudo apt install fastboot for Ubuntu). In Windows, be sure to disable driver signatures, otherwise the Mi Flash Tool won't see the device.

Where to download the official firmware for Fastboot

Using unofficial or modified firmware can lead to loss of warranties, sensor errors and even hard-brick (complete failure of the phone).

1.The official website of Xiaomi

The most reliable way is to download the firmware from Xiaomi resources:

  • 🌍 Global MIUI Downloads – for international versions (Global, EEA).
  • πŸ‡¨πŸ‡³ Miui.com (China) – for Chinese versions (China).

On the site, select your model, then search for the Fastboot section (usually a 2-3GB archive with the.tgz or.zip extension).

Alternative sources

If the official website is not available, you can use:

  • πŸ”— Xiaomi Firmware Updater – a firmware aggregator with hash-sum verification.
  • πŸ“₯ XDA Developers – a forum where firmware for rare models is published.

⚠️ Attention: Firmware with XDA It can be modified, check before use. MD5 or SHA-1 The hash of the archive (it is indicated on the download page). To verify, use the command: certutil -hashfile filename.zip MD5 Windows command line.

3. Choosing the Right Version of the Firmware

Version error is the main reason for bootloop after firmware.

  • πŸ“Œ Region: Global (international), China (Chinese), EEA (Europe), India (India).
  • πŸ“Œ Type of build: Stable (stable) or Developer (developer).
  • πŸ“Œ Android Version: You can’t flash Android 13 on Android 12 unless it’s supported by the manufacturer.
What is Anti-Rollback and why is it important?
Anti-Rollback is Xiaomi’s protection mechanism that blocks rollbacks to older firmware versions. For example, if your phone has been upgraded to MIUI 14 based on Android 13, you won’t be able to flash MIUI 13 on Android 12. Trying to do this will result in an anti-rollback check fail> error and a possible device blink. Always check the compatibility table on Xiaomi’s website or in the anti-rollback.txt> file inside the firmware archive before you run it.

Step-by-step: how to flash Xiaomi through Fastboot

Now, to the process itself, follow the instructions carefully, and skipping the steps can lead to errors.

Step 1: Transfer your phone to Fastboot mode

Turn off the phone, then:

  1. Press the buttons Loudness down + Power for 10-15 seconds.
  2. On the screen will appear a hare in a hat-eared (Fastboot logo).
  3. Connect your phone to your computer through USB-cable.

Make sure the drivers are installed correctly: Android Bootloader Interface should be displayed in Device Manager.

Step 2: Unpacking the firmware

Downloaded archive with firmware (for example, peux_global_images_V14.0.5.0.TKCCNXM_20231012.0000.00_13.0_global.zip) need to unpack:

  1. Use 7-Zip or WinRAR to extract files.
  2. Inside the archive will be a folder with.img files (e.g. boot.img, system.img).
  3. The path to the folder should not contain Cyrillic or spaces (e.g., C:\MIUI\peux\).

Step 3: Firmware with Mi Flash Tool

Run the Mi Flash Tool (on behalf of the administrator) and:

  1. Press Select and select the folder with unpacked firmware.
  2. At the bottom, select the firmware mode: πŸ”„ Clean all – complete cleaning (recommended when changing version) MIUI). πŸ”„ Clean all and lock - cleaning + Loader locking (only for experienced ones!). πŸ”„ Save user data – data retention is not always stable).

Refresh

Flash

1. Reconnect. USB-cable to another port (preferably) USB 2.0).

2. disable driver signatures in Windows (via Run β†’ bcdedit /set nointegritychecks on).

3. Use the original Xiaomi cable (cheap cables often don't support data transfer to Fastboot).-->

Step 4: Alternative method – via command line

If the Mi Flash Tool doesn’t work, you can manually flash it through fastboot:

  1. Open the command prompt in the firmware folder (click Shift + PCM β†’ Open the PowerShell window here).
  2. Run the command to check the connection: fastboot devices must display the serial number of the device.
  3. Start the firmware (for Windows): fastboot flash boot boot.img fastboot flash recovery recovery.img fastboot flash system system.img... Fastboot reboot For a full list of commands, see the file flash_all.bat inside.

Error "Flashing is not allowed in locked state"

This error means that the bootloader is locked.

  1. Unlock bootloader through Mi Unlock Tool (see Preparation section).
  2. Once unlocked, the phone will be reset to factory settings!

4. the phone does not turn on after firmware (bootloop)

If the phone is stuck with the MI or Redmi logo after firmware:

  • πŸ”„ Repeat the firmware: Maybe the firmware files were damaged. Download the archive again and check. MD5.
  • 🧹 Select "clean all": In the Mi Flash Tool, use the full cleanup mode.
  • πŸ“± Sweat through Recovery: If Fastboot doesn't help, try installing firmware through Recovery (you need a.zip file with firmware to do this).

πŸ’‘

If the phone doesn’t turn on even after re-routing, the EFS (IMEI) partition may be damaged, which requires recovery through a service center or specialized tools like QFil or Miracle Box.

What to do after a successful firmware

Fastboot firmware is complete, the phone is turned on β€” what next? Follow these guidelines to avoid problems in the future.

1.Initial setting

After the firmware is cleaned, the phone will be like new.

  • πŸ”‘ Don’t miss Mi Account binding: This will be needed for future updates and unlocking the bootloader.

2. Checking of performance

Make sure all functions are working correctly:

  • πŸ”Š Sound: Test speakers, microphone and 3.5mm connector (if available).

3. Data recovery

If you have made a backup through Mi Cloud or Google Account:

  1. Sign in to your Xiaomi account in Settings β†’ Xiaomi account.
  2. Go to Settings β†’ System β†’ Backup and Reset β†’ Restore.
  3. Select the last backup and wait for the recovery to be completed.

If you don’t have a backup, use programs like Dr.Fone or Tenorshare to extract data from internal memory (if the phone is recognized by the computer).

Locking the loader (optional)

If you stitched your phone through clean all and lock, the bootloader will automatically lock. If not, you want to return the factory protection:

  1. Transfer the phone to Fastboot (Loudness down + Power).
  2. Connect to the PC and execute the command: fastboot oem lock
  3. Confirm the action on the phone (if necessary).

⚠️ After blocking the bootloader, you will not be able to flash custom firmware or cores without re-displaying the unlock!

FAQ: Answers to Frequent Questions

Can I flash Xiaomi through Fastboot without unlocking the bootloader?
No. Fastboot firmware is only available with the bootloader unlocked. If you try to flash a locked device, flashing is not allowed in locked state will appear. Except for the official updates via the Mi Flash Tool in save user data mode, but this does not work on all models.
How do I know if my Xiaomi bootloader is unlocked?
Turn off the phone, then turn it on, holding Volume up + Power. If this device is unlocked at the top of the screen, the bootloader is unlocked. If there is no writing or lock, it is locked.
What if IMEI is missing or no network is missing?
This means that the section is damaged. EFS, Where the modem data is stored. Solutions: Restore. IMEI through the engineering menu (enter ##4636## and select Information β†’ Run ping test. Scroll the modem section separately through fastboot flash modem modem.img (The file must be in the firmware archive. EFS.
Can I roll back the firmware to an older version?
Recoiling is possible, but with reservations: βœ… If the new firmware has not activated Anti-Rollback, you can flash the old version. ❌ If Anti-Rollback is activated, a rollback will result in an anti-rollback check fail error and a possible blink. πŸ” Check the anti-rollback.txt file in the firmware archive - there are valid versions for rollbacks.
How to Switch Xiaomi to Fastboot on Mac or Linux?
The process is similar to Windows, but there are nuances: Install fastboot via package manager: brew install android-platform-tools # for macOS sudo apt install fastboot adb # for Ubuntu/Debian Give permission to execute scripts in the firmware folder: chmod +x flash_all.sh Run the firmware: sudo./flash_all.sh Macs may need to disable System Integrity Protection (SIP) fastboot.