Stuck in recovery bootloop - Redmi K20 Pro / Xiaomi Mi 9T Pro Questions & Answe

Hello guys
I tried to flash my K20 Pro today with a custom ROM and somehow ended up with a bootloop (I wiped everything pretty much, Data, Vendor (which was probably the mistake, dunno), System, caches, all that). So, I went ahead and flashed the stock ROM through the MiFlash tool, and I can use the stock ROM. After that, I flash TWRP and repeat the process. Wipe, flash, reboot. And I get the bootloop.
Bootloader is unlocked as should be.
Anyone know what's causing this and what I can do to fix it?
Thanks in advance
EDIT: Just noticed that after this last attempt where it bootlooped into the recovery, everything's encrypted, don't know if that helps but it's there.

Format data

camp70 said:
Format data
Click to expand...
Click to collapse
Had it running on the fastboot MIUI ROM, flashed TWRP, wiped caches, system and data. Then data again. Storage shows up in 3 "partitions" and I can't paste files to them. When I try to reboot back to TWRP it just goes to fastboot and after reflashing TWRP, it still will boot to fastboot instead of the just flashed recovery. Using fastboot oem reboot-recovery if that helps.
After the wipe, doing fastboot boot twrp.img will fire up a "Failed to load/authenticate boot image: Load Error"

Format is not the same that wipe

From MIUI
Install TWRP.
Boot TWRP.
Go to wipe menu and factory reset.
Return to wipe menu and select format data.
At no point do you need to go into the advanced wipe menu.
Return to the main menu.
Go to boot menu.
Select (re)boot recovery to allow TWRP to correctly mount the newly formatted data partition.
Copy across the files you want to flash, then flash them.

Related

[Q] Recovery bootloop

I want to see if I can get this resolved without running the RUU first.
Basically, I tried everything I could to get either Hatka or Borked to install. Hatka would install but not boot, and Borked would go through the install as if it worked, but never flash anything. Finally gave up, and rebooted to try and get into recovery and restore my backup, only to have it reboot after seeing the teamwin logo. Strange. Tried to "fastboot boot" an older TWRP. Same result. Clockwork? Same thing. I've had something that from memory was identical in the past, that just randomly resolved itself, but just in case anyway...
Thank you for your help!
Fixed. Figured out I could wipe partitions with fastboot.
fastboot wipe boot
fastboot wipe system
fastboot wipe data
Recovery booted fine after that.

Bootloader problem!

Hello all!
I am having an issue with my Leeco Le2 x52x where it relocks bootloader automaticly and does not alow me to flash any other rom properly.
I have used fastboot oem unlock-go which allows me to flash twrp but not much else. Can not even format boot partition.
Anyone has any peace of info is greatly apriciated
Edit> I get an error in TWRP - E:Unable to wipe '/boot' -- uknown file system 'emmc
Unable to wipe /boot.
scudteshka said:
Hello all!
I am having an issue with my Leeco Le2 x52x where it relocks bootloader automaticly and does not alow me to flash any other rom properly.
I have used fastboot oem unlock-go which allows me to flash twrp but not much else. Can not even format boot partition.
Anyone has any peace of info is greatly apriciated
Edit> I get an error in TWRP - E:Unable to wipe '/boot' -- uknown file system 'emmc
Unable to wipe /boot.
Click to expand...
Click to collapse
Boot partition in le2 cannot be wiped. As for your bootloader relocking problem, flash twrp and then allow it to perform system modifications. Then wipe data. Then wipe system. If that doesn't work, then format data to ext2 using mkef2s and then for mat data again using ext4. Then format data ,system , cache and dalvik cache only. Your bootloader will not relock by itself again. If it still does, then flash lazyflasher to disable dm-verity and unencrypt phone
RandomDelta said:
Boot partition in le2 cannot be wiped. As for your bootloader relocking problem, flash twrp and then allow it to perform system modifications. Then wipe data. Then wipe system. If that doesn't work, then format data to ext2 using mkef2s and then for mat data again using ext4. Then format data ,system , cache and dalvik cache only. Your bootloader will not relock by itself again. If it still does, then flash lazyflasher to disable dm-verity and unencrypt phone
Click to expand...
Click to collapse
Tried it and no budge. Now i am at different problem cause i wanted to return it to stock with "flash all" fastboot rom. Not this thing does random reboots. Not sure if i should open another tread about it. All in all its still usefull phone and i would like to fix it eather way
scudteshka said:
Tried it and no budge. Now i am at different problem cause i wanted to return it to stock with "flash all" fastboot rom. Not this thing does random reboots. Not sure if i should open another tread about it. All in all its still usefull phone and i would like to fix it eather way
Click to expand...
Click to collapse
Are you able to boot to recovery(twrp)?
If yes, try flashing the latest twrp image using twrp on your phone. Then repeat steps mentioned. Finally, flash stock ROM Zip
Ive bricked the bastard but will continue
Is the red LED flashing or stuck when you let it charge?

Stuck on fastboot mode everytime i try a Rom

I'm getting stuck on fastboot mode everytime i flash derpfest rom , i've tried ''fastboot reboot'' i've tried to install ''twrp'' or boot to it , nothing works everything i try takes me back to the fastboot logo although the install of the rom was succesfull , i've tried with TWRP-3.3.1-8-siankatabg and also with regular TWRP and also with ORANGE FOX recovery , i'm on miui 11.0.7 EU version , can anyone help me
In TWRP, format data and then flash derpfest ROM. Take note that your data will be wiped though.
sangbuana said:
In TWRP, format data and then flash derpfest ROM. Take note that your data will be wiped though.
Click to expand...
Click to collapse
I did just that I placed the ROM in /tmp/ using TWRP file manager then I formated system and cash and data and then I did the data format by writing "Yes" then went back and erased everything a second time for good measure but still after flashing the ROM I get stuck on fastboot with no ability to boot to recovery or use commands like "fastboot reboot" the only solution for me that time is to reuse mi flash to flash stock rom which doesn't work but lets me boot into recovery which i use to flash miui 11.0.7 zip which apparently works just fine .
Also the basics are covered I made sure to allow usb debuging and update TWRP and all of that
1. flash using miflash
2.setup ur phone
3.enable dev optmake sure oem unlock too
4.going for twrp
5. wipe
6. flash ur rom
7.dont go reboot to system
8.format data then rebot to system
In case nothing else helps you can try to flash vbmeta first, following these instructions.
Cheers
Toscha

Cannot boot into recovery (TWRP)

As the title suggest, I fail to boot into TWRP.
I have unlocked the phone and flashed TWRP (https://dl.twrp.me/raphael/twrp-3.3.1-0-raphael.img).
I could boot into TWRP using Power + Volume Up , wiped everything (except vendor) and pushed a custom rom to the internal storage.
I restarted the phone for some reason and cannot boot into TWRP anymore. Whatever I do, I end up in fastboot. Tried to flash various versions of TWRP with the same result.
Can you guys help me out?
Edit: I flashed the corresponding Xiaomi fastboot image and repeated the process, same problem.
Edit: Solved by repeating again.
flel said:
As the title suggest, I fail to boot into TWRP.
I have unlocked the phone and flashed TWRP (https://dl.twrp.me/raphael/twrp-3.3.1-0-raphael.img).
I could boot into TWRP using Power + Volume Up , wiped everything (except vendor) and pushed a custom rom to the internal storage.
I restarted the phone for some reason and cannot boot into TWRP anymore. Whatever I do, I end up in fastboot. Tried to flash various versions of TWRP with the same result.
Can you guys help me out?
Edit: I flashed the corresponding Xiaomi fastboot image and repeated the process, same problem.
Edit: Solved by repeating again.
Click to expand...
Click to collapse
In future, don't wipe everything. You should only need to do the factory reset in TWRP, which will automatically wipe data, cache and dakvik. If you are flashing over MIUI then you will also need to format data.
There is almost never any need to wipe anything else in TWRP when doing normal custom ROM flashing.

Question How do i get Stock recovery to not replace TWRP when rebooting???

Tried a bunch of things to make the TWRP installation persistent, but it just goes back to MIUI recovery when i reboot from the system.
I'm using TWRP 3.5.2 by Nebrassy.
USB debugging turned on
Correct drivers installed
fastboot devices work Using minimal ADB and fastboot
I have the file renamed as TWRP.img.
Steps i followed:
fastboot boot "TWRP.img" - Correctly boots into TWRP
install the TWRP image to the recovery partition - Happens with no errors
Reboot to system - No errors there as well
Reboot to recovery - Goes back to MIUI recovery.
Can someone please tell me what i should do?
PS: Tried with TWRP 3.6.0 as well just now. Same issue.
Helhound0 said:
Tried a bunch of things to make the TWRP installation persistent, but it just goes back to MIUI recovery when i reboot from the system.
I'm using TWRP 3.5.2 by Nebrassy.
USB debugging turned on
Correct drivers installed
fastboot devices work Using minimal ADB and fastboot
I have the file renamed as TWRP.img.
Steps i followed:
fastboot boot "TWRP.img" - Correctly boots into TWRP
install the TWRP image to the recovery partition - Happens with no errors
Reboot to system - No errors there as well
Reboot to recovery - Goes back to MIUI recovery.
Can someone please tell me what i should do?
PS: Tried with TWRP 3.6.0 as well just now. Same issue.
Click to expand...
Click to collapse
Try again to flash TWRP dirty and if it's started don't boot with software. You have to boot TWRP again by pressing volume + and power button until you'll get vibration , afterwards you'll be in TWRP again, clear dalvik and cache and restart system via TWRP menu
Laptapper said:
Try again to flash TWRP dirty and if it's started don't boot with software. You have to boot TWRP again by pressing volume + and power button until you'll get vibration , afterwards you'll be in TWRP again, clear dalvik and cache and restart system via TWRP menu
Click to expand...
Click to collapse
Sorry mate that didn't work. Still going back to stock recovery...
Since i didn't find a solution to make the installation presistant, i went ahead and flashed Elixir with the temporarily booted TWRP. Then wiped cache and dalvik, flashed the TWRP image, formatted data and then rebooted. Now it works.
Edit: This method did something to my recovery. I can boot to system and recovery fine but TWRP isn't able to mount the data partition. So i'm not able to flash anything or root the device anymore.
I tried formatting data, no luck.
Then tried repairing the data partition. No luck.
Changed the file system to EX2 and then EX4... Nothing.
Anyone know a solution for this?
Helhound0 said:
Sorry mate that didn't work. Still going back to stock recovery...
Click to expand...
Click to collapse
Then you've got to do a flash with stock ROM and miflash via pc
Laptapper said:
Then you've got to do a flash with stock ROM and miflash via pc
Click to expand...
Click to collapse
Would that re-lock the bootloader? And if so do i have to wait 7 more days for it to be unlocked?
I used the Disable-Dm-Verity-Zip directly in TWRP after installation. Worked without a problem.
romuser87 said:
I used the Disable-Dm-Verity-Zip directly in TWRP after installation. Worked without a problem.
Click to expand...
Click to collapse
I read that somewhere too but that didn't help me at all... Maybe i have a bad zip file..
Can you share the zip you flashed?
Also, any idea how i could get this fixed:
Helhound0 said:
Since i didn't find a solution to make the installation presistant, i went ahead and flashed Elixir with the temporarily booted TWRP. Then wiped cache and dalvik, flashed the TWRP image, formatted data and then rebooted. Now it works.
Edit: This method did something to my recovery. I can boot to system and recovery fine but TWRP isn't able to mount the data partition. So i'm not able to flash anything or root the device anymore.
I tried formatting data, no luck.
Then tried repairing the data partition. No luck.
Changed the file system to EX2 and then EX4... Nothing.
Anyone know a solution for this?
Click to expand...
Click to collapse
Helhound0 said:
I read that somewhere too but that didn't help me at all... Maybe i have a bad zip file..
Can you share the zip you flashed?
Also, any idea how i could get this fixed:
Click to expand...
Click to collapse
The attached file worked for me
Helhound0 said:
Would that re-lock the bootloader? And if so do i have to wait 7 more days for it to be unlocked?
Click to expand...
Click to collapse
1. With MiFlash there is an option at the bottom of the screen to lock bootloader. Just make sure it is NOT checked, and you will be safe to use MiFlash without relocking bootloader.
2. When installing TWRP for first time, it is essential that your first reboot is straight back to TWRP - then it becomes persistent, and future reboots to recovery will be to TWRP. If you do not do the first reboot back to TWRP, the stock MIUI ROM recovery reinstalls itself.
HiQual said:
1. With MiFlash there is an option at the bottom of the screen to lock bootloader. Just make sure it is NOT checked, and you will be safe to use MiFlash without relocking bootloader.
2. When installing TWRP for first time, it is essential that your first reboot is straight back to TWRP - then it becomes persistent, and future reboots to recovery will be to TWRP. If you do not do the first reboot back to TWRP, the stock MIUI ROM recovery reinstalls itself.
Click to expand...
Click to collapse
The first ever twrp install i did, i rebooted to system by mistake but i reflashed twrp and made sure to reboot to recovery.... That was the second try. I think i may have tried at least two dozen times since that but it just kept booting back to stock recovery...
I think I'll run with this until the end of Jan and then redo everything from scratch...
Helhound0 said:
Since i didn't find a solution to make the installation presistant, i went ahead and flashed Elixir with the temporarily booted TWRP. Then wiped cache and dalvik, flashed the TWRP image, formatted data and then rebooted. Now it works.
Edit: This method did something to my recovery. I can boot to system and recovery fine but TWRP isn't able to mount the data partition. So i'm not able to flash anything or root the device anymore.
I tried formatting data, no luck.
Then tried repairing the data partition. No luck.
Changed the file system to EX2 and then EX4... Nothing.
Anyone know a solution for this?
Click to expand...
Click to collapse
I'm stuck at this stage. Have you found any solution yet?

Categories

Resources