Install firmware on Xiaomi Redmi Note 9: full instruction with unlocking the bootloader

The Xiaomi Redmi Note 9 (codenamed merlin) remains a popular smartphone even years after its release, but its owners often face the need to reflash the device. The reasons range from wanting to update an outdated version of MIUI to having to restore the phone after a crash. In this article, we will discuss all the ways to install firmware β€” through Recovery, Fastboot and the official Mi Flash Tool β€” and also explain how to avoid errors that turn the smartphone into a β€œbrick”.

It’s important to understand that the Redmi Note 9 firmware is different from the same procedure on new Xiaomi models (like the Redmi Note 12 or POCO X5). There are nuances here with unlocking the bootloader, choosing the right version of MIUI (global, Chinese, EEA) and even with drivers for PC. If you’ve never flashed a smartphone before, start with the section on preparation – this will save hours on bug fixes.

1. Firmware Preparation: What to Do Before Starting

The first step is to save all the important data. The firmware, especially through Fastboot, erases the device's internal memory. Use Mi Cloud, Google Photos, or physical copying to your PC. Note: TWRP backups (if installed) may not recover after you change the MIUI version.

Next, check the current firmware version and device model.

  • πŸ“± Go to Settings. β†’ The phone. β†’ Version. MIUI.
  • πŸ” Remember the assembly number (for example, V12.5.3.0.RJOMIXM).
  • πŸ› οΈ Make sure the Redmi Note 9 is the model (not the Note 9 Pro or Note). 9S), because the firmware is incompatible!

Also prepare:

  • πŸ’» Windows computer 7/10/11 (For the Mi Flash Tool).
  • πŸ”Œ Original. USB-cable (cheap cables can interrupt data transmission).
  • πŸ”‹ Battery charge of at least 60% (when discharged during firmware, the device may turn off).
  • πŸ“ Firmware that matches your model (more on this in the next section).

⚠️ Note: If you install custom firmware (like LineageOS or Pixel Experience), first unlock the bootloader through the official Xiaomi tool.

πŸ“Š What kind of firmware you plan to use?
Through Recovery.
Fastboot (Mi Flash Tool)
Custom firmware (TWRP)
I haven't decided yet.

2. Selection of firmware: official MIUI or custom?

There are several types of firmware available for the Redmi Note 9:

Type of firmwareAdvantagesDeficienciesWhere to download
Official MIUI (Fastboot)Stability, support OTA-Updates, the guarantee is maintainedMay contain bloatware (pre-installed applications)Official Xiaomi website
Official MIUI (Recovery)Easy to install, does not require unlocking the bootloaderNot all versions are available in Recovery formatXiaomi Firmware Updater
Castomic (TWRP + ZIP)More features, no ads, up-to-date versions of AndroidRequires unlocking the bootloader, possible bugsXDA Developers

For most users, the best choice is the official firmware in the format of Fastboot.

  • πŸ”„ Recovery of the phone after a failure ("brickΒ»).
  • πŸ“² Updates to the new version MIUI (for example, 12 to 13).
  • πŸ”“ Unlock additional features (e.g. Google Camera).

If you download firmware from third-party resources (not from the official Xiaomi site), check the hash files (MD5) through the MD5 Checker utility.

πŸ’‘

Before downloading the firmware, disable the VPN and antivirus – they can block the download of large files from official Xiaomi servers.

3. Unlocking the bootloader: a must-do step for Fastboot and custom firmware

Xiaomi blocks the bootloader on all devices, including the Redmi Note 9, which means that without official unlocking, you will not be able to:

  • πŸ“¦ Install firmware through Fastboot.
  • πŸ”§ Install TWRP or custom-recovery.
  • πŸ€– Sweep custom firmware (for example, LineageOS).

The unlocking process takes up to 72 hours (sometimes longer) and requires:

  1. Linking your Mi Account to your device (in Account settings β†’ Mi Account).
  2. Install the Mi Unlock Tool on PC (download here).
  3. Transfer the phone to Fastboot mode (clamp Power + Volume down).
  4. PC connections and SMS waits with unlock confirmation.

⚠️ Note: If you previously unlocked the bootloader on this device, but then flashed the official download MIUI via the Mi Flash Tool with clean all option, the bootloader could lock again. Check the status of the command fastboot oem device-info in the terminal.

Once you've successfully unlocked, you'll see a message called Unlocked successfully. Now you can start the firmware. If you haven't unlocked, try:

  • πŸ”„ Repeat the process after 24 hours (Xiaomi servers may be overloaded).
  • πŸ“‘ Use a different Mi Account (sometimes helps).
  • πŸ–₯️ Run Mi Unlock Tool on behalf of the administrator.
What to do if Mi Unlock Tool gives you a "Couldn't unlock" error
The "Couldn't unlock" error (or code) 86006) This means that the Xiaomi server has rejected the request, most often due to: VPN/Proxies (disable them); - Mi Account and firmware region mismatch (e.g., Chinese account) + Global firmware; too frequent attempts to unlock (wait for it) 24–72 Solution: try another Mi Account or wait for automatic unlocking through 3–7 days.

