Need help putting TWRP on my Zenfone 5z - Asus Zenfone 5Z Questions & Answers

Hello, I've been trying to install TWRP on my 5z (ZS620KL).
Whenever I try to use the "fastboot flash recovery recovery.img", I get the output:
Sending 'recovery' (25244 KB) OKAY [ 0.596s]
Writing 'recovery' FAILED (remote: '(recovery_b) No such partition')
I tried switching to the other partition using:
"fastboot --set-active=a" and "fastboot --set-active=b"
But it lead to no change whatsoever.
I'll be very thankful for any suggestions
Can provide any additional info, if needed

fastboot flash boot boot.img is the command you are looking for
Obviously you need you download the boot image and twrp zip for the version you are looking to install

jmancorp said:
fastboot flash boot boot.img is the command you are looking for
Obviously you need you download the boot image and twrp zip for the version you are looking to install
Click to expand...
Click to collapse
Thanks This solved my issue

jmancorp said:
fastboot flash boot boot.img is the command you are looking for
Obviously you need you download the boot image and twrp zip for the version you are looking to install
Click to expand...
Click to collapse
I have the same problem.
But when I fastboot flash boot boot.img and reboot .
It can not into twrp
It still into fastboot mode
Thanks in advance.

Related

[Help] Pixel 3 xl stuck in twrp

i have unlocked bootloader, fastboot mode on and can boot into recovery just fine. If i just let it 'boot' it boots into twrp automatically. From twrp i try to sideload, but adb does not recognize there being anything connected (adb devices returns empty) and adb sideload fails. Im on windows 10.
Update: solved. I had to run the command window and admin and it flashed just fine. Thanks spotmark!
superbean83 said:
i have unlocked bootloader, fastboot mode on and can boot into recovery just fine. If i just let it 'boot' it boots into twrp automatically. From twrp i try to sideload, but adb does not recognize there being anything connected (adb devices returns empty) and adb sideload fails. Im on windows 10.
Click to expand...
Click to collapse
Download whatever build you're on and extract the boot image. Then fastboot flash the boot image.
superbean83 said:
i have unlocked bootloader, fastboot mode on and can boot into recovery just fine. If i just let it 'boot' it boots into twrp automatically. From twrp i try to sideload, but adb does not recognize there being anything connected (adb devices returns empty) and adb sideload fails. Im on windows 10.
Click to expand...
Click to collapse
Try flashing Magisk again in TWRP.
spotmark said:
Download whatever build you're on and extract the boot image. Then fastboot flash the boot image.
Click to expand...
Click to collapse
Code:
c:\adb>fastboot flash boot bl.img
Sending 'boot_a' (8489 KB) OKAY [ 0.310s]
Writing 'boot_a' (bootloader) Flashing Pack version b1c1-0.1-5034669
FAILED (remote: '(boot_a) No such partition')
Finished. Total time: 0.564s
thats what it doesn when i try to flash boot image
superbean83 said:
i have unlocked bootloader, fastboot mode on and can boot into recovery just fine. If i just let it 'boot' it boots into twrp automatically. From twrp i try to sideload, but adb does not recognize there being anything connected (adb devices returns empty) and adb sideload fails. Im on windows 10.
Click to expand...
Click to collapse
.
Plz read line #1 on post #1 for twrp . . . ( hint ) it'll tell you that the twrp team has "not" yet got adb sideload working. . We all have to be patient !
.
And the good News is . . . if you use the usb-C adapter in the box and plug in a usb-A thumb drive into the pixel when running twrp . . . . you can see and grab stuff off that thumb drive. . . . . it worked for me 1
superbean83 said:
Code:
c:\adb>fastboot flash boot bl.img
Sending 'boot_a' (8489 KB) OKAY [ 0.310s]
Writing 'boot_a' (bootloader) Flashing Pack version b1c1-0.1-5034669
FAILED (remote: '(boot_a) No such partition')
Finished. Total time: 0.564s
thats what it doesn when i try to flash boot image
Click to expand...
Click to collapse
You need to flash the boot.img not the bootloader.
superbean83 said:
thats what it doesn when i try to flash boot image
Click to expand...
Click to collapse
Fastboot flash boot --slot all boot.img
airmaxx23 said:
You need to flash the boot.img not the bootloader.
Click to expand...
Click to collapse
Do you have the latest sdk platform tools?
Sent from my [device_name] using XDA-Developers Legacy app

