Update of the smartphone Xiaomi via Fastboot: full instructions with nuances

Updating Xiaomi’s smartphone via Fastboot mode is one of the most reliable ways to install a fresh version of MIUI when standard methods don’t work, a method that is suitable for recovering brick-and-brick devices, manual downgrades, or custom firmware installations, but the process requires care: wrong actions can lead to data loss or phone breakdown.

Unlike Settings β†’ About the phone, Fastboot allows you to flash your device even when your system is damaged or bootloader is locked. But there are pitfalls here, from choosing the right version of your firmware to working with tools like MiFlash or XiaomiTool. In this article, we will analyze every step from preparation to the final restart, and also look at typical errors and how to fix them.

What is Fastboot Mode and When is It Needed?

Fastboot is a low-level interface for interacting with the smartphone bootloader. Unlike Recovery Mode, where the update is via a graphical interface, here the firmware is installed directly through the fastboot flash command, which is used in three cases:

  • πŸ”„ Recovery after a crash: if the phone doesn't turn on or hovers on the logo MI.
  • πŸ“‰ Downgraid firmware: a return to the old version MIUI (for example, MIUI 14 on MIUI 13).
  • πŸ”§ Install custom firmware: for example, LineageOS or Pixel Experience.

It is important to understand that Fastboot works with an unlocked bootloader. On new Xiaomi models (released after 2022), the bootloader is blocked by default, and it requires official permission through the Mi Unlock Tool to unlock it.

πŸ“Š How often do you update your firmware on Xiaomi?
Only through OTA.
via Fastboot if necessary
I'm installing custom firmware.
Never update.

Preparation for the update: what to do before the firmware

Before you go to firmware, follow the mandatory preparatory steps, which can lead to data loss or turn the phone into a brick.

Backup data | Check model and version of MIUI| Download correct firmware |Install ADB/Fastboot | Charge phone at least 50% |Unlock bootloader (if required)

-->

First, save all the important data. Fastboot firmware usually erases internal memory (unless you use fastboot flash --skip-reboot followed by fastboot reboot recovery).

  • πŸ“ Mi Cloud (if the phone is still on).
  • πŸ’» ADB Backup (adb backup team) -apk -obb -shared -all -f backup.ab).
  • πŸ”Œ Physical copying on PC through MTP.

The second is to determine the exact model of the phone and the current version of MIUI. This is critical, as the firmware for the Redmi Note 10 Pro (sweet) is not suitable for the Redmi Note 10 (mojito).

  • In settings: Settings β†’ About phone β†’ MIUI version β†’ Press 7 times on the β€œCore”.
  • Through ADB: adb shell getprop ro.product.device

⚠️ Note: If you are running a device with Dynamic RAM (for example, Xiaomi 12T), Make sure the firmware version supports this feature, otherwise the phone may lose some RAM.

Where to download the official firmware for Fastboot

The official firmware for Xiaomi in Fastboot format is available on three resources:

SourceReferenceFeatures
Official Xiaomi websitemiuidownload.comOnly stable versions require registration
Xiaomi Firmware Updaterxiaomifirmwareupdater.comWeekly and stable builds, archive of old versions
4PDA4pda.toCastomic and modified firmware, discussions

