Issues with TWRP and /e/OS Recovery (Redmi Note 9) (English/Français)

This topic is the continuation of this one. I make a new one because I fix the bootloop problem.
I recently installed /e/OS on my father’s old phone (a Samsung Galaxy S8) and convinced by the concept I decided to try it on my Redmi Note 9.
I followed the guide available here: https://doc.e.foundation/devices/merlinx/install
Everything worked fine until I got to the part where you have to go into sideload mode, where I can’t get adb to detect the device with /e/OS Recovery. I also tried with LineageOS Recovery with the same results.
I tried many times TWRP and adb sideload seems to work but after it tell me the installation is succesfull I can’t reboot to system and I get a bootloop of TWRP screen. Not a big deal I can use adb to go in fastboot mode and flash the stock rom again. I’m using MIUI 12.5.1 (Android 11) wich seems to be the good version for /e/OS Recovery and TWRP. I also tried to install it via an SD card witout any differences, and I tried /e/OS 2.4, /e/OS 2.3 and the lastest version of LineageOS for Redmi Note 9 with the same result…
I don’t know want to do now.

==================================================

Ce sujet est la suite de celui-ci. J’en fais un nouveau car j’ai résolu le problème de bootloop.
J’ai récemment installé /e/OS sur l’ancien téléphone de mon père (un Samsung Galaxy S8) et convaincu par la proposition j’ai décidé de l’installer sur mon Redmi Note 9.
J’ai suivi le guide disponible ici : https://doc.e.foundation/devices/merlinx/install
Tout a bien fonctionné jusqu’à ce que j’arrive à la partie où il faut passer en mode sideload, où adb est incapable de détecter l’appareil avec /e/OS Recovery. J’ai aussi essayé avec LineageOS Recovery pour obtenir les mêmes résultats.
J’ai essayé plusieurs fois d’utiliser TWRP et avec lui adb sideload semble fonctionner mais après avoir un message m’indiquant une installation réussie, je ne peux pas redémarrer le système et je me retrouve avec un bootloop de l’écran de démarrage de TWRP. Ce n’est pas un problème, je peux utiliser adb pour retourner en mode fastboot et flasher la stock ROM à nouveau. J’utilise MIUI 12.5.1 (Android 11) qui semble être la bonne version pour /e/OS Recovery et TWRP. J’ai aussi essayé de l’installer via une carte SD sans aucune différence, et j’ai essayé /e/OS 2.4, /e/OS 2.3 et la dernière version de LineageOS pour Redmi Note 9 avec le même résultat…
Je ne sais pas vraiment quoi faire maintenant.

What makes you say this? Please read my first post in your other thread carefully; I cannot really explain the exact problem but Xiaomi make it less easy to flash a custom ROM over more recent MIUI versions.

This link from @vd171 is linked prominently from a link I provided https://xdaforums.com/t/faq-guide-help-assistance-solution-centre-for-merlin-redmi-note-9-redmi-10x-4g.4225163/

Again, read carefully, then move to Post #2. I think that Point #9 may cover your issue. However you should probably read the whole post thoroughly till you start to understand better why certain things are difficult with downgraded ROMs. Please try to read the whole thread to see how others have overcome this issue, looking out especially for the reason flashing an older lk partition is mentioned.


Here is a clue from https://xdaforums.com/t/rom-11-0-lineageos-18-1-for-redmi-note-9-redmi-10x-4g-unofficial.4244657/page-4#post-85016927

Note:
If you’re on previous build of lineage or any other rom that does not come with OSS Vendor, you will have to reflash MIUI 12.0.1 ID or 12.0.2 Global in fastboot and then proceed with flashing.

Another similar but different view: https://xdaforums.com/t/boot-img-patched-boot-image-partition-without-overwrite-of-recovery-for-merlin-xiaomi-redmi-note-9-xiaomi-redmi-10x-4g.4209263/#post-85025479, which links here https://xdaforums.com/t/lk-img-stock-lk-image-partition-for-merlin-xiaomi-redmi-note-9-xiaomi-redmi-10x-4g.4218925/.


You don’t mention Android versions which you tried … but again any change of Android version should be avoided … however I think both are currently Android 13 (T) Lineage-20.


You may experience broken links (as I have) in searching for older ROMs for merlin. Links to XM Firmware Updater by yshalsa should find Redmi 10X 4G/Redmi Note 9 (merlin) MIUI Downloads | XM Firmware Updater. It looks like a change of name is responsible for broken links I found in quotes from https://xdaforums.com.

https://xiaomifirmwareupdater.com/archive/miui/merlin/
http://xmfirmwareupdater.com/archive/miui/merlin/

Remember in your searches you will be looking for latest Android 11 firmware version but not latest MIUI version.

I used MIUI 12.5.1 because on /e/ instructions they say “please ensure that the device is on the latest Android 11 firmware” and lower MIUI versions are on Android 10. Also I found a guide to install TWRP with MIUI 12.5.1.

Thanks a lot for the links, I’m not yet familiar with xda it helps me a lot.
I tried to follow the instructions and flash an older lk partition, unfortunately it didn’t worked and I got almost the same thing that with my first topic but without the bootloop (I managed to fix it with the same method). Now I have to unlock the bootloader once again and then I’ll try to downgrade version maybe and make more researches.
I’ll let you know if I can make progress, thanks again!

So I worked on the problem.
I downgraded to MIUI 12.0.3 and I followed this guide : https://xdaforums.com/t/guide-installing-a-lineage-17-1-rom-in-redmi-note-9-merlin.4235003/
I got almost the same problem. The installation complete successfully but when I boot to system it doesn’t work I get a blackscreen and it restarts to recovery, but this time TWRP continued to work (before it was just bootlooping in the start screen).
I tried with /e/OS 2.4 (I got Total xfer: 0.98x), with Lineage 20.0 (Total xfer: 0.97x), and with Lineage 17.1 (Total xfer: 1.00x). Everything seems to be fine but it doesn’t work. I have no idea. It looks like there’s no problems with TWRP so I don’t know.

Well it’s not important anymore because then I tried to install /e/OS Recovery and surprisingly it worked!
Adb recognized my phone and the installation via adb sideload completed successfully and it booted in /e/.
So if you want to get /e/ on Redmi Note 9 you should flash MIUI 12.0.3 Global and then follow the instructions I guess…
Thanks a lot for your help and your time!