• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[GUIDE][UNBRICK] How unbrick your bootloop in MERLIN after flashing TWRP (Xiaomi Redmi Note 9 / Xiaomi Redmi 10X 4G)

Search This thread

VD171

Senior Member
Jun 21, 2012
2,058
2
1,642
127.0.0.1
LG K10
Samsung Galaxy J7
If you try to flash the file misc.bin your device can be in bootloop forever, please follow this guide to fix it.

It works with:
- Xiaomi Redmi Note 9
- Xiaomi Redmi 10X 4G

Method 1:

Once your device is on the black screen, plug it on USB (try USB3.0 first).

And then check if it is detected in adb recovery mode:
Code:
adb devices

If you can see your device in adb recovery mode, you have to erase misc partition:
Code:
dd if=/dev/zero of=/dev/block/mmcblk0p2

After it is done, you can reboot your device to system or fastboot again.

Keep atention, if you execute this command wrong, you will ERASE any other partition and it can brick your device forever and cause more damages.

Method 2:


Once your device is on the black screen, plug it on USB (try USB3.0 first).

And then check if it is detected in adb recovery mode:
Code:
adb devices

And then reboot to bootloader:
Code:
adb reboot bootloader

And then check if it is detected in fastboot mode:
Code:
fastboot devices

If you can see your device in fastboot mode, you have to erase misc partition:
Code:
fastboot erase misc

Keep attention, if you try to format misc partition, you will get this error: Formatting is not supported for file system with type 'raw data'.

After it is done, you can reboot your device to system or fastboot again.

Keep atention, if you execute this command wrong, you will ERASE any other partition and it can brick your device forever and cause more damages.

Good luck !



:unsure: Do you need help with your MERLIN device ?
Read this FAQ: https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4225163/
 
Last edited:

Communos

Senior Member
Oct 28, 2019
243
168
Paris
Xiaomi Redmi 5
Google Pixel 3 XL
If you boot your device and it keeps in a black screen because outdated TWRP, please follow this guide.

It works with:
- Xiaomi Redmi 10X 4G
- Xiaomi Redmi Note 9

Once your device is on the black screen, plug it on USB (try USB3.0 first).

And then check if it is detected:
Code:
adb devices

If you can see your device in adb recovery mode, you have to format misc partition:
Code:
dd if=/dev/zero of=/dev/block/mmcblk0p2

After it is done, you can reboot your device to system or fastboot again.

Keep atention, if you execute this command wrong, you will FORMAT any other partition and it can brick your device forever and cause more damages.

Good luck !
OR they can just use
adb reboot bootloader
boot to fastboot and flash the stock image of the partition which is corrupted.
 

VD171

Senior Member
Jun 21, 2012
2,058
2
1,642
127.0.0.1
LG K10
Samsung Galaxy J7
OR they can just use
adb reboot bootloader
boot to fastboot and flash the stock image of the partition which is corrupted.

Please, read the guide. This guide is for people who flashed misc.bin partition from the outdated TWRP.
This misc.bin partition from the outdated TWRP, will bootloop the device forever in recovery mode.
There is NO misc partition on stock image. So, you have to erase misc partition for stops with bootloop in recovery.
 
Last edited:

Communos

Senior Member
Oct 28, 2019
243
168
Paris
Xiaomi Redmi 5
Google Pixel 3 XL
Please, read the guide. This guide is for people who flashed misc.bin partition from the outdated TWRP.
This misc.bin partition from the outdated TWRP, will bootloop the device forever in recovery mode.
There is NO misc partition on stock image. So, you have to erase or format misc partition for stops with bootloop in recovery.
Well, I've been in this situation twice or thrice, first I fixed by flashing full stock rom, rest of the times flashing stock recovery and stock boot fixed it for me.
 

VD171

Senior Member
Jun 21, 2012
2,058
2
1,642
127.0.0.1
LG K10
Samsung Galaxy J7
Well, I've been in this situation twice or thrice, first I fixed by flashing full stock rom, rest of the times flashing stock recovery and stock boot fixed it for me.

