TWRP problem, fastboot boot -> unknown command - G4 Q&A, Help & Troubleshooting

Hi !
I'm trying to install the custom recovery TWRP on my LG G4, the "fastboot flash recovery (file)" command works :
Sending 'recovery' (6002 KB) OKAY [ 0.166s]
Writing 'recovery' OKAY [ 0.067s]
Finished. Total time: 0.292s
But then the "fastboot boot (file)" command doesn't ! It says :
Sending 'boot.img' (6002 KB) OKAY [ 0.144s]
Booting FAILED (remote: 'unknown command')
By the way when I try to enter into recovery mod using the power+volume down method it asks If I want to do a factory reset, If I say yes it does it, if I say no it just boot normally, no recovery mod.
By bootloader is unlocked, I checked using the "fastboot getvar unlocked" command, and I have the "your device software cannot be checked for corruption, lock the bootloader" screen.
Do you guys know what's the problem ?

Read the official TWRP thread (also linked in my signature)
Sent from my OnePlus 6T using XDA Labs

Thank you for your help, I managed to make it work

Related

help - fastboot mode only

a friend sold me new pixel 3 xl. they someone messed up rooting and screwed up something. $50 i paid
twrp was installed it was latest version
phone off and hit power or hold power nothing that i can see on screen
power and volume down i can go into fastboot mode, device says unlocked adb can see it in fastboot device
if i select restart bootloader i get nothing
if i select recovery mode nothing
what do i need to do?
tried this
C:\abd\platform-tools>fastboot flash boot boot.img
Sending 'boot_a' (65536 KB) OKAY [ 1.599s]
Writing 'boot_a' OKAY [ 0.508s]
Finished. Total time: 2.562s
C:\abd\platform-tools>fastboot boot twrp.img
Sending 'boot.img' (65536 KB) OKAY [ 1.529s]
Booting FAILED (remote: 'Error calling AvbLoadAndVerifyBootImages Load Error')
fastboot: error: Command failed\
Opps delete
kingrat said:
C:\abd\platform-tools>fastboot boot twrp.img
Sending 'boot.img' (65536 KB) OKAY [ 1.529s]
Booting FAILED (remote: 'Error calling AvbLoadAndVerifyBootImages Load Error')
fastboot: error: Command failed\
Click to expand...
Click to collapse
Your cut and paste was a fail. The command you entered was to boot twrp, but the "error" returned occurred after "SENDING BOOT.IMG". Quit screwing around and flash the full factory image first and try to get it to boot to System first. Report any errors.
Crap, I see what occurred. Sorry to bother you, someone else replied and told me what to do and that work and he wasn't Richard cranium about it. Thanks for your response.

Unable to flash TWRP after flashing factory image (Not allowed to flash (recovery))

I wiped my device and flashed the latest factory image. I am now trying to install TWRP but fastboot returns the following:
Code:
./fastboot flash recovery ./twrp.img
Sending 'recovery' (65536 KB) OKAY [ 1.860s]
Writing 'recovery' FAILED (remote: 'Not allowed to flash (recovery)')
fastboot: error: Command failed
The bootloader is unlocked, and I have tried relocking and unlocking it to no effect.
pismosi said:
I wiped my device and flashed the latest factory image. I am now trying to install TWRP but fastboot returns the following:
Code:
./fastboot flash recovery ./twrp.img
Sending 'recovery' (65536 KB) OKAY [ 1.860s]
Writing 'recovery' FAILED (remote: 'Not allowed to flash (recovery)')
fastboot: error: Command failed
The bootloader is unlocked, and I have tried relocking and unlocking it to no effect.
Click to expand...
Click to collapse
twrp doesn't work for android 10. please be specific about versions of android and twrp you are using
pismosi said:
I wiped my device and flashed the latest factory image. I am now trying to install TWRP but fastboot returns the following:
Code:
./fastboot flash recovery ./twrp.img
Sending 'recovery' (65536 KB) OKAY [ 1.860s]
Writing 'recovery' FAILED (remote: 'Not allowed to flash (recovery)')
fastboot: error: Command failed
The bootloader is unlocked, and I have tried relocking and unlocking it to no effect.
Click to expand...
Click to collapse
As already noted, TWRP has never worked with 10. If you are on 9 then head over to the dedicated TWRP thread and get yourself up to speed.
if on android 9 it would be fastboot boot twrp. img. (if on Pie)
A/B slot devices don't have a dedicated recovery partition. (reason why flashing to recovery didn't work)
Android 10 doesn't have working TWRP yet. ( can't decrypt data or something)

Xiaomi Mi 10 Lite - Recovery mode