When choosing a firmware, pay attention to:

  • πŸ“Œ Type of build: Stable (stable) or Weekly (weekly.
  • 🌍 Region: Global, China, EEA (China's firmware may not support Google services.
  • πŸ”’ Android Version: For example, MIUI 14 can work on Android 12 or Android 13.

The Fastboot firmware file has an extension of.tgz or.zip and weighs between 2 and 4 GB. After downloading, be sure to check the checksum (MD5), You can do this through a utility to avoid firmware errors. MD5 Checker or team:

certutil -hashfile name file.tgz MD5

πŸ’‘

If you downloaded firmware from 4PDA, check the comments to the topic – there are often indicated known bugs and ways to bypass them.

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

Now, let's get to the process. You'll need to get the firmware in.

  • πŸ–₯️ Windows computer 10/11 (or Linux/macOS fixed ADB/Fastboot).
  • πŸ”Œ Cable USB Type-C (preferably original).
  • πŸ“¦ Unpacked firmware in a folder without Cyrillic symbols.
  • πŸ› οΈ MiFlash (for Windows) or fastboot in the terminal.

Step 1: Put your phone in Fastboot mode

  1. Turn off the device.
  2. Press the Power button + Volume down for 10 seconds.
  3. On the screen will appear a hare in a hat-eared – this is a sign of the Fastboot mode.

Step 2. Connect your phone to your PC and check the connection

Open the command line (Win + R β†’ cmd) and type:

fastboot devices

If the device is identified (the serial number appears), the drivers are installed correctly. If not, install the Mi USB Driver from the official website.

Step 3. Launch the firmware

For Windows:

  1. Open MiFlash.
  2. Press Select and specify the folder with the unpacked firmware.
  3. Select Clean All (Full Cleaning) or Clean All and Lock (Locking bootloader).
  4. Press Flash and wait until it is completed (10-20 minutes).

For Linux/macOS:

sudo ./flash_all.sh

⚠️ Warning: If the firmware is interrupted during sparse, don't turn off the cable! Wait 10 minutes - sometimes the process continues after a pause. If the error repeats, try another version of MiFlash (for example, MiFlash 2020 instead of 2023).

Typical Fastboot Firmware Errors and Their Solutions

Even with the correct instructions, errors can occur, and here are the most common ways to correct them:

Mistake.Reason.Decision
fastboot: error: Failed to boot into userspaceIncompatible firmware or damaged boot.imgYou can only play boot with fastboot flash boot boot.img.
MiFlash: cannot receive hello packetProblems with drivers or cableTry another one. USB-port (preferably) USB 2.0)
This package is for "sweet" devices; this is a "mojito"Firmware for another modelDownload the correct version for your device code

If the phone does not turn on after firmware or hung on the logo, try:

  1. Go to Recovery Mode (Nutrition + Volume Up) and make Wipe Data.
  2. Repeat the firmware with the option Save user data in MiFlash.
  3. Switch only the system partition by the command fastboot flash system.img.
What if MiFlash can’t see the device?
1. Install drivers manually through Device Manager (select "ADB Interface"). 2. Disable driver signatures in Windows (CMD command from admin: bcdedit /set nointegritychecks on). 3. Try another PC or virtual machine with Linux.

How to check the success of the update and restore data

Once the firmware is in place, the phone should automatically restart, and it can take up to 10 minutes to turn on the first one, which is normal, to make sure that the update is successful:

  1. Check out the MIUI version in Settings β†’ About the phone.
  2. Make sure all the features are working: camera, sensors, mobile network.
  3. Launch Google Play (if Global firmware) and update the apps.

If the data has been erased, it can be restored:

  • πŸ“± From Mi Cloud (if backup was enabled).
  • πŸ’Ύ Local copy (if done) ADB Backup).
  • πŸ” Using programs like Dr.Fone or EaseUS MobiSaver (for undeleted files only).

⚠️ Note: If you have lost your firmware after IMEI (No network, do not try to restore it through the engineering menu (#4636##.Use the official method: contact the Xiaomi service center with a check about the purchase - they will restore it. IMEI database.

Alternative ways to upgrade Xiaomi

If Fastboot seems complicated, consider alternative methods:

  • πŸ”„ OTA-Update: Settings β†’ The phone. β†’ Upgrade system. The safest way, but it requires a working system.
  • πŸ“¦ Recovery Mode: Firmware via.zip file in TWRP Or drain recovery. It's suitable for custom firmware installation.
  • πŸ–₯️ XiaomiTool: Semi-automatic utility for unlocking and firmware (supports most models).

Comparison of methods:

MethodDifficultyUnlocking requiredData retained
Fastboot⭐⭐⭐⭐Yes.No (usually)
OTA⭐No.Yes.
Recovery (TWRP)⭐⭐⭐Yes.Yeah (unless you wipe)

πŸ’‘

Fastboot is the only way to flash a phone with a damaged system, but it requires the most preparation. For a regular update, you'd better use OTA or Recovery.

FAQ: Answers to Frequent Questions

Can I flash Xiaomi through Fastboot without unlocking the bootloader?
No. Starting in 2017, all Xiaomi smartphones have a locked bootloader. To run through Fastboot, it must be unlocked through the Mi Unlock Tool (requires a Mi Account binding and waits 7-30 days), except for devices with an already unlocked bootloader (bought used or through informal channels).
What if the phone asks for a password from Mi-account?
This is Mi Cloud Lock. If your phone was linked to your account, enter your login and password. If the device is purchased and the previous owner has not untied the account, contact him or Xiaomi's service center with proof of purchase. Self-deletion of the link can lead to blocking IMEI.
How to roll back firmware to the old version of MIUI?
Downgrade: Download the desired version of MIUI in Fastboot format. Unlock the bootloader (if not unlocked). Sweep through MiFlash with Clean all option. Important: Downgrade can lead to loss of data and problems with the operation of certain functions (for example, the camera). Before the procedure, check on the forums (for example, 4PDA), if there are known bugs for the selected version.
Why does MiFlash show the error "Flash is not done"?
This error arises from: MiFlash incorrect version (try MiFlash 2018 for older models); damaged firmware file (check MD5); driver conflict (remove all old Xiaomi drivers and reinstall again). Solution: try flashing manually through the command line: fastboot flash boot.img fastboot system.img fastboot flashboot vendor.img fastboot fastboot vendor.img fastboot reboot
Can I flash Xiaomi via Fastboot on Mac or Linux?
Yes, but it will: Install ADB/Fastboot brew install android-platform-tools (Mac) or sudo apt install fastboot (Linux). +x flash_all.sh. Run firmware: sudo./flash_all.sh. Linux may have trouble defining a device – in this case add a rule for udev: sudo nano. /etc/udev/rules.d/51-android.rules Add a line: SUBSYSTEM=="usb", ATTR{idVendor}=="2717", MODE="0666", GROUP="Plugdev: Then do sudo udevadm control. --reload-rules sudo udevadm trigger