4. Install firmware via Fastboot (Mi Flash Tool)

This is the most reliable way to flash the Redmi Note 9, but it requires an unlocked bootloader and erases all data.

  1. Download the firmware in Fastboot format (file with.tgz or.zip extension) and unpack it into a folder without Cyrillic characters (for example, C:\MIUI\merlin).
  2. Install the drivers: πŸ–₯️ Download Mi. USB Driver and install it. πŸ”Œ Connect the phone in Fastboot mode (clamp Power). + Volume down when the phone is off). πŸ” In Device Manager, check that the phone is defined as Android Bootloader Interface.
  3. Launch the Mi Flash Tool: πŸ“ Unpack the archive with the utility and run MiFlash.exe on behalf of the administrator. πŸ”— Click Select and point the way to the folder with unpacked firmware. πŸ“‹ Select firmware mode at the bottom: clean all – complete cleaning (recommended when changing version) MIUI). Clean all and lock - cleaning + bootloader lock (only for official firmware!) save user data - data storage (not always stable).

Start the firmware

Flash

β˜‘οΈ Preparation for firmware through Fastboot

Done: 0 / 5

If the Mi Flash Tool is making an error, check:

  • πŸ”Œ Cable and port USB (Try the port USB 2.0 on the back of the PC).
  • πŸ“ The path to firmware (should not be Cyrillic or gaps).
  • πŸ”„ Mi Flash Tool (new firmware may require the latest version of the utility).

πŸ’‘

Clean all and lock lock locks the bootloader back. Use it only for official Xiaomi firmware. For custom firmware, this mode will lead to a brick.

5. Install firmware via Recovery (without unlocking the bootloader)

If you don’t need to change the MIUI version drastically (for example, from 12 to 13), but only update the current one, you can use Recovery. This method does not require unlocking the bootloader and does not erase user data (but we recommend backup!).

Instructions:

  1. πŸ“ Download the firmware in Recovery format (.zip file) from the Xiaomi Firmware Updater website.
  2. πŸ“± Rename the file to update.zip and transfer it to the root of the phone’s internal memory (not to folders!).
  3. πŸ”„ Go to Settings. β†’ The phone. β†’ Updating the system.
  4. πŸ–±οΈ Click on the three dots in the upper right corner and select Select the firmware file.
  5. πŸ“„ Indicate. update.zip and confirm installation.

The phone will reboot in Recovery and start installing. It will take 5-15 minutes. Don't interrupt it! If after the reboot the phone hangs on the Redmi logo, reset via Recovery (Wipe Data).

⚠️ Attention: Recovery firmware is often delayed compared to Fastboot.If you need the latest version MIUI, Use the Mi Flash Tool.

If the installation through System Update does not work (for example, due to damaged Recovery), you can manually flash:

  1. Turn off the phone.
  2. Press Power + Volume Up to Enter Recovery.
  3. Select Install update.zip to System (navigation – volume buttons, confirmation – power button).
  4. Confirm the installation and wait for completion.

6. Solving common firmware errors

Even when you follow the instructions, you can get errors, and here are the most common ways to correct them:

Mistake.Reason.Decision
Invalid image format (in Mi Flash Tool)A damaged firmware archive or incorrect folderDownload the firmware, unpack it again into a folder without spaces
Phone is not defined in FastbootLack of drivers or faulty cableInstall Mi USB Driver, try another cable/port
Anti-rollback check failTrying to stream an older version of MIUISwitch a newer firmware or the same version
Hanging on Redmi logo after firmwareData conflict or incomplete firmwareRun Wipe Data in Recovery or re-sweeten

If the Mi Flash Tool is 0x80070002 or 0x80004005, it is usually due to:

  • πŸ“ On your way to the firmware (transfer the folder to disk C: and rename it to miui).
  • πŸ”Œ Problems with USB-port (try the port) USB 2.0).
  • πŸ–₯️ Antivirus (disable Windows Defender or add Mi Flash Tool to exceptions).