As I've said, if you've flashed misc.bin from the outdated TWRP, just flashing stock recovery or stock boot will not fix the problem.
For fixing it, you have to erase misc partition. If it doesn't help you, please, go away and let it help who wants help.
Nice job and see you later.
 
Last edited:

imranbinlatif

New member
Aug 20, 2020
2
0
If you try to boot your device and it keeps in a black screen because outdated TWRP, please follow this guide.

It works with:
- Xiaomi Redmi Note 9
- Xiaomi Redmi 10X 4G

Method 1:

Once your device is on the black screen, plug it on USB (try USB3.0 first).

And then check if it is detected in adb recovery mode:
Code:
adb devices

If you can see your device in adb recovery mode, you have to format misc partition:
Code:
dd if=/dev/zero of=/dev/block/mmcblk0p2

After it is done, you can reboot your device to system or fastboot again.

Keep atention, if you execute this command wrong, you will FORMAT any other partition and it can brick your device forever and cause more damages.

Method 2:


Once your device is on the black screen, plug it on USB (try USB3.0 first).

And then check if it is detected in adb recovery mode:
Code:
adb devices

And then reboot to bootloader:
Code:
adb reboot bootloader

And then check if it is detected in fastboot mode:
Code:
fastboot devices

If you can see your device in fastboot mode, you have to format misc partition:
Code:
fastboot format misc

After it is done, you can reboot your device to system or fastboot again.

Keep atention, if you execute this command wrong, you will FORMAT any other partition and it can brick your device forever and cause more damages.

Good luck !
thanks sooo much
 
Feb 3, 2021
46
0
If you try to boot your device and it keeps in a black screen because outdated TWRP, please follow this guide.

It works with:
- Xiaomi Redmi Note 9
- Xiaomi Redmi 10X 4G

Method 1:

Once your device is on the black screen, plug it on USB (try USB3.0 first).

And then check if it is detected in adb recovery mode:
Code:
adb devices

If you can see your device in adb recovery mode, you have to erase misc partition:
Code:
dd if=/dev/zero of=/dev/block/mmcblk0p2

After it is done, you can reboot your device to system or fastboot again.

Keep atention, if you execute this command wrong, you will ERASE any other partition and it can brick your device forever and cause more damages.

Method 2:


Once your device is on the black screen, plug it on USB (try USB3.0 first).

And then check if it is detected in adb recovery mode:
Code:
adb devices

And then reboot to bootloader:
Code:
adb reboot bootloader

And then check if it is detected in fastboot mode:
Code:
fastboot devices

If you can see your device in fastboot mode, you have to erase misc partition:
Code:
fastboot erase misc

Keep attention, if you try to format misc partition, you will get this error: Formatting is not supported for file system with type 'raw data'.

After it is done, you can reboot your device to system or fastboot again.

Keep atention, if you execute this command wrong, you will ERASE any other partition and it can brick your device forever and cause more damages.

Good luck !



:unsure: Do you need help with your MERLIN device ?
Read this FAQ: https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4225163/
Hey there, i erased the Misc partition, it's still bootlooping,

I tried to un-brick my device from the Xiaomi Mod Tool,

Yes i did try flashing a outdated TWRP image,

It got hard bricked, and i tried to fix it,

through some good luck, i managed to get into "fastboot"

And, nothing, it just got soft bricked,

I guess that's proggress?

My device: merlinnfc (Redmi Note 9/10X 4G)
 

Communos

Senior Member
Oct 28, 2019
243
168
Paris
Xiaomi Redmi 5
Google Pixel 3 XL
Hey there, i erased the Misc partition, it's still bootlooping,

I tried to un-brick my device from the Xiaomi Mod Tool,

Yes i did try flashing a outdated TWRP image,

It got hard bricked, and i tried to fix it,

through some good luck, i managed to get into "fastboot"