Dear all,
I'd like to install LineageOS on my Xiaomi Mi 10 Lite (monet).
I'm following the instructions here : https://wiki.lineageos.org/devices/monet/install.
Everything is going well until step "fastboot flash recovery <recovery_filename>.img".
I type "fastboot flash recovery <recovery_filename>.img" and everything seems to be good.
Sending 'recovery' (131072 KB) OKAY [ 4.907s]
Writing 'recovery' OKAY [ 0.571s]
Finished. Total time: 5.484s
But my phone does not power down. And when I try to reboot into the recovery mode (Volume Up + Power), the fastboot screen appears instead of recovery mode.
I also try with "fastboot boot <recovery_filename>.img".
Sending 'boot.img' (131072 KB) OKAY [ 5.044s]
Booting OKAY [ 0.154s]
Finished. Total time: 5.266s
The phone turns off and I reboot into recovery mode with success. I apply "Wipe Data" and go back to Main Menu after, as described.
But I don't find the "Apply Update" option.
Thank you for your help.
Stephane
Windows 10
stephane_p said:
Dear all,
I'd like to install LineageOS on my Xiaomi Mi 10 Lite (monet).
I'm following the instructions here : https://wiki.lineageos.org/devices/monet/install.
Everything is going well until step "fastboot flash recovery <recovery_filename>.img".
I type "fastboot flash recovery <recovery_filename>.img" and everything seems to be good.
Sending 'recovery' (131072 KB) OKAY [ 4.907s]
Writing 'recovery' OKAY [ 0.571s]
Finished. Total time: 5.484s
But my phone does not power down. And when I try to reboot into the recovery mode (Volume Up + Power), the fastboot screen appears instead of recovery mode.
I also try with "fastboot boot <recovery_filename>.img".
Sending 'boot.img' (131072 KB) OKAY [ 5.044s]
Booting OKAY [ 0.154s]
Finished. Total time: 5.266s
The phone turns off and I reboot into recovery mode with success. I apply "Wipe Data" and go back to Main Menu after, as described.
But I don't find the "Apply Update" option.
Thank you for your help.
Stephane
Windows 10
Click to expand...
Click to collapse
Use platform tools instead of Minimial adb and use the flash recovery command, it should work. and be careful if you need to disable
dm verity, i don't know Mi 10 Lite but yup
Spuffyffet said:
Use platform tools instead of Minimial adb and use the flash recovery command, it should work. and be careful if you need to disable
dm verity, i don't know Mi 10 Lite but yup
Click to expand...
Click to collapse
Thank you for your help.
I downloaded and used platform tools as described in LineageOS Wiki. And then, I used windows cmd for the adb and the fastboot commands.
stephane_p said:
Thank you for your help.
I downloaded and used platform tools as described in LineageOS Wiki. And then, I used windows cmd for the adb and the fastboot commands.
Click to expand...
Click to collapse
However, it's still not working. I have the same issue.
stephane_p said:
However, it's still not working. I have the same issue.
Click to expand...
Click to collapse
well use "fastboot reboot recovery"
Spuffyffet said:
well use "fastboot reboot recovery"
Click to expand...
Click to collapse
I used reboot recovery. I got:
Rebooting into recovery OKAY [ 0.000s]
Finished. Total time: 0.000s
But the fastboot screen is still here
stephane_p said:
I used reboot recovery. I got:
Rebooting into recovery OKAY [ 0.000s]
Finished. Total time: 0.000s
But the fastboot screen is still here
Click to expand...
Click to collapse
Use this brother: https://developer.android.com/studio/releases/platform-tools
you probably used Minimial ADB, it's the same but just use Platform tools (The one's i just sent)
Spuffyffet said:
Use this brother: https://developer.android.com/studio/releases/platform-tools
you probably used Minimial ADB, it's the same but just use Platform tools (The one's i just sent)
Click to expand...
Click to collapse
I downloaded platform-tools zip file (r33.0.0 for windows) and extract it in C:\Android\platform-tools
Then, I retry
C:\Android\platform-tools>fastboot flash recovery recovery.img
Sending 'recovery' (131072 KB) OKAY [ 5.415s]
Writing 'recovery' OKAY [ 0.586s]
Finished. Total time: 6.017s
C:\Android\platform-tools>fastboot reboot recovery
Rebooting into recovery OKAY [ 0.000s]
Finished. Total time: 0.000s
But, I still get the fastboot screen instead of recovery mode.
Thank you for your help.
Have you tried with another recovery image, like TWRP ?
mgkdv said:
Have you tried with another recovery image, like TWRP ?
Click to expand...
Click to collapse
well i have and it worked for me
mgkdv said:
Have you tried with another recovery image, like TWRP ?
Click to expand...
Click to collapse
I've tried with twrp but I get:
C:\Android>fastboot boot twrp_recovery.img
Sending 'boot.img' (131072 KB) OKAY [ 4.944s]
Booting FAILED (remote: 'Failed to load/authenticate boot image: Load Error')
fastboot: error: Command failed
stephane_p said:
I've tried with twrp but I get:
C:\Android>fastboot boot twrp_recovery.img
Sending 'boot.img' (131072 KB) OKAY [ 4.944s]
Booting FAILED (remote: 'Failed to load/authenticate boot image: Load Error')
fastboot: error: Command failed
Click to expand...
Click to collapse
You are using the wrong command bro, don't use boot. Use "fastboot flash recovery twrp_recovery.img". Why are you flashing recovery.img as boot bro?
OK guys I've found my mistake. I thought the model of my phone was Monet. But it's not. It's Toco... A stupid error showing that I have to be more rigorous.
I thank you again for your help. All the best for xda.
See you