If the IMEI is missing after the firmware or the network is not working, restore it through the engineering menu:

  1. Please dial the phone application ##4636##.
  2. Go to Phone Information and check for IMEI status.
  3. If IMEI is not available, use the SN Write Tool (requires authorization on Xiaomi servers).
How to Restore IMEI After Firmware
If IMEI If you are not on "0" or not, download the utility SN Write Tool and follow the instructions: 1. Install Qualcomm drivers. 2. Connect the phone in mode EDL (phone is off, press both volume buttons and connect the cable. 3. In the utility, select the firmware file from IMEI (This is usually a file with the extension.mbn. 4 Enter the original file. IMEI (is on the box or under the battery. 5. Press Write and wait until it is completed. ⚠️ Wrong. IMEI This can lead to a network blocking!

7. firmware custom Recovery (TWRP) and custom firmware

If you want to install LineageOS, Pixel Experience or other custom firmware, you first need to flash TWRP Recovery, which is more risky than installing an official MIUI, but it provides more features.

Instructions:

  1. Unlock the bootloader (as described in Section 3).
  2. Download TWRP for Redmi Note 9 (merlin) from the official website: twrp.me.
  3. Log in to TWRP and backup the persist partition (important to save IMEI!).

After installing custom firmware, you may need to flash:

  • πŸ”’ Magisk (to obtain root rights).
  • πŸ“‘ GApps (if the firmware is without Google services).
  • πŸ”‹ GCam-enabled kernel (for improved camera).

⚠️ Note: Castom firmware may not support Widevine L1 (no HD Netflix, Disney.+). To check the Widevine level, install the application DRM Info from Play Market.

8.Optimization after firmware: what to do first

After successful firmware (especially if you have installed a new version of MIUI or custom firmware) follow these steps to work steadily:

  • πŸ”„ Reset the settings to factory settings (if you were flashing through Fastboot with the clean all option) and this will eliminate possible data conflicts.
  • πŸ”’ Turn on the developer and turn off MIUI Optimization (in the developer settings) This will speed up the system.
  • πŸ“‘ Update all apps through the Play Market (especially Google Play Services).
  • πŸ”‹ Calibrate the battery: Charge the phone to 100%. Turn off the charge and use until full discharge. Repeat the cycle 2-3 times.

Install Google Camera

Redmi Note 9

GCam 8.1

BSG

If after firmware appeared bugs (for example, quickly dies battery or lays the interface), try:

  • πŸ”„ Return to the previous version MIUI (If you were running through Fastboot).
  • πŸ”§ Disable animations in the developer settings (Window animation scale) β†’ 0.5x).
  • πŸ“΅ Reset network settings (Settings) β†’ SIM-maps and mobile networks β†’ Resetting network settings).

πŸ’‘

After you have run through Fastboot, always check the sensors (gyroscope, compass, NFC) using the Play Market’s Sensor Test app. If the sensors don’t work, run the firmware again with the β€œclean all” option.

FAQ: Frequent questions about the Redmi Note 9 firmware

❓ Can I flash Redmi Note 9 without unlocking the bootloader?
Yes, but only through Recovery (update of current MIUI) to change the version or install custom firmware unlock is mandatory.
❓ Why does the Mi Flash Tool not see the phone?
Reasons: Mi USB Driver drivers are not installed. Low quality cable is used. Phone is not in Fastboot mode (check if the connection indicator is on). USB 3.0 port may not work - try USB 2.0. Solution: reinstall drivers, try another cable/port, run Mi Flash Tool on behalf of the administrator.
❓ How to return the official firmware after custom?
Download the official Fastboot firmware for your model and swipe through the Mi Flash Tool with the clean all and lock option. This will return stock Recovery and block the bootloader.
❓ What to do if the phone does not turn on after the firmware?
Possible reasons and solutions: Hang on the logo: go to Recovery (press Power + Volume up) and run Wipe Data. Black screen: check battery power (plug in for 30 minutes) Brick (no buttons): try flashing through EDL (requires an authorized Xiaomi account).
❓ Can I flash Redmi Note 9 with Note 9 Pro firmware?
No! The Redmi Note 9 (codenamed merlin) and Note 9 Pro (joyeuse/curtana) have different processors and hardware, and the firmware from the other model will result in a full brick.