device unable to boot Error - mdtp image is corrupted

Hi there,
I have a problem i was try to root my phone.
Now i dont have access to ADB but only fastboot works.
If i start my phone it goes on fastboot mode, and if i try "fast boot twrp-3.3.0-0-daisy.img" i get the error "device unable to boot Error - mdtp image is corrupted"
Can some one help me out, if tried to download the image again but without success..
You don't need twrp for root?!
I guess you need to get a fast boot ROM and flash it. Don't relock the bootloader. Don't flash data. Just all the other partitions.
Maybe even just flash that partition. My phone has a and b. Should just need to flash the current one.
a1291762 said:
You don't need twrp for root?!
I guess you need to get a fast boot ROM and flash it. Don't relock the bootloader. Don't flash data. Just all the other partitions.
Maybe even just flash that partition. My phone has a and b. Should just need to flash the current one.
Click to expand...
Click to collapse
Sorry im a little bit noob, but how it works:
flastboot flash a?
fastboot flash mdtp_a mdtp.img
That file is in the images folder after you extract the fastboot ROM.
Hi,
while having 15 years of Linux experience, I've just dropped into the same issue on my first hour of Android exploration. Currently no OS is installed and the phone boots into fastboot. Booting into twrp-3.3.1-dees_troy-daisy.img failes also with "Error - mdtp image is corrupted".
I've flashed mdtp.img from V10.0.12.0.PDLMIXM as described, but still I get the same error when booting into twrp-3.3.1-dees_troy-daisy.img . Is there somewere a documentation, how to proceed in such a case?
a1291762 said:
fastboot flash mdtp_a mdtp.img
That file is in the images folder after you extract the fastboot ROM.
Click to expand...
Click to collapse
mj2o said:
Hi,
while having 15 years of Linux experience, I've just dropped into the same issue on my first hour of Android exploration. Currently no OS is installed and the phone boots into fastboot. Booting into twrp-3.3.1-dees_troy-daisy.img failes also with "Error - mdtp image is corrupted".
I've flashed mdtp.img from V10.0.12.0.PDLMIXM as described, but still I get the same error when booting into twrp-3.3.1-dees_troy-daisy.img . Is there somewere a documentation, how to proceed in such a case?
Click to expand...
Click to collapse
No OS installed is maybe cause the last rom that you flashed was not flashed in the right slot or correctly flashed.
Also the fastboot command mentioned here is to flash mdtp in "a" slot but you have to see first which is your active slot and then install it on it.
SubwayChamp said:
Also the fastboot command mentioned here is to flash mdtp in "a" slot but you have to see first which is your active slot and then install it on it.
Click to expand...
Click to collapse
I've searched more for the reason and once got the response: FAILED (remote: partition table doesn't exist)
So it sounds I have to recreate the partition table. I haven't found any fastboot command to request the current partition status.
mj2o said:
I've searched more for the reason and once got the response: FAILED (remote: partition table doesn't exist)
So it sounds I have to recreate the partition table. I haven't found any fastboot command to request the current partition status.
Click to expand...
Click to collapse
I don´t think that exist a command to diagnose status of partitions but I´m sure that if you try to flash on an inactive slot then won´t work, ever an inactive slot will give you a fail.
Check your active slot by typing
Code:
fastboot getvar current-slot
and then flash it on the active slot using "mdtp_a" or "mdtp_b" but ONLY if the active slot is actually with all the system on it it´s mean that if you deleted all your system and any of both are actually with partitions running (no matter that with errors) then won´t work this way as you expect.
I have the same problem, what you have did to fix? please
Hi,
I've downloaded and flashed the factory image from miui.com. This way I have reset all my efforts and started all over. You find there the full rom and a flashing guide for the Xiaomi Mi A2 Lite.
mj2o said:
Hi,
I've downloaded and flashed the factory image from miui.com. This way I have reset all my efforts and started all over. You find there the full rom and a flashing guide for the Xiaomi Mi A2 Lite.
Click to expand...
Click to collapse
hi
same issue here @mj2o: Can you please provide a link to the site in English; it all in Chinese and I cannot read it
Thanks
mj2o said:
Hi,
I've downloaded and flashed the factory image from miui.com. This way I have reset all my efforts and started all over. You find there the full rom and a flashing guide for the Xiaomi Mi A2 Lite.
Click to expand...
Click to collapse
SubwayChamp said:
I don´t think that exist a command to diagnose status of partitions but I´m sure that if you try to flash on an inactive slot then won´t work, ever an inactive slot will give you a fail.
Check your active slot by typing
Code:
fastboot getvar current-slot
and then flash it on the active slot using "mdtp_a" or "mdtp_b" but ONLY if the active slot is actually with all the system on it it´s mean that if you deleted all your system and any of both are actually with partitions running (no matter that with errors) then won´t work this way as you expect.
Click to expand...
Click to collapse
@mj2o;80151263:
Code:
fastboot getvar current-slot
returns -->
Code:
current-slot: INVALID
finished. total time: 0.008s
and
Code:
fastboot flash aboot aboot.img
returns -->
Code:
target reported max download size of 534773760 bytes
sending 'aboot' (1024 KB)...
OKAY [ 0.055s]
writing 'aboot'...
FAILED (remote: partition table doesn't exist)
finished. total time: 0.075s
please advise.
BenG7 said:
@mj2o;80151263:
Code:
fastboot getvar current-slot
returns -->
Code:
current-slot: INVALID
finished. total time: 0.008s
and
Code:
fastboot flash aboot aboot.img
returns -->
Code:
target reported max download size of 534773760 bytes
sending 'aboot' (1024 KB)...
OKAY [ 0.055s]
writing 'aboot'...
FAILED (remote: partition table doesn't exist)
finished. total time: 0.075s
please advise.
Click to expand...
Click to collapse
Why do you want to flash the bootloader, what is the issue?
Hi @SubwayChamp
I wanted to flash LO16
Did a wpie data -yes format
Then a wipe system as instructed and now im stuck in fast boot.
Device unable to boot. Error - mdtp is corrupted
BenG7 said:
Hi @SubwayChamp
I wanted to flash LO16
Did a wpie data -yes format
Then a wipe system as instructed and now im stuck in fast boot.
Click to expand...
Click to collapse
If your issue is related with mdtp partition then you should to install again this image through fastboot in both slots in order to can boot device again to recovery; use
Code:
fastboot flash mdtp_a mdtp.img
and
Code:
fastboot flash mdtp_b mdtp.img
(you will get the images from any of the full fastboot roms)
From there try again the steps recommended by OP in that thread to get that your device boots on LOS but this is other question concerning only to that thread
Thanks SubwayChamp,
Will try as advised and keep you updated.
I m going to look for the fastboot rom for my daisy.
SubwayChamp said:
If your issue is related with mdtp partition then you should to install again this image through fastboot in both slots in order to can boot device again to recovery; use
Code:
fastboot flash mdtp_a mdtp.img
and
Code:
fastboot flash mdtp_b mdtp.img
(you will get the images from any of the full fastboot roms)
From there try again the steps recommended by OP in that thread to get that your device boots on LOS but this is other question concerning only to that thread
Click to expand...
Click to collapse
@SubwayChamp
dit it and when I
Code:
fastboot reboot
it boots straight back to fastboot.
What next? Mi a2 Lite stuck at Fastboot - No recovery, no nothing! Help ?
Thanks for your help!
[EDIT]
realised I can
Code:
fastboot boot twrp-daisy-3.3.1-0-offain.img
and I can flash the twrp-installer-daisy-3.3.1-0-offain.zip
but if I want to reboot; it says
Code:
No OS installed! Are you sure you wish to reboot?
so I went on with flashing lineageos 16
but at the end of the flash, I get
Code:
Failed to mount '/system' (permission denied)
please advise
BenG7 said:
If your issue is related with mdtp partition then you should to install again this image through fastboot in both slots in order to can boot device again to recovery; use and
@SubwayChamp
dit it and when I
it boots straight back to fastboot.
What next? Mi a2 Lite stuck at Fastboot - No recovery, no nothing! Help ?
Thanks for your help!
Click to expand...
Click to collapse
Your recovery is missed now cause when you flashed LOS was overwritten and device can't boot to system cause some step failed in the process.
If you flashed successfully mdtp images now follow the steps to boot to recovery and then follow those indicated to install LOS.
SubwayChamp said:
Your recovery is missed now cause when you flashed LOS was overwritten and device can't boot to system cause some step failed in the process.
If you flashed successfully mdtp images now follow the steps to boot to recovery and then follow those indicated to install LOS.
Click to expand...
Click to collapse
Thanks; this is what I did:
from TWRP I rebooted to recovery
it took me straight to fastboot again
so I
Code:
fastboot boot twrp-daisy-3.3.1-0-offain.img
again and mounted system partition then I flashed LOS
and the process went fine this time but when I rebooted to the system
it's back to fastboot again!
BenG7 said:
Thanks; this is what I did:
from TWRP I rebooted to recovery
it took me straight to fastboot again
so I
again and mounted system partition then I flashed LOS
and the process went fine this time but when I rebooted to the system
it's back to fastboot again!
Click to expand...
Click to collapse
This is exactly what I tried to tell you: your issue concerning to this thread was solved.
Now you have an issue regarding how to flash and boot to system attempting to install LOS. TWRP is perfectly capable to mount/remount or unmount partitions if needed, no need an action from the user, this is not the reason why you are not booting but the method and steps is discussed more properly in the same thread.
From here you can take one of hese three routes:
- To insist with trying to flash LOS.
- Flash other rom or a previous known working rom.
- Return completely to stock by flashing a full global rom.
Just I could recommend that for the future when you flash a stock rom take a backup of the most important partitions (without userdata) this could avoid that you need to use EDL anymore.

fastboot loop

I followed this thread to install lineage OS on my MI A2 lite:
https://www.getdroidtips.com/lineage-os-16-xiaomi-mi-a2-lite/
IIRC, on this phone there is no recovery partition:
fastboot flash recovery twrp.img gives the error Writing 'recovery' FAILED (remote: 'partition table doesn't exist')
I flashed TWRP to boot (fastboot flash boot twrp.img) instead of only starting it (fastboot boot twrp.img)
then I followed the procedure thinking that I was on the recovery partition and tried to install lineage os in boot (where twrp was)
now I can only enter the fastboot mode
fastboot boot twrp.img gives a black screen with device unable to boot error - mdtp image is corrupted
fastboot flash boot twrp.img gives the error Writing 'boot' FAILED (remote: 'partition table doesn't exist')
fastboot getvar current-slot gives current-slot: INVALID
the problem seems to be similar to this one:
https://forum.xda-developers.com/mi-a2-lite/help/device-unable-to-boot-error-mdtp-image-t3926962
though mdtp_a and mdtp_b are there but they are not active and I am not sure what image I should flash there.
How should I proceed?
baudoux said:
I followed this thread to install lineage OS on my MI A2 lite:
https://www.getdroidtips.com/lineage-os-16-xiaomi-mi-a2-lite/
IIRC, on this phone there is no recovery partition:
fastboot flash recovery twrp.img gives the error Writing 'recovery' FAILED (remote: 'partition table doesn't exist')
I flashed TWRP to boot (fastboot flash boot twrp.img) instead of only starting it (fastboot boot twrp.img)
then I followed the procedure thinking that I was on the recovery partition and tried to install lineage os in boot (where twrp was)
now I can only enter the fastboot mode
fastboot boot twrp.img gives a black screen with device unable to boot error - mdtp image is corrupted
fastboot flash boot twrp.img gives the error Writing 'boot' FAILED (remote: 'partition table doesn't exist')
fastboot getvar current-slot gives current-slot: INVALID
the problem seems to be similar to this one:
https://forum.xda-developers.com/mi-a2-lite/help/device-unable-to-boot-error-mdtp-image-t3926962
though mdtp_a and mdtp_b are there but they are not active and I am not sure what image I should flash there.
How should I proceed?
Click to expand...
Click to collapse
How did you think to flash LineageOs in boot where TWRP used to be?
Anyway if you didn´t complete this disastrous attempt you could solve it restoring mdtp partition that is a kind of gpt for other devices.
Flash it in both slot using fastboot. Then you´ll can know which partition is active, if the system yet still alive you´ll can boot on it or boot temporarily to TWRP to do your stuff but if not then you´ll need to restore one or more partitions flashing again the whole stock rom through MiFlash tool.
SubwayChamp said:
How did you think to flash LineageOs in boot where TWRP used to be?
Click to expand...
Click to collapse
this was a typo, and I got lost in the process
SubwayChamp said:
Flash it in both slots using fastboot.
Click to expand...
Click to collapse
you mean flash LINEAGE OS playload.bin or TWRP.img in mdtp_a and mdtp_b?
baudoux said:
this was a typo, and I got lost in the process
you mean flash LINEAGE OS playload.bin or TWRP.img in mdtp_a and mdtp_b?
Click to expand...
Click to collapse
Sorry for delay, yes, in both partitionn you have to flash mdtp, is to restore the table partition.
And about LOS I think you need to read a bit more or you'll have a thermonuclear reaction some day (just kidding) Custom roms come in form of zip and contain scripts that are prepared for developers to can unpack and flash files in the right place so don't worry about it.
First restore your partitions and the next is a ready-to-go.
SubwayChamp said:
yes, in both partitionn you have to flash mdtp, is to restore the table partition.
First restore your partitions and the next is a ready-to-go.
Click to expand...
Click to collapse
I guess you mean fastboot flash mdtp_a mdtp.img and fastboot flash mdtp_b mdtp.img
I cannot find the mdtp.img file
baudoux said:
I guess you mean fastboot flash mdtp_a mdtp.img and fastboot flash mdtp_b mdtp.img
I cannot find the mdtp.img file
Click to expand...
Click to collapse
You´ll find it inside the stock rom.
SOLVED
flashing mtdp_a and mtdp_b did not help, I hat to flash the stock rom again and start the process from scratch
other problems showed up:
I had to downgrade twrp to 3.3.0 to avoid error 7 while flashing LINEAGE OS
and then upgrade it again to 3.3.1 fo avoid error 64 while flashing GAPPS

Problem with installing TWRP on OOS 10.0.1

Hello guys,
Please help me because I'm stuck. I'm trying to install latest TWRP on my OP5 with no success. Let me tell you what I tried.
- I'm running on OOS 10.0.1
- sucessfully installed ADB and drivers on Windows 10.
- sucessfully unlocked bootloader
Then I downloaded latest TWRP, renamed it to twrp.img and placed it in a folder where ADB and fastboot are. Device is seen in both ADB and fastboot.
When in fastboot I tried first the command:
C:\>fastboot boot twrp.img
fastboot: error: cannot load 'twrp.img': No such file or directory
then I googled and tried with file directory:
C:\>fastboot flash recovery c:\adb\twrp.img
Sending 'recovery' (35228 KB) OKAY [ 1.025s]
Writing 'recovery' OKAY [ 0.164s]
Finished. Total time: 1.220s
The second command with direct source I tried both using USB 3.0 and via USB hub and it doesn't work. When I reboot to recovery it enters to the stock OP recovery and no sign of TWRP.
Can you please help me?
Thanks in advance!
Maciej
Hi, i could be misreading your steps but have you tried renaming the twrp image to twrp and then try fast booting with twrp.img again. It may be that by including the .img in the file name it is looking for twrp.img.img.
I'm no ADB expert but that may be all that's needed as it reads like everything else is working as should from my limited experience.

TWRP fails to boot

Trying to install TWRP using the official guide on the TWRP site.
fastboot boot twrp.img results:
fastboot boot twrp.img
Sending 'boot.img' (43886 KB) OKAY [ 1.304s]
Booting FAILED (remote: '')
fastboot: error: Command failed
fastboot devices does output my phone's serial number.
Installed Motorola driver, still not working.
You need to flash another .img file, you can find the tutorial here: TWRP for TROIKA
Kikitovzm said:
You need to flash another .img file, you can find the tutorial here: TWRP for TROIKA
Click to expand...
Click to collapse
Thanks, this one worked!

Categories

Resources