Baseband upgrade

If you're here it means you got Error 7 while flashing a CyanogenMod build, welcome!

To use a newer CyanogenMod build on your device, you need to update some things in it.


You deserve some explainations first:

Before the Lollipop era, Xiaomi used to have some "duplicated" software (2 "system", "boot" and "modem" partitions to be specific) on their devices to prevent breakage during upgrades.

During official MiUi MM upgrade Xiaomi removed those duplicated and updated modem and other things to a newer version that is build to work on Marshmallow.

CyanogenMod supported Kitkat baseband / modem and partition layout for a while, but users with these had more issues than those who upgraded their devices to stock MM. So it's better for everyone to upgrade. Unfortunately these things cannot be updated with a simple CM ota, you need to update them "manually".


If you want to follow the official Xiaomi tutorial to update to marshmallow "base", feel free to do it, but here you get a step-by-step easy tutorial that allows you to upgrade without having to wipe any of your data (except system partitions).

What do you need

* please Google how to setup fastboot if you don't know how to do this

How to upgrade - the cm way

Once you plug your device into the pc, make sure you never unplug it until everything is done, also if you have a laptop, make sure it has a stable power source to avoid breakage to your device.

  1. Turn your device off
  2. Boot your device into bootloader mode (Press "Vol Down" and "Power" at the same time for a few seconds)
  3. Plug it into your pc
  4. Unzip the cm13ParitionMerge.zip file
  5. Run flash_all.bat (on windows) or flash_all.sh (on OS x and Linux - it's suggested to open it from a terminal in these systems)
  6. The device will reboot itself a few times
  7. Once the upgrade ends the device will boot into recovery mode automatically
  8. Install the downloaded rom following this guide, you don't have to wipe your data. Make sure you flash GApps too if you want to use Google services
  9. Reboot and enjoy

Troubleshooting