And, nothing, it just got soft bricked,

I guess that's proggress?

My device: merlinnfc (Redmi Note 9/10X 4G)
If you have access to fastboot and erasing misc did not work, simply flash the entire stock rom you were on through MiFlash.
 

VD171

Senior Member
Jun 21, 2012
2,058
2
1,642
127.0.0.1
LG K10
Samsung Galaxy J7
Hey there, i erased the Misc partition, it's still bootlooping,

I tried to un-brick my device from the Xiaomi Mod Tool,

Yes i did try flashing a outdated TWRP image,

It got hard bricked, and i tried to fix it,

through some good luck, i managed to get into "fastboot"

And, nothing, it just got soft bricked,

I guess that's proggress?

My device: merlinnfc (Redmi Note 9/10X 4G)
Erasing misc only works if you are frozen in a black screen after flashing misc partition.
Recovery partition can't break boot.
Probably your problem is vbmeta.
Vbmeta can break the boot.
Did you flash it too?
 
Feb 3, 2021
46
0
I flashed the entire ROM,

So yes,

Every single partition, except misc since it's gone now,
When i say "Every Single Partition", I mean every single one,
this includes,

Scp1/2
super
..etc.
 

VD171

Senior Member
Jun 21, 2012
2,058
2
1,642
127.0.0.1
LG K10
Samsung Galaxy J7
I flashed the entire ROM,

So yes,

Every single partition, except misc since it's gone now,
When i say "Every Single Partition", I mean every single one,
this includes,

Scp1/2
super
..etc.
Misc partition is not present in original stock rom.
It contains a variable data/parameter for boot.
Did you solve the bootloop after flash full rom?
 
  • Like
Reactions: RN9_G85
Feb 3, 2021
46
0
No,
Here are the full details:

1. I tried flashing the recovery partition, Nothing.
2. I used an unnofficial TWRP ROM that hard bricked my device, this includes the following partitions:
Misc Opt Vbmeta Recovery
3. I managed to get into ADB recovery, i got into fastboot, then flashed the stock rom.
4. Boot loop
 

VD171

Senior Member
Jun 21, 2012
2,058
2
1,642
127.0.0.1
LG K10
Samsung Galaxy J7
No,
Here are the full details:

1. I tried flashing the recovery partition, Nothing.
2. I used an unnofficial TWRP ROM that hard bricked my device, this includes the following partitions:
Misc Opt Vbmeta Recovery
3. I managed to get into ADB recovery, i got into fastboot, then flashed the stock rom.
4. Boot loop
You need to avoid the misc partition.
If you've flashed it, you REALLY need to erase it.
Or, it will make your device to enter in recovery forever.

Vbmeta needs to be flashed with disababled verification.
Here you can find safe and secure vbmeta with disabled verification: https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4218909/
Or, it will detect modification on partitions and will reboot the device forever.

I think Opt doesn't change anything.
I'm not sure, but I think it only matter for devices without vbmeta partition. (I'M NOT SURE.)
Because it modifies the system, and obviously you will get in a bootloop.
If you want to modify the system, you need to debloat your system before.

Try to flash the whole system again.
Or just try to flash the whole rom again.
 
Last edited:
  • Like
Reactions: RN9_G85
Feb 3, 2021
46
0
I've done that twice, and i deleted misc afterwards,

What about...:
fastboot flashall -w ?

Shouldn't that help flashing the system?

Also what does Vbmeta verify?

Thanks.
 
Feb 3, 2021
46
0
PS: I tried flashing the un-official and official versions, both leave a brick, and nothing really changes, i haven't tried your "Patched" version tho.
 

VD171

Senior Member
Jun 21, 2012
2,058
2
1,642
127.0.0.1
LG K10
Samsung Galaxy J7
I've done that twice, and i deleted misc afterwards,

What about...:
fastboot flashall -w ?

Shouldn't that help flashing the system?

Also what does Vbmeta verify?

