(Guide) How to fix a hard bricked Redmi Note 9 (Merlin) (Hard Brick)

Search This thread

BLACK_TACIT_RONIN

New member
Apr 14, 2023
1
0
excellent thank you very much I already knew how to use sp but I didn't have drivers, all the others didn't work for me with multiple errors, in all 3, with these it was fast and smooth

by the way I'm not a note 9 but a note 8 2021, but since they have the same mtk processor, tip: press all the buttons then connect the cable, grab it suddenly
excelente muchas gracias ya sabia usar sp pero no tenia drivers, todos los demas no me funcionaron con multiples errores, en los 3, con estos fue rapido y suave

por cierto no soy un note 9 sino un note 8 2021, pero como tienen procesador mtk igual, tip: presiona todos los botones luego conecta el cable, agarra de golpe
Mod. edit: post translated. alecxs
 
Last edited by a moderator:

nathanaimless

New member
Apr 20, 2023
2
0
Redmi 9
"Hi, I'm having problems with my Redmi 9 Lancelot. After installing TWRP, my phone bricked and now it's restarting endlessly. When I try to enter fastboot mode or recovery mode, the phone won't enter and it goes back to the desktop screen. MIUI while keeps restarting endlessly I tried to recognize it on the computer but it is not recognized in any mode.
 

nathanaimless

New member
Apr 20, 2023
2
0
Redmi 9
"Hi, I'm having problems with my Redmi 9 Lancelot. After installing TWRP, my phone bricked and now it's restarting endlessly. When I try to enter fastboot mode or recovery mode, the phone won't enter and it goes back to the desktop screen. MIUI while keeps restarting endlessly I tried to recognize it on the computer but it is not recognized in any mode. Help me
 

JulanaNicola1322

New member
Apr 22, 2023
1
0
Can someone help me? When i connect the device it says Device Descriptor Request failed and i installed all the drivers and followed all the stepa until that moment. Do someone deal with that problem. Can it be solved?
 

alberto-01

Member
Apr 26, 2023
6
0
Finalmente, hecho. Encontré esto:
- Mantenga presionado el volumen hacia arriba y hacia abajo cuando se conecte para que el dispositivo lo reconozca.
- Debes elegir la imagen de inicio rápido correcta (rom de stock de origen), si no, los dispositivos no pueden iniciarse en miui rom porque el gestor de arranque se bloquea después de sp flash
Y por fin, muchas gracias, me salvaste el día.
Ayudame puedes arreglar mi movil desde tu pc es q no me sale en la mia
 

Clark Joseph Kent

Senior Mod / Moderator & RC-RT Committees Lead
Staff member
Dec 17, 2011
28,015
3
64,416
54
www.marines.com
Samsung Galaxy S22 Ultra
Ayudame puedes arreglar mi movil desde tu pc es q no me sale en la mia
As per the Forum Rules.

4. Use the English language.

We understand that with all the different nationalities, not everyone speaks English well, but please try. If you're really unable to post in English, use an online translator. You're free to include your original message in your own language, below the English translation. (This rule covers your posts, profile entries and signature). You could try :- https://translate.google.com/ , https://www.babelfish.com/ or https://fanyi.baidu.com/#auto/en or use one of your choice.
 

alberto-01

Member
Apr 26, 2023
6
0
TL|DR

Errores de Python, paso 8 y 12 en Windows 10


  1. Vaya a -> "inicio" y escriba "Administrar alias de ejecución de aplicaciones". Vaya a él y apague "Python"
=========================

Ahora lee....


Por si alguien tiene problemas con el paso :8

Escenario: el archivo BAT llama a `python` y en algunas ventanas 10 esto dará como resultado un mensaje sobre la tienda de Windows (incluso si se agrega la ruta)

No se encontró Python; ejecutar sin argumentos para instalar desde Microsoft Store, o deshabilitar este acceso directo desde Configuración

pero `py` funciona, así que simplemente edite el archivo BAT y reemplace la llamada de `python` con `py`, instalará todos los módulos de python sin errores.