Question TWRP Moto G20

Looking for a custom recovery I found this page where it contains a TWRP that is supposedly compatible with the Moto G20.
Download TWRP 3.5.2 For Moto G20- How to install ยป The TechGyan Gadgets
How To Install TWRP Recovery on Moto G20-Step 1. Bootloader Unlock on Moto G20.Step 2. Install TWRP Recovery on Moto G20.
mytechgyangadgets.com
Link TWRP:
motorola twrp recovery.img
drive.google.com
I did not want to risk trying it since I do not know much about this and what can happen if it is not correct. Someone to solve my doubt? or know of a compatible custom recovery? Gracias. :XX
Hey!
I tried booting directly into twrp in fastboot mode using ./fastboot boot twrp recovery.img and get this:
Sending 'boot.img' (26460 KB) OKAY [ 0.688s]
Booting OKAY [ 0.000s]
Finished. Total time: 0.717s
But the Phone only restarts into normal Motorola OS.
Robyn_232 said:
Hey!
I tried booting directly into twrp in fastboot mode using ./fastboot boot twrp recovery.img and get this:
Sending 'boot.img' (26460 KB) OKAY [ 0.688s]
Booting OKAY [ 0.000s]
Finished. Total time: 0.717s
But the Phone only restarts into normal Motorola OS.
Click to expand...
Click to collapse
hello! Thanks for replying, I guess we have to wait. :c
voy a intertar
it can not i put this .\fastboot.exe flash recovery "C:\Program Files (x86)\Minimal ADB and Fastboot\motorola twrp recovery.img"
and this appears
Sending 'recovery' (26460 KB) OKAY [ 0.748s]
Writing 'recovery' FAILED (remote: 'No such file or directory')
fastboot: error: Command failed
and when I enter the recovery the default revorey appears
Watch the Thread called "Building TWRP for Moto G20" there is someone with a working twrp but theres no download link until now.

Help! Redmi note 8 (2021) bricked (bootloop)

Hello,
I'm a beginner in the field of flasing custom roms but I would really like to abandon using google on my phone and find your work here really awesome. So yeah, I hope my question doesn't sound stupid but I'm seriously stuck and hope I didn't completely break my phone.
I am using a Redmi Note 8 (2021) and wanted to flash lineageOS. So I unlocked the bootloader via my mi account, booted into fastboot mode (usb-debugging was of course enabled) and tried to flash twrp to recovery using the cmd-window via platform-tools.
This didn't work because when I typed:
./fastboot flash recovery twrp.img
I got the reply:
Sending 'recovery' (65536 KB) OKAY [ 1.743s]
Writing 'recovery' FAILED (remote: 'This partition doesn't exist')
fastboot: error: Command failed
I therefore started googling and found a threat on xda where someone had solved the problem by replacing 'recovery' with 'boot':
./fastboot flash boot twrp.img
What I got was:
Sending 'boot_a' (65536 KB) OKAY [ 1.818s]
Writing 'boot_a' OKAY [ 0.827s]
Finished. Total time: 2.681s
After that my phone was bricked. I cannot enter recovery mode anymore and even fastboot mode appears a bit different (I don't see the bunny anymore, all I see is the word 'fastboot' in orange letters on a black screen). When I enter fastboot mode, the device is detected by my computer - the only sign that still gives me an inch of hope. When I'm not in fastboot mode my phone keeps vibrating and then turning of, then suddenly it vibrates again and turns on, the logo 'redmi' appears and then it suddenly turns off again - and it just keeps repeating this procedure.
I downloaded the mi flash tool and tried to flash the Xiaomi ROM, but that didn't work either - after about five minutes of waiting I get an error. I tried different versions of MIUI but keep getting errors. When I try to flash the Xiaomi ROM via cmd-window, as suggested here ( https://www.droidwin.com/unbrick-redmi-note-8-fastboot-commands/ ) I get this:
fastboot flash xbl xbl.elf
Sending 'xbl' (3449 KB) OKAY [ 0.105s]
Writing 'xbl' FAILED (remote: 'This partition doesn't exist')
fastboot: error: Command failed
Is there anything left for me to do or should I give up and save money for a new phone? I am also wondering why the command-window keeps talking about 'boot_a'. Is there a 'boot-b' also? And should I write something onto it? When I try to boot the twrp.img by typing:
fastboot boot twrp.img
I get:
Sending 'boot.img' (65536 KB) OKAY [ 1.592s]
Booting FAILED (Status read failed (Too many links))
fastboot: error: Command failed
I would be very, very grateful for help
Try this
https://www.getdroidtips.com/twrp-recovery-redmi-note-8-2021-root/
I guess you have used a wrong recovery file, maybe one for another device
The problem is that the command 'flash recovery' does not work, because it says th partition does not exist....
Norah1838 said:
I am using a Redmi Note 8 (2021)
Click to expand...
Click to collapse
wrong forum ! , see Biloba forum
on some devices, boot+recovery are on the same partition, but not for Biloba
boot partition (+dtbo on some cases) is the kernel
i think you should look for official install of miui rom since it has IMG of most partitions ...

Categories

Resources