Thanks.
I'm not sure.
Just flashing the system should solve it.
Or just flashing the whole rom using the flashing scripts inside the original stock rom.
Vbmeta checks if boot, recovery and dtbo partitions keeps untouched and unmodified.
 
  • Like
Reactions: RN9_G85
Feb 3, 2021
46
0
I flashed the whole rom using the Xiaomi Mod Tool which is coded in java script,
i'll try to flash your "Patched" vbmeta image and see if that helps, if not, i'll re-flash the stock rom.
 

VD171

Senior Member
Jun 21, 2012
2,058
2
1,642
127.0.0.1
LG K10
Samsung Galaxy J7
  • Like
Reactions: RN9_G85

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    If you try to flash the file misc.bin your device can be in bootloop forever, please follow this guide to fix it.

    It works with:
    - Xiaomi Redmi Note 9
    - Xiaomi Redmi 10X 4G

    Method 1:

    Once your device is on the black screen, plug it on USB (try USB3.0 first).

    And then check if it is detected in adb recovery mode:
    Code:
    adb devices

    If you can see your device in adb recovery mode, you have to erase misc partition:
    Code:
    dd if=/dev/zero of=/dev/block/mmcblk0p2

    After it is done, you can reboot your device to system or fastboot again.

    Keep atention, if you execute this command wrong, you will ERASE any other partition and it can brick your device forever and cause more damages.

    Method 2:


    Once your device is on the black screen, plug it on USB (try USB3.0 first).

    And then check if it is detected in adb recovery mode:
    Code:
    adb devices

    And then reboot to bootloader:
    Code:
    adb reboot bootloader

    And then check if it is detected in fastboot mode:
    Code:
    fastboot devices

    If you can see your device in fastboot mode, you have to erase misc partition:
    Code:
    fastboot erase misc

    Keep attention, if you try to format misc partition, you will get this error: Formatting is not supported for file system with type 'raw data'.

    After it is done, you can reboot your device to system or fastboot again.

    Keep atention, if you execute this command wrong, you will ERASE any other partition and it can brick your device forever and cause more damages.

    Good luck !



    :unsure: Do you need help with your MERLIN device ?
    Read this FAQ: https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4225163/
    2
    12.0.5.0
    thank you so much for the interest man
    You need to flash in EDL mode.
    Just bypass the authentication: https://forum.xda-developers.com/t/...d-flash-in-edl-with-no-auth-for-free.4229679/
    1
    I flashed the entire ROM,

    So yes,

    Every single partition, except misc since it's gone now,
    When i say "Every Single Partition", I mean every single one,
    this includes,

    Scp1/2
    super
    ..etc.
    Misc partition is not present in original stock rom.
    It contains a variable data/parameter for boot.
    Did you solve the bootloop after flash full rom?
    1
    No,
    Here are the full details:

    1. I tried flashing the recovery partition, Nothing.
    2. I used an unnofficial TWRP ROM that hard bricked my device, this includes the following partitions:
    Misc Opt Vbmeta Recovery
    3. I managed to get into ADB recovery, i got into fastboot, then flashed the stock rom.
    4. Boot loop
    You need to avoid the misc partition.
    If you've flashed it, you REALLY need to erase it.
    Or, it will make your device to enter in recovery forever.

    Vbmeta needs to be flashed with disababled verification.
    Here you can find safe and secure vbmeta with disabled verification: https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4218909/
    Or, it will detect modification on partitions and will reboot the device forever.

    I think Opt doesn't change anything.
    I'm not sure, but I think it only matter for devices without vbmeta partition. (I'M NOT SURE.)
    Because it modifies the system, and obviously you will get in a bootloop.
    If you want to modify the system, you need to debloat your system before.

    Try to flash the whole system again.
    Or just try to flash the whole rom again.
    1
    can someone help me it stuck on redmi logo and restart all the time, cant go into fast boot or recovery.
    i did this tuturial but it bricked. help please
    Try to flash the MIUI rom again using spflashtool.