Question stuck in fastboot loop after flashing custom rom - Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40

problem: fastboot loop.
defails:
i see a quick (0.5s) poco boot logo, then it goes to fastboot mode. this happened after i flashed a custom TWRP image of an poco 3 image (alioth).
commands i ran that bricked everything:
fastboot flash boot twrp-3.7.0_12-0-alioth.img
fastboot flash boot_b twrp-3.7.0_12-0-alioth.img
Click to expand...
Click to collapse
what i tried:
- flashing official firmware with miFlash tool. i get a timeout error, nothing chages.
- flashing offical firmware via script:
F:\androidROOT\POCO-f3\alioth_eea_global_images_V13.0.8.0.SKHEUXM_20220823.0000.00_12.0_eea>fastboot erase boot_ab ||
Erasing 'boot_ab' FAILED (remote: 'unknown command')
fastboot: error: Command failed
"Erase boot_ab error"
Click to expand...
Click to collapse
pls help

you're not supposed to flash twrp to the boot partition you need a boot partition image.
the recovery is a ram disk image stored inside the boot partition.
once you fix the boot partition you can boot the img of twrp and once in twrp theres an option to flash it to the recovery ram disk.

@metalspider thanks! where can i find such an boot image? in the firmware images i found a boot.img file, is that right? i flashed it with
fastboot flash boot boot.img
Click to expand...
Click to collapse
infinite fastboot loop is fixed now. booting to twrp does not work tho.
it boots to a loading state now, but it loads infinitly.
i wiped all data in recovery mode.
so i did boot to TWRP, which does work now.
what to do now? transfere a rom via adb and custom recovery it via TWRP boot?

depends what rom you want to flash
a lot of custom roms will have you flash their boot which includes there recovery and adb sideload the rom zip from there.
some will require a specific firmware version and some even need custom vendor images etc
follow the rom you choose install instructions

mafima said:
@metalspider thanks! where can i find such an boot image? in the firmware images i found a boot.img file, is that right? i flashed it with
infinite fastboot loop is fixed now. booting to twrp does not work tho.
it boots to a loading state now, but it loads infinitly.
i wiped all data in recovery mode.
so i did boot to TWRP, which does work now.
what to do now? transfere a rom via adb and custom recovery it via TWRP boot?
Click to expand...
Click to collapse
How are you booting into TWRP?
"fastboot boot twrp.img" is the recommended way.
This will simply boot TWRP (only load it into RAM), and from inside TWRP, if you want to install it, go to Settings-page > Advanced > "Install RamDisk".
You can also use OrangeFox Recovery, it's slightly more modern and my preference.
The reason why we do it this way nowadays, is because the Boot-partition and the Recovery-partition got merged, now we only have Boot-partition. This is also why your phone stopped being able to boot. You replaced the Boot-code with just TWRP-code. However TWRP-code needs to be *patched* into the Boot-partition, meaning *added* to the Boot-code. Fastboot can only replace partitions entirely, however Recovery *CAN* modify partitions.
Hope this clears things up.