EDITAR:
Esto también afecta el paso: 12

Encontré una solución aquí: https://stackoverflow.com/questions...arguments-to-install-from-the-microsoft-store

  1. Vaya a -> "inicio" y escriba "Administrar alias de ejecución de aplicaciones". Vaya a él y apague "Python"

El error:
View attachment 5476719

Después de editar el archivo BAT reemplazando `python` con `py`
View attachment 5476717
Help me, you can fix my mobile from your pc, it's that I don't get step 8 and 11 on mine please
 

Poxujistas

New member
Jul 10, 2014
2
0
My usb cable crapped out on me during the "download" and now whenever i connect the phone to PC it just shows unrecognized device. Python script picks up nothing. Tried different drivers etc. Are there any options after botched download or am I done?..
 

alberto-01

Member
Apr 26, 2023
6
0
Si realizó el paso 9, debería reconocerlo, intente reiniciar su computadora si aún no lo hizo. Además, su teléfono sería visible solo por un segundo antes de que se desconecte, por lo que debe actuar rápido.
[2023-05-01 15:22:48.905661] Esperando dispositivo
[2023-05-01 15:22:54.319671] Puerto encontrado = COM6
Rastreo (llamadas recientes más última):
Archivo "main.py", línea 213, en <módulo>
principal()
Archivo "main.py", línea 44, en main
config, serial_link_authorization, download_agent_authorization, hw_code =
get_device_info(dispositivo, argumentos)
Archivo "main.py", línea 153, en get_device_info
subir mi
Archivo "main.py", línea 146, en get_device_info
config = Config().default(hw_code)
Archivo "D:\Beto\fsgsgsg\Nueva carpeta\Nueva carpeta\Nueva carpeta\Updated BTP\Up
fechado BTP\src\config.py", línea 15, por defecto
self.from_file(config, hw_code)
Archivo "D:\Beto\fsgsgsg\Nueva carpeta\Nueva carpeta\Nueva carpeta\Updated BTP\Up
fechado BTP\src\config.py", línea 28, en from_file
aumentar NotImplementedError("No se puede encontrar {} hw_code en config".format(hw_code))

NotImplementedError: no se puede encontrar 0x989 hw_code en la configuración
Presione una tecla para continuar. . . How do I solve this error in the bypass, I tried 1 and 2 and the same thing comes out and when I enter the flash tool that I'm going to put the sccater I also get an error, can someone help me solve these two errors?
 

amine90501

New member
Mar 29, 2016
1
0
i tried downgrading from miui 13.0.2 to miui 11 and my phone got hard bricked but i followed all the steps and my phone works now thank you sooo muchhh <3 <3 <3
 

Emhmed_Ahmady

New member
May 17, 2023
2
0
View attachment 5563587

A how-to guide of restoring a completely bricked Redmi Note 9​


Hi, In this guide, I will teach you how to fix a hard-bricked Redmi Note 9 (merlin) and bring it back to its original state.
How does a hard-bricked Redmi Note 9 look like? it's stuck in an infinite boot loop showing only the Redmi logo,
Can't access recovery with power+vol down, can't enter fastboot, can't connect it to a computer either.

If this is your phone here's how you can solve it without the need for service.

Following this guide keep in mind that everything would be erased from your phone including custom Recovery or ROM obviously. Also the bootloader would get locked again.
(I mean at this point you either have a useless brick or a working phone, you are choosing).


This is tested by me, and it works as long as you follow the steps carefully and you don't skip anything.
(I did this on Windows 10 btw)


  1. You gonna need to download, Python and the official Xiaomi fastboot image for Redmi Note 9. Also the zip file I'm attaching bellow. the zip file contains the MTK Drivers, SP Flash Tool, and some additional scripts like MI auth bypass etc,
  2. Get thefastboot image from here select your version (I picked the latest global) click download scroll down where it says "type:fastboot" and click "download: full Rom" the file name should look like this "merlin_images....tgz" or "merlin_global_images....tgz", etc, NOT miui_Merlin.zip,
  3. Get python from the official website site, I tested it with 3.9.7 but the latest version should work fine. Now, you have all the necessary files to start.
  4. Let the phone's battery die so the boot looping completely ends. (else you'll get error STATUS_EXT_RAM_EXCEPTION (0xC0050005) when using SP Flash Tool). ( I also tried it with a full battery and still worked so idk for sure how necessary this step is).
  5. Install Python select the "add to PATH" option, you can test if it was installed correctly by opening cmd and writing "python" or "py" it should output the python version.
  6. Extract the attached zip file and the fastboot image each into their folders.
  7. Enter the MTK Driver folder Install the MTK Driver for MTK SP flash tool.MTK_Driver_Auto_Installer_SP_Drivers_20160804.exe, Reboot your computer.
  8. Enter the python folder, run the "install pyusb pyserial json5.bat" when it's done close the terminal.
  9. Enter the driver folder, this folder contains a USB to COM driver for MTK Devices, right-click the "cdc-acm.inf" click install.
  10. Enter the libusb folder, run the libusb-win32-devel-filter-1.2.6.0.exe file, click next,next...install, when it's done it would prompt you to launch "filter installer wizard" click finish, when the wizard shows up, select "Install a device filter" it would show you your connected USB devices,
  11. Get your phone and a USB cable, connect the USB cable to your computer,while holding the volume up button on your phone connect your phone to the computer (Based on community feedback you might need to hold both up and down volume buttons AND power button!) once your phone turns on you would see your phone listed as "MediaTek USB Port" at the libusb filter installer before your phone reboots click at the "MediaTek USB Port" and then click install if you don't do it on time, your phone will get disconnected because of rebooting, try again re-plugging your phone. once you click install, You should get a pop-up message saying "...device filter successfully installed for MediaTek USB port..." click ok and exit, then remove your phone from the computer.
  12. Enter the bypass folder (This folder contains scripts to bypasses the Mi auth) double click the "1ST RUN THIS.bat" when it says "waiting for device" hold volume up and plug your phone into the computer (btw: You can let the button when it's recognized by the script). now most likely it would say "RuntimeError: unexpected output, expected 0xfd got 0xfe", if it does close the script and disconnect your phone, Try the "2ND RUN THIS.bat" when it shows "Waiting for device" hold volume up and connect your phone to the computer, wait till the console recognizes your phone, (At this part it might take few tries to make it work, try reconnecting your phone without holding any buttons or try holding volume down while reconnecting your phone) Once it gets recognized it would output "Found port = COM3" and Protection disabled. At this part your phone has stopped boot looping which is good but, DO NOT TOUCH YOUR PHONE, DO NOT DISCONNECT IT FROM THE COMPUTER, set your phone aside, and continue with the guide.
  13. Enter the SP Flash Tool folder run the flash_tool.exe at the Download-Agent click choose and select the DA_6765_6785_6768_6873_6885_6853.bin file which is included in the SP flash tool folder.
  14. At the Authentication File, click choose and select the auth_sv5.auth included in the SP flash tool folder.
  15. At the Scatter-loading File, click choose, go to the fastboot image extraction folder (Step 4) then enter the images folder and select the MT6768_Android_scatter.txt file (Fastbootimage/images/MT6768_Android_scatter.txt)
  16. On the drop-downbox below the "Authentication File" label change the option from Download Only to Firmware Upgrade.
  17. At the toolbar above click Options -> Option... go to Connection check the UART option and set the Baud rate to 921600, make sure the com port option is set to com 3, then close the window.
  18. Click Download with the green arrow, now wait till it finished flashing your phone this would take quite of time, at this part DO NOT TOUCH ANYTHING LET IT FINISH TO AVOID ANY CURROPTION ON YOUR PHONE. (If you get "Error : STATUS_STOR_LIFE_EXHAUST" go to options-> general and uncheck Storage life cycle check).
  19. When it's done it would show you a pop-up window "Download Ok" with a green background and a checkmark, click the X to close, and now you can also close the SP Flash tool app.
  20. Disconnect your device from your computer and press the power buttonto start your phone, connect it to a charger or back to the computer since there was no charge so it won't die suddenly now.
  21. Your phone now should boot normally showing the MIUI logo, because its first boot it would take few minutes for the phone to boot, wait patiently and you would see the "first setup" screen.
  22. That's it! You successfully brought back to life a hard-bricked Redmi Note 9 (merlin). A huge weight now has lifted from you :) hf.

Credits:
Bypass script and payload included in the attachment file is provided by (chaosmaster, xyzz) github
is this steps work only on note 9 or i can use it for Redmi k40 gaming (ares) ?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    View attachment 5563587

    A how-to guide of restoring a completely bricked Redmi Note 9​


    Hi, In this guide, I will teach you how to fix a hard-bricked Redmi Note 9 (merlin) and bring it back to its original state.
    How does a hard-bricked Redmi Note 9 look like? it's stuck in an infinite boot loop showing only the Redmi logo,
    Can't access recovery with power+vol down, can't enter fastboot, can't connect it to a computer either.

    If this is your phone here's how you can solve it without the need for service.

    Following this guide keep in mind that everything would be erased from your phone including custom Recovery or ROM obviously. Also the bootloader would get locked again.
    (I mean at this point you either have a useless brick or a working phone, you are choosing).


    This is tested by me, and it works as long as you follow the steps carefully and you don't skip anything.
    (I did this on Windows 10 btw)


    1. You gonna need to download, Python and the official Xiaomi fastboot image for Redmi Note 9. Also the zip file I'm attaching bellow. the zip file contains the MTK Drivers, SP Flash Tool, and some additional scripts like MI auth bypass etc,
    2. Get thefastboot image from here select your version (I picked the latest global) click download scroll down where it says "type:fastboot" and click "download: full Rom" the file name should look like this "merlin_images....tgz" or "merlin_global_images....tgz", etc, NOT miui_Merlin.zip,
    3. Get python from the official website site, I tested it with 3.9.7 but the latest version should work fine. Now, you have all the necessary files to start.
    4. Let the phone's battery die so the boot looping completely ends. (else you'll get error STATUS_EXT_RAM_EXCEPTION (0xC0050005) when using SP Flash Tool). ( I also tried it with a full battery and still worked so idk for sure how necessary this step is).
    5. Install Python select the "add to PATH" option, you can test if it was installed correctly by opening cmd and writing "python" or "py" it should output the python version.
    6. Extract the attached zip file and the fastboot image each into their folders.
    7. Enter the MTK Driver folder Install the MTK Driver for MTK SP flash tool.MTK_Driver_Auto_Installer_SP_Drivers_20160804.exe, Reboot your computer.
    8. Enter the python folder, run the "install pyusb pyserial json5.bat" when it's done close the terminal.
    9. Enter the driver folder, this folder contains a USB to COM driver for MTK Devices, right-click the "cdc-acm.inf" click install.
    10. Enter the libusb folder, run the libusb-win32-devel-filter-1.2.6.0.exe file, click next,next...install, when it's done it would prompt you to launch "filter installer wizard" click finish, when the wizard shows up, select "Install a device filter" it would show you your connected USB devices,
    11. Get your phone and a USB cable, connect the USB cable to your computer,while holding the volume up button on your phone connect your phone to the computer (Based on community feedback you might need to hold both up and down volume buttons AND power button!) once your phone turns on you would see your phone listed as "MediaTek USB Port" at the libusb filter installer before your phone reboots click at the "MediaTek USB Port" and then click install if you don't do it on time, your phone will get disconnected because of rebooting, try again re-plugging your phone. once you click install, You should get a pop-up message saying "...device filter successfully installed for MediaTek USB port..." click ok and exit, then remove your phone from the computer.
    12. Enter the bypass folder (This folder contains scripts to bypasses the Mi auth) double click the "1ST RUN THIS.bat" when it says "waiting for device" hold volume up and plug your phone into the computer (btw: You can let the button when it's recognized by the script). now most likely it would say "RuntimeError: unexpected output, expected 0xfd got 0xfe", if it does close the script and disconnect your phone, Try the "2ND RUN THIS.bat" when it shows "Waiting for device" hold volume up and connect your phone to the computer, wait till the console recognizes your phone, (At this part it might take few tries to make it work, try reconnecting your phone without holding any buttons or try holding volume down while reconnecting your phone) Once it gets recognized it would output "Found port = COM3" and Protection disabled. At this part your phone has stopped boot looping which is good but, DO NOT TOUCH YOUR PHONE, DO NOT DISCONNECT IT FROM THE COMPUTER, set your phone aside, and continue with the guide.
    13. Enter the SP Flash Tool folder run the flash_tool.exe at the Download-Agent click choose and select the DA_6765_6785_6768_6873_6885_6853.bin file which is included in the SP flash tool folder.
    14. At the Authentication File, click choose and select the auth_sv5.auth included in the SP flash tool folder.
    15. At the Scatter-loading File, click choose, go to the fastboot image extraction folder (Step 4) then enter the images folder and select the MT6768_Android_scatter.txt file (Fastbootimage/images/MT6768_Android_scatter.txt)
    16. On the drop-downbox below the "Authentication File" label change the option from Download Only to Firmware Upgrade.
    17. At the toolbar above click Options -> Option... go to Connection check the UART option and set the Baud rate to 921600, make sure the com port option is set to com 3, then close the window.
    18. Click Download with the green arrow, now wait till it finished flashing your phone this would take quite of time, at this part DO NOT TOUCH ANYTHING LET IT FINISH TO AVOID ANY CURROPTION ON YOUR PHONE. (If you get "Error : STATUS_STOR_LIFE_EXHAUST" go to options-> general and uncheck Storage life cycle check).
    19. When it's done it would show you a pop-up window "Download Ok" with a green background and a checkmark, click the X to close, and now you can also close the SP Flash tool app.
    20. Disconnect your device from your computer and press the power buttonto start your phone, connect it to a charger or back to the computer since there was no charge so it won't die suddenly now.
    21. Your phone now should boot normally showing the MIUI logo, because its first boot it would take few minutes for the phone to boot, wait patiently and you would see the "first setup" screen.
    22. That's it! You successfully brought back to life a hard-bricked Redmi Note 9 (merlin). A huge weight now has lifted from you hf.:)

    Credits:
    Bypass script and payload included in the attachment file is provided by (chaosmaster, xyzz) github
    Uff bro realmente gracias, lo logre siguiendo todos los pasos en mi redmi note 9 de verdad que ya no sabia que hacer esta era la ultima esperanza que tenia
  • 68
    guide_img.jpg


    A how-to guide of restoring a completely bricked Redmi Note 9​


    Hi, In this guide, I will teach you how to fix a hard-bricked Redmi Note 9 (merlin) and bring it back to its original state.
    How does a hard-bricked Redmi Note 9 look like? it's stuck in an infinite boot loop showing only the Redmi logo,
    Can't access recovery with power+vol down, can't enter fastboot, can't connect it to a computer either.

    If this is your phone here's how you can solve it without the need for service.

    Following this guide keep in mind that everything would be erased from your phone including custom Recovery or ROM obviously. Also the bootloader would get locked again.
    (I mean at this point you either have a useless brick or a working phone, you are choosing).


    This is tested by me, and it works as long as you follow the steps carefully and you don't skip anything.
    (I did this on Windows 10 btw)


    1. You gonna need to download, Python and the official Xiaomi fastboot image for Redmi Note 9. Also the zip file I'm attaching bellow. the zip file contains the MTK Drivers, SP Flash Tool, and some additional scripts like MI auth bypass etc,
    2. Get thefastboot image from here select your version (I picked the latest global) click download scroll down where it says "type:fastboot" and click "download: full Rom" the file name should look like this "merlin_images....tgz" or "merlin_global_images....tgz", etc, NOT miui_Merlin.zip,
    3. Get python from the official website site, I tested it with 3.9.7 but the latest version should work fine. Now, you have all the necessary files to start.
    4. Let the phone's battery die so the boot looping completely ends. (else you'll get error STATUS_EXT_RAM_EXCEPTION (0xC0050005) when using SP Flash Tool). ( I also tried it with a full battery and still worked so idk for sure how necessary this step is).
    5. Install Python select the "add to PATH" option, you can test if it was installed correctly by opening cmd and writing "python" or "py" it should output the python version.
    6. Extract the attached zip file and the fastboot image each into their folders.
    7. Enter the MTK Driver folder Install the MTK Driver for MTK SP flash tool.MTK_Driver_Auto_Installer_SP_Drivers_20160804.exe, Reboot your computer.
    8. Enter the python folder, run the "install pyusb pyserial json5.bat" when it's done close the terminal.
    9. Enter the driver folder, this folder contains a USB to COM driver for MTK Devices, right-click the "cdc-acm.inf" click install.
    10. Enter the libusb folder, run the libusb-win32-devel-filter-1.2.6.0.exe file, click next,next...install, when it's done it would prompt you to launch "filter installer wizard" click finish, when the wizard shows up, select "Install a device filter" it would show you your connected USB devices,
    11. Get your phone and a USB cable, connect the USB cable to your computer,while holding the volume up button on your phone connect your phone to the computer (Based on community feedback you might need to hold both up and down volume buttons AND power button!) once your phone turns on you would see your phone listed as "MediaTek USB Port" at the libusb filter installer before your phone reboots click at the "MediaTek USB Port" and then click install if you don't do it on time, your phone will get disconnected because of rebooting, try again re-plugging your phone. once you click install, You should get a pop-up message saying "...device filter successfully installed for MediaTek USB port..." click ok and exit, then remove your phone from the computer.
    12. Enter the bypass folder (This folder contains scripts to bypasses the Mi auth) double click the "1ST RUN THIS.bat" when it says "waiting for device" hold volume up and plug your phone into the computer (btw: You can let the button when it's recognized by the script). now most likely it would say "RuntimeError: unexpected output, expected 0xfd got 0xfe", if it does close the script and disconnect your phone, Try the "2ND RUN THIS.bat" when it shows "Waiting for device" hold volume up and connect your phone to the computer, wait till the console recognizes your phone, (At this part it might take few tries to make it work, try reconnecting your phone without holding any buttons or try holding volume down while reconnecting your phone) Once it gets recognized it would output "Found port = COM3" and Protection disabled. At this part your phone has stopped boot looping which is good but, DO NOT TOUCH YOUR PHONE, DO NOT DISCONNECT IT FROM THE COMPUTER, set your phone aside, and continue with the guide.
    13. Enter the SP Flash Tool folder run the flash_tool.exe at the Download-Agent click choose and select the DA_6765_6785_6768_6873_6885_6853.bin file which is included in the SP flash tool folder.
    14. At the Authentication File, click choose and select the auth_sv5.auth included in the SP flash tool folder.
    15. At the Scatter-loading File, click choose, go to the fastboot image extraction folder (Step 4) then enter the images folder and select the MT6768_Android_scatter.txt file (Fastbootimage/images/MT6768_Android_scatter.txt)
    16. On the drop-downbox below the "Authentication File" label change the option from Download Only to Firmware Upgrade.
    17. At the toolbar above click Options -> Option... go to Connection check the UART option and set the Baud rate to 921600, make sure the com port option is set to com 3, then close the window.
    18. Click Download with the green arrow, now wait till it finished flashing your phone this would take quite of time, at this part DO NOT TOUCH ANYTHING LET IT FINISH TO AVOID ANY CURROPTION ON YOUR PHONE. (If you get "Error : STATUS_STOR_LIFE_EXHAUST" go to options-> general and uncheck Storage life cycle check).
    19. When it's done it would show you a pop-up window "Download Ok" with a green background and a checkmark, click the X to close, and now you can also close the SP Flash tool app.
    20. Disconnect your device from your computer and press the power buttonto start your phone, connect it to a charger or back to the computer since there was no charge so it won't die suddenly now.
    21. Your phone now should boot normally showing the MIUI logo, because its first boot it would take few minutes for the phone to boot, wait patiently and you would see the "first setup" screen.
    22. That's it! You successfully brought back to life a hard-bricked Redmi Note 9 (merlin). A huge weight now has lifted from you :) hf.

    Credits:
    Bypass script and payload included in the attachment file is provided by (chaosmaster, xyzz) github
    2
    View attachment 5563587

    A how-to guide of restoring a completely bricked Redmi Note 9​


    Hi, In this guide, I will teach you how to fix a hard-bricked Redmi Note 9 (merlin) and bring it back to its original state.
    How does a hard-bricked Redmi Note 9 look like? it's stuck in an infinite boot loop showing only the Redmi logo,
    Can't access recovery with power+vol down, can't enter fastboot, can't connect it to a computer either.

    If this is your phone here's how you can solve it without the need for service.

    Following this guide keep in mind that everything would be erased from your phone including custom Recovery or ROM obviously. Also the bootloader would get locked again.
    (I mean at this point you either have a useless brick or a working phone, you are choosing).


    This is tested by me, and it works as long as you follow the steps carefully and you don't skip anything.
    (I did this on Windows 10 btw)


    1. You gonna need to download, Python and the official Xiaomi fastboot image for Redmi Note 9. Also the zip file I'm attaching bellow. the zip file contains the MTK Drivers, SP Flash Tool, and some additional scripts like MI auth bypass etc,
    2. Get thefastboot image from here select your version (I picked the latest global) click download scroll down where it says "type:fastboot" and click "download: full Rom" the file name should look like this "merlin_images....tgz" or "merlin_global_images....tgz", etc, NOT miui_Merlin.zip,
    3. Get python from the official website site, I tested it with 3.9.7 but the latest version should work fine. Now, you have all the necessary files to start.
    4. Let the phone's battery die so the boot looping completely ends. (else you'll get error STATUS_EXT_RAM_EXCEPTION (0xC0050005) when using SP Flash Tool). ( I also tried it with a full battery and still worked so idk for sure how necessary this step is).
    5. Install Python select the "add to PATH" option, you can test if it was installed correctly by opening cmd and writing "python" or "py" it should output the python version.
    6. Extract the attached zip file and the fastboot image each into their folders.
    7. Enter the MTK Driver folder Install the MTK Driver for MTK SP flash tool.MTK_Driver_Auto_Installer_SP_Drivers_20160804.exe, Reboot your computer.
    8. Enter the python folder, run the "install pyusb pyserial json5.bat" when it's done close the terminal.
    9. Enter the driver folder, this folder contains a USB to COM driver for MTK Devices, right-click the "cdc-acm.inf" click install.
    10. Enter the libusb folder, run the libusb-win32-devel-filter-1.2.6.0.exe file, click next,next...install, when it's done it would prompt you to launch "filter installer wizard" click finish, when the wizard shows up, select "Install a device filter" it would show you your connected USB devices,
    11. Get your phone and a USB cable, connect the USB cable to your computer,while holding the volume up button on your phone connect your phone to the computer (Based on community feedback you might need to hold both up and down volume buttons AND power button!) once your phone turns on you would see your phone listed as "MediaTek USB Port" at the libusb filter installer before your phone reboots click at the "MediaTek USB Port" and then click install if you don't do it on time, your phone will get disconnected because of rebooting, try again re-plugging your phone. once you click install, You should get a pop-up message saying "...device filter successfully installed for MediaTek USB port..." click ok and exit, then remove your phone from the computer.
    12. Enter the bypass folder (This folder contains scripts to bypasses the Mi auth) double click the "1ST RUN THIS.bat" when it says "waiting for device" hold volume up and plug your phone into the computer (btw: You can let the button when it's recognized by the script). now most likely it would say "RuntimeError: unexpected output, expected 0xfd got 0xfe", if it does close the script and disconnect your phone, Try the "2ND RUN THIS.bat" when it shows "Waiting for device" hold volume up and connect your phone to the computer, wait till the console recognizes your phone, (At this part it might take few tries to make it work, try reconnecting your phone without holding any buttons or try holding volume down while reconnecting your phone) Once it gets recognized it would output "Found port = COM3" and Protection disabled. At this part your phone has stopped boot looping which is good but, DO NOT TOUCH YOUR PHONE, DO NOT DISCONNECT IT FROM THE COMPUTER, set your phone aside, and continue with the guide.
    13. Enter the SP Flash Tool folder run the flash_tool.exe at the Download-Agent click choose and select the DA_6765_6785_6768_6873_6885_6853.bin file which is included in the SP flash tool folder.
    14. At the Authentication File, click choose and select the auth_sv5.auth included in the SP flash tool folder.
    15. At the Scatter-loading File, click choose, go to the fastboot image extraction folder (Step 4) then enter the images folder and select the MT6768_Android_scatter.txt file (Fastbootimage/images/MT6768_Android_scatter.txt)
    16. On the drop-downbox below the "Authentication File" label change the option from Download Only to Firmware Upgrade.
    17. At the toolbar above click Options -> Option... go to Connection check the UART option and set the Baud rate to 921600, make sure the com port option is set to com 3, then close the window.
    18. Click Download with the green arrow, now wait till it finished flashing your phone this would take quite of time, at this part DO NOT TOUCH ANYTHING LET IT FINISH TO AVOID ANY CURROPTION ON YOUR PHONE. (If you get "Error : STATUS_STOR_LIFE_EXHAUST" go to options-> general and uncheck Storage life cycle check).
    19. When it's done it would show you a pop-up window "Download Ok" with a green background and a checkmark, click the X to close, and now you can also close the SP Flash tool app.
    20. Disconnect your device from your computer and press the power buttonto start your phone, connect it to a charger or back to the computer since there was no charge so it won't die suddenly now.
    21. Your phone now should boot normally showing the MIUI logo, because its first boot it would take few minutes for the phone to boot, wait patiently and you would see the "first setup" screen.
    22. That's it! You successfully brought back to life a hard-bricked Redmi Note 9 (merlin). A huge weight now has lifted from you :) hf.

    Credits:
    Bypass script and payload included in the attachment file is provided by (chaosmaster, xyzz) github
    thank you so much it worked with redmi 9
    some differences :
    - i use windows 11
    - no need to wait to drain the battery just hold volume down and power key for redmi 9
    - python latest version 3.11 didn't work but windows store version 3.10 worked
    - and of course i downloaded the fastboot for redmi 9
    2
    Had to create an account just to thank the OP

    I bricked my Redmi note 9 by trying to install twrp using an outdated tutorial , had access to nothing , was already planning on spending money I shouldn't getting another phone at the moment. Then I stumbled upon this thread.

    You are a god mate! Really appreciate the help.
    2
    When you are choosing fastboot it shows you both recovery and fastboot as options, one is above the other, fastboot is bellow recovery , if you scroll down you'll see the link for the fastboot image
    Thanks, that is what i was missing.


    Edit:

    Thanks @vagelis199 this detailed guide and your input earlier saved my bricked Merlin.


    Following the guide, I downgraded it to Android 10 MIUI 11 in hopes of now rooting the darn thing and remove the Xiaomi bloat and ads
    2
    i'm having an ERROR notification : STATUS_EXT_RAM_EXCEPTION (0xC0050005) help me