mafima said:
@metalspider thanks! where can i find such an boot image? in the firmware images i found a boot.img file, is that right? i flashed it with
infinite fastboot loop is fixed now. booting to twrp does not work tho.
it boots to a loading state now, but it loads infinitly.
i wiped all data in recovery mode.
so i did boot to TWRP, which does work now.
what to do now? transfere a rom via adb and custom recovery it via TWRP boot?
Click to expand...
Click to collapse
Fastboot is your unbricking friend, well is better than stuck in 9008 edl mode,
you could try my post,
[A13]Evolution X for POCO F3/Mi 11x[alioth][OFFICIAL]
Evolution X 7.0 for the POCO F3 [alioth] /* * Your warranty is void. Or vaild, probably? * * I am not responsible for bricked devices, dead SD cards, Ebolation X, * thermonuclear war, or the current economic crisis caused by you following *...
forum.xda-developers.com
Using parts 1,1a,1b & 2.
I hope it helps

fixed now. back to MIUI 13! oem still unlocked. but i am scared trying to root it now xD
solution:
download the firmware from official miui. extract the 4gb zip. i used alioth_eea_global_images_V13.0.8.0.SKHEUXM_20220823.0000.00_12.0_eea
copy the boot.img to ur platform tools
fastboot flash boot boot.img
use miflash tool to flash. select the folder u downloaded (alioth_eea_global_images...)
try it multiple times

mafima said:
fixed now. back to MIUI 13! oem still unlocked. but i am scared trying to root it now xD
solution:
download the firmware from official miui. extract the 4gb zip. i used alioth_eea_global_images_V13.0.8.0.SKHEUXM_20220823.0000.00_12.0_eea
copy the boot.img to ur platform tools
fastboot flash boot boot.img
use miflash tool to flash. select the folder u downloaded (alioth_eea_global_images...)
try it multiple times
Click to expand...
Click to collapse
I have rooted many phones over the years,
I follow my instructions as before, using Part 2, Part 5 & Part 6,
when rooting new roms that don`t have a useable recovery.
If i make a complete mess of my F3 then i use parts 1, 1a & 1b in fastboot mode,
Its a nice easy way to return almost to original stock with minimal effort,
I`m glad you got it sorted.

Related

TWRP not persistent

Hi guys,
I've just updated to newest OOS firmware wich is 5.1.2 and I'm facing a weird problem.
Every time I flash codeworks TWRP and reboot to system, the next time i try to boot to recovery it boots to the original recovery.
It's like when I flash TWRP it doesn't remain persistent. When i flash it through fastboot and straightly boot from fastboot to recoverry I succeed to get in TWRP but as soon as I reboot to system and try to boot to recovery I reach the original OnePlus recovery.
Is anyone facing the same problem ?
And also do you have any idea about what i could do to solve this problem ?
Thanks in advance for your answers !
If you don't have root or custom kernel its normal, plus you should use blu spark's twrp, its newer and more reliable.
Adnan008 said:
If you don't have root or custom kernel its normal, plus you should use blu spark's twrp, its newer and more reliable.
Click to expand...
Click to collapse
Indeed, I just needed to flash magisk to get it persistent. I'll try blu spark's one as you suggested.
Thank you very much for your answer !
Cheers !
Nothing to do with recoveries or kernel. After you do the fastboot flash recovery TWRP in fastboot, do this: "fastboot boot TWRP". I believe that's the right command. Basically after you flash it, manually boot to recovery through fastboot one time. After that it'll work from inside the phone or with the button combination with the phone off.
Jesus people are lazy these days.
First off there are official twrp versions for a reason!
Download the latest version: https://dl.twrp.me/dumpling/
Reboot into flash boot with the following command from your rom: adb reboot bootloader
With phone in fastboot mode: fastboot flash recovery 'twrp.img'
(You don't need to type out the entire file path you can just drag the file into the terminal and it'll insert the file location)
The reason you're not getting back into that recovery is because you're not booting into the recovery before you reboot into your ROM.
There is an option to boot straight into the recovery from the fastboot mode
pinnekeshaar said:
Jesus people are lazy these days.
First off there are official twrp versions for a reason!
Download the latest version: https://dl.twrp.me/dumpling/
Reboot into flash boot with the following command from your rom: adb reboot bootloader
With phone in fastboot mode: fastboot flash recovery 'twrp.img'
(You don't need to type out the entire file path you can just drag the file into the terminal and it'll insert the file location)
The reason you're not getting back into that recovery is because you're not booting into the recovery before you reboot into your ROM.
There is an option to boot straight into the recovery from the fastboot mode
Click to expand...
Click to collapse
Actually not that lazy because I used to do what you mentionned.
The thing is that a flash of Magik is needed to patch twrp. That's the step I forgot in the procedure and explained here.
So before being unpleasant, please know what you're talking about...
Cheers !

My Mi Max 3 is dead

Hi, yesterday I was flashing a rom with flash tool. It finished, reboot but it didn't start anymore. No fastboot nor recovery. Seems to be dead.
Is there a way to start it?
Thanks,
Andrés
Does this help?
Please report back.
Hi! thanks, it worked. Now I'm having a different issue with TWRP.
I install TWRP via fastboot, but i can't access the data inside the phone nor do the wipes. It shows errors.
When I boot the TWRP i don't enter any password or something like that.
Any ideas? It is a TWRP issue?
Thanks
andres88_ said:
Hi! thanks, it worked. Now I'm having a different issue with TWRP.
I install TWRP via fastboot, but i can't access the data inside the phone nor do the wipes. It shows errors.
When I boot the TWRP i don't enter any password or something like that.
Any ideas? It is a TWRP issue?
Thanks
Click to expand...
Click to collapse
Glad to hear your device is back from the dead.
Are all TWRP functions available? And all info gibberish?
Before installing TWRP, you can also see if it works without installing it by just booting it.
Code:
fastboot [B]boot[/B] recovery TWRP.img
See if folders are readable now, then extract data. Try different TWRP's. There are a few for Mi Max 3. Keep trying, TWRP does have some rare and occasional hiccups with password and decrypting. Also for me. Just reboot and try again until it works. Try to boot Orange Fox in recovery if needed.
Second, if nothing works, you may try and download the ROM you used before updating. Extract boot.img, recovery.img and system.img from old ROM and flash with fastboot:
Code:
fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash recovery recovery.img
This will restore the 3 .img's. Boot into recovery and see if you can pull data.
Let me kow if it helps because maybe otherwise you have to worry about flashing full ROM and lose data.
Addendum: if you run into trouble when flashing you can use Xiaomi ADB/ Fastboot Tools. Install Java first though. Also, please be aware of Xiaomi's ARB feature.

Fastbootd missing

Hello everyone! So I have a OP7T 1907 TMobile variant, and I've been following this guide to convert it. I have done it successfully a long time ago. I went to update to android 11 and after a while my flashing stopped working, I finally figured out the problem. I was getting the error. "fastboot: error: Failed to boot into userspace fastboot; one or more components might be unbootable."
I was stuck here for a while so I deleted the adb folder and went to bed last night. I woke up and it suddenly was working again. I tried to update to Android 11 and it bootlooped my phone, I tried to reflash but I had already relocked the bootloader, and the command "fastboot flashing unlock_critical" would return the error I had to flip the enable oem unlock switch. So I plugged into the MSM tool and hit start. I am now stuck at the same fastboot error. Any ideas?
After trying a bunch of different stuff, flashing the international rom and it stopped. I guess that put back some files that I was missing. I was then stuck with the tmo splash screen that goes nowhere, I then restarted and I finally go to the fastbootd screen. I wiped all data. After that fastboot reboot fastboot worked, idk if I just once again got lucky or not. But It worked
having same problem, can anyone explain how to enable fastbootd for oneplus 7t indian variant?
You need stock recovery (not twrp, los recovery, etc) for fastboot reboot fastboot to enter fastbootD mode (looks like stock recovery mode with 2 lines of Chinese and 1 line of English)
HueyT said:
You need stock recovery (not twrp, los recovery, etc) for fastboot reboot fastboot to enter fastbootD mode (looks like stock recovery mode with 2 lines of Chinese and 1 line of English)
Click to expand...
Click to collapse
Not entirely true, though.
Both LOS recovery (like the one from StatixOS or Pixel Expierience) and TWRP (the unofficial 3.5.1_10) have working fastbootd.
I don't think the same can be said about the Chinese TWRP, or mauronofrio's version, however.
Good 2 know. Thanks
open platform tools zip (fastboot&adb) place everything you want to flash in same folder as open zip (it can be whole payload extracted) and that will fix fastboot error
ecompton59 said:
open platform tools zip (fastboot&adb) place everything you want to flash in same folder as open zip (it can be whole payload extracted) and that will fix fastboot error
Click to expand...
Click to collapse
I don't think this is true.

Question installing custom recovery when device has AOSP recovery

So I installed a A13 AOSP rom (Evolution x) via orangefox and when I rebooted to recovery orangfox was gone and now I'm on AOSP recovery. I tried to "fastboot boot" TWRP but the phone restarts on black screen for several seconds then restarts again to system. and when I enter fastboot thro AOSP recovery and try to boot TWRP it just fails (says unrecognized command boot). how can I flash custom recovery? i was thinking of trying sideload but with fastboot not working properly, I dont want guessing and rather ask someone with more knowledge with AOSP recovery and what could be causing fastboot not working properly
PS/ AOSP recovery is not detecting otg, and when choosing apply updates from internal storage it says it cant mount /data
Aserar said:
So I installed a A13 AOSP rom (Evolution x) via orangefox and when I rebooted to recovery orangfox was gone and now I'm on AOSP recovery. I tried to "fastboot boot" TWRP but the phone restarts on black screen for several seconds then restarts again to system. and when I enter fastboot thro AOSP recovery and try to boot TWRP it just fails (says unrecognized command boot). how can I flash custom recovery? i was thinking of trying sideload but with fastboot not working properly, I dont want guessing and rather ask someone with more knowledge with AOSP recovery and what could be causing fastboot not working properly
PS/ AOSP recovery is not detecting otg, and when choosing apply updates from internal storage it says it cant mount /data
Click to expand...
Click to collapse
What is the code name of your device?
NOSS8 said:
What is the code name of your device?
Click to expand...
Click to collapse
Its alioth poco f3
Aserar said:
Its alioth poco f3
Click to expand...
Click to collapse
Seems that in official no TWRP A13
https://androidfilehost.com/?w=files&flid=322193
Here boot version A12(more recent).
1. fastboot boot twrp.img
2. go to Advanced > Flash Current TWRP
https://dl.akr-developers.com/?dir=skkk/TWRP/A12/v5.6_A12
https://forum.xda-developers.com/t/recovery-12-official-teamwin-recovery-project.4272625/
Aserar said:
So I installed a A13 AOSP rom (Evolution x) via orangefox and when I rebooted to recovery orangfox was gone and now I'm on AOSP recovery. I tried to "fastboot boot" TWRP but the phone restarts on black screen for several seconds then restarts again to system. and when I enter fastboot thro AOSP recovery and try to boot TWRP it just fails (says unrecognized command boot). how can I flash custom recovery? i was thinking of trying sideload but with fastboot not working properly, I dont want guessing and rather ask someone with more knowledge with AOSP recovery and what could be causing fastboot not working properly
PS/ AOSP recovery is not detecting otg, and when choosing apply updates from internal storage it says it cant mount /data
Click to expand...
Click to collapse
It is because flashing rom also flash the recovery packed along with the rom, and it will replace your old recovery. To prevent it you need to also tick on the reflash ofox option when you flash a rom, which is too late in your case.
So, if you want to reflash ofox recovery, download and extract the zip file, locate the recovery.img in the extracted folder, reboot to bootloader and issue this command:
Code:
fastboot boot /path/to/recovery.img
then reboot to recovery with the command:
Code:
fastboot reboot recovery
and your device will temporarily boot into ofox recovery
The last step is to flash the recovery to ramdisk to make it permanently, you can find this option in ofox settings.
NOSS8 said:
Seems that in official no TWRP A13
https://androidfilehost.com/?w=files&flid=322193
Here boot version A12(more recent).
1. fastboot boot twrp.img
2. go to Advanced > Flash Current TWRP
https://dl.akr-developers.com/?dir=skkk/TWRP/A12/v5.6_A12
https://forum.xda-developers.com/t/recovery-12-official-teamwin-recovery-project.4272625/
Click to expand...
Click to collapse
This is what I did befor posting but but TWRP wouldnt boot through fastboot. it just gives me blackscreen for a few seconds then it boots to system. but the problem was solved with ofx. thank you for your help
disconmair said:
It is because flashing rom also flash the recovery packed along with the rom, and it will replace your old recovery. To prevent it you need to also tick on the reflash ofox option when you flash a rom, which is too late in your case.
So, if you want to reflash ofox recovery, download and extract the zip file, locate the recovery.img in the extracted folder, reboot to bootloader and issue this command:
Code:
fastboot boot /path/to/recovery.img
then reboot to recovery with the command:
Code:
fastboot reboot recovery
and your device will temporarily boot into ofox recovery
The last step is to flash the recovery to ramdisk to make it permanently, you can find this option in ofox settings.
Click to expand...
Click to collapse
Thank you mf this worked! Booting twrp through fastbood just gave me black screen so I didnt think that booting Ofox would be any different but it actually booted Ofox recovery and I flashed it no problem. If anyone's going to attempt this make sure to backup your data before cause you'll need to format data

Question Soft brick?I deleted everything on my phone and unlocked it.TWRP only boots trough terminal/cmd and I can't flash it.

I have been trying for over 8 hours to fix this phone but I can't flash twrp.
when I try "fastboot flash recovery twrp.img" I get:
Writing 'recovery' FAILED(remote: '(recovery_a) No such partition')
Now I can't even install a rom,go back to the stock one or do anything.I only have the poco screen when I try to turn it on and the fastboot screen.Please help
Kasygertu said:
I have been trying for over 8 hours to fix this phone but I can't flash twrp.
when I try "fastboot flash recovery twrp.img" I get:
Writing 'recovery' FAILED(remote: '(recovery_a) No such partition')
Now I can't even install a rom,go back to the stock one or do anything.I only have the poco screen when I try to turn it on and the fastboot screen.Please help
Click to expand...
Click to collapse
If you can get into fastboot mode, use Miflash to get back to stock.
https://forum.xda-developers.com/t/flash-tool-guide-use-xiaomi-flash-tool.4262425/
TWRP: https://dl.akr-developers.com/?dir=skkk/TWRP/A12
BOOT VERSION
Installation:
Phone in fastboot mode
Cmd:
fastboot boot twrp.img
Power shell
./fastboot boot twrp.img
then in Twrp go to Advanced -> flash current TWRP.
--------------------------------------------------------------------------------------------------------
REC VERSION
Install with TWRP.
"only boots through cmd, but can't flash it"
Use "fastboot boot twrp.img", then "Install RamDisk" in TWRP
But you don't have to install TWRP or OrangeFox to use them. You can also just boot into them.
Modern phones don't have Recovery-partition anymore, Recovery is merged into Boot-partition now. Fastboot can only replace partitions and not inject things like TWRP into it, so you have to install TWRP through a recovery, because those can patch a partition (inject TWRP).
You can flash MIUI Recovery ZIP (full, not incremental) to get back to MIUI. xiaomifirmwareupdater.com has official MIUI ROMs. You can use "adb sideload" in TWRP to install a ZIP
But since you say you wiped all or most partitions, I'd say use Mi Flash and Fastboot ROMs instead...
Kasygertu said:
I have been trying for over 8 hours to fix this phone but I can't flash twrp.
when I try "fastboot flash recovery twrp.img" I get:
Writing 'recovery' FAILED(remote: '(recovery_a) No such partition')
Now I can't even install a rom,go back to the stock one or do anything.I only have the poco screen when I try to turn it on and the fastboot screen.Please help
Click to expand...
Click to collapse
Hi,
If you have Fastboot then your in a good place, you could try temporary orangefox recovery.
You could try my post:
[A13]Evolution X for POCO F3/Mi 11x[alioth][OFFICIAL]
Evolution X 7.0 for the POCO F3 [alioth] /* * Your warranty is void. Or vaild, probably? * * I am not responsible for bricked devices, dead SD cards, Ebolation X, * thermonuclear war, or the current economic crisis caused by you following *...
forum.xda-developers.com
This is what i use to get out of boot issues, infact i have been playing around with the A13 ColorOS (OnePlus 8 Pro Port) today and after a clean install i was faced with rebooting into fastboot, i was able to access recovery but no way of installing a different rom even after changing slots A/B and stuck in FASTBOOT mode.
My get out of fastboot for free card is to install Xiaomi.eu V12 via fast boot then i`m back to almost official firmware,
I hope you sort it, I've been there many times
cyanGalaxy said:
"only boots through cmd, but can't flash it"
Use "fastboot boot twrp.img", then "Install RamDisk" in TWRP
But you don't have to install TWRP or OrangeFox to use them. You can also just boot into them.
Modern phones don't have Recovery-partition anymore, Recovery is merged into Boot-partition now. Fastboot can only replace partitions and not inject things like TWRP into it, so you have to install TWRP through a recovery, because those can patch a partition (inject TWRP).
You can flash MIUI Recovery ZIP (full, not incremental) to get back to MIUI. xiaomifirmwareupdater.com has official MIUI ROMs. You can use "adb sideload" in TWRP to install a ZIP
But since you say you wiped all or most partitions, I'd say use Mi Flash and Fastboot ROMs instead...
Click to expand...
Click to collapse
I don't have any install ramdisk anywhere
Kasygertu said:
I don't have any install ramdisk anywhere
Click to expand...
Click to collapse
TWRP > Advanced > Install RamDisk
You could've avoided making this thread by simply searching how to install TWRP on Poco F3, on YouTube.
There are so many videos about it...
Hi,
Did you have a go using my method,
1. Put your F3 into FASTBOOT mode,
1a. connect to your PC.
2. Run temporary Orangefox using, RUN_TWRP-Orange Fox FIXED.bat file.
3. After Orangefox re-boots back into recovery, from the hamburger "Menu" select, flash current Orangefox.
I`ve had some strange issue with orangefox, to fix it i reset to defaults from with-in "FOX ADDONS" in the Menu folder.
If you are struggling with installing a new rom then i would advise to go down the Xiaomi.eu V12 clean install.
Good luck.
Try my method!
1. Connect your POCO to a PC, and hold the volume down button.
2.Download the MIUI ROM from
Xiaomi Firmware Updater
The ultimate script that provides firmware packages for Xiaomi devices.
xiaomifirmwareupdater.com
2.5.Open MiFlash, select the MIUI_13.X.X folder and click OK.
3.Select flash_all.bat or flash_all_lock.bat depending if you want your device locked again or still unlocked.
4.Click Flash
5.After rebooting, you are done!
Oh wait, you dont want to flash MIUI again? Try this:
1.Download twrp_3.7.0_a12 (BUT IF THAT DOESNT WORK) download twrp_3.6.1_a11
2.Open CMD, (in the platform-tools folder) and type this:
fastboot flash boot twrp_3.x.x
(the twrp_3.x.x being the img name)
or
fastboot boot twrp_3.x.x
3.When in TWRP, erase data. REMEMBER, NEVER WIPE SYSTEM OR PERSIST!
- Tap on Wipe
- Format Data
- and for good measure, Also Swipe for a factory reset.
4.If you want to flash a custom rom, depending on what rom it is, im gonna use PixelPlusUI as an example:
adb push PixelPlusUI_2022_10_23 /sdcard
(the rom being the "PixelPlusUi_xxxxxx_23"
Its recommended to flash the newest firmware too:
adb push xiaomi_firmware /sdcard
And flashing it that way.
5 - Change the slot from A to B or from B to A depending on what you saw when you were flashing the ROM.
"FLASHING A/B ZIP TO INACTIVE SLOT: X"
6. After flashing a ROM, go to Advanced > Flash Current TWRP
7. That's it! - Reboot! but if that doesnt work, reflash MIUI.

Categories

Resources