[Q] Mi2S miflash error - Xiaomi Mi 2

Hello.
I have a huge problem wit my Mi2S.
I have been on cm12 for a while now, but i think battery drain is to much so i flashed miui through fastboot since i changed partition table with M11kkaas script.
It worked like a charm the first time, but when i was going to downgrade to older miui because of some bugs i did the fastboot thing again. This time i got an error message in miflash 'partition table doesn't exist' and the phone will not boot into anything but fastboot after this no matter what i do.
I attached the log from miflash.
One more thing. When i open a cmd window and try adb commands the phone is nowhere to be found, but i can see it in miflash.
Is there any suggestions on how i can fix this?

Related

Stuck in Fastboot Mode (pls help!)

Hey,
I had problems with the phone and support told me I should flash it. So when I wanted to "flash system.img"
it showed me: Data Transfer Failure (after 48secs)
and when I type in "fastboot devices" now, the name of device now only shows questionmarks: "?????????? fastboot"
And nothing is working now
So when i try to flash system again, windows says "fastboot.exe stopped working"
I am devastated. How can this happen? and what can I do? Please help me
OlivBlum said:
Hey,
I had problems with the phone and support told me I should flash it. So when I wanted to "flash system.img"
it showed me: Data Transfer Failure (after 48secs)
and when I type in "fastboot devices" now, the name of device now only shows questionmarks: "?????????? fastboot"
And nothing is working now
So when i try to flash system again, windows says "fastboot.exe stopped working"
I am devastated. How can this happen? and what can I do? Please help me
Click to expand...
Click to collapse
So you were on cos12.1 and you tried to flash stock images using fastboot? Explain a bit what happened so that i can guide you more accurately..
Anyhow you can always go here http://forum.xda-developers.com/zuk-z1/development/how-to-flash-zuk-z1-zui-version-t3265741
And use qfil tool to flash to stock .. read a few posts below to figure out how you should do this and u will end up with zui 1.5 then you can convert to cm or any other rom
Hey thanks for the answer
So I was on COS 12.1 all normal, no root, no unlocked bootloader.
And I wanted to flash COS 12.1 again. So I downloaded the official fastboot image from cyngn . com/support and unzipped it. In there was a system.img file that I tried to flash via "fastboot flash system system.img" Thats when the error occured.
Before that I unlocked the bootloader, started the device, then I flashed the recovery and afterwards the system.
I will now look into the link and see if it helps and report back. Thanks already
OlivBlum said:
Hey thanks for the answer
So I was on COS 12.1 all normal, no root, no unlocked bootloader.
And I wanted to flash COS 12.1 again. So I downloaded the official fastboot image from cyngn . com/support and unzipped it. In there was a system.img file that I tried to flash via "fastboot flash system system.img" Thats when the error occured.
Before that I unlocked the bootloader, started the device, then I flashed the recovery and afterwards the system.
I will now look into the link and see if it helps and report back. Thanks already
Click to expand...
Click to collapse
Before you go to what i suggested
Can you boot into fastboot or recovery ?
If you have whatsapp add me then we can talk it through would be easier than me checking the forum everynow and then ..u'll find my number in private

Can't mount cache... can't change droidboot and recovery

hello xda community
I made sure to try everything (or almost) before post here
my ZenFone 5 show a message that it cannot mount the cache partition and I am stuck on the Asus logo (I can access droidboot and recovery but I cannot replace them)
factory reset and cache wipe does not make any change (they return the same "can't mount cache" error.
I am trying to change the current droidboot and recovery to fastboot and TWRP but not matter how much I flash them, it does not take change (yes, I am unlocking the bootloader)
I am also executing a script to get the original partitions table back but when sec_offline_update_image.cmd executes the command "fastboot oem partition /tmp/partition.tbl" I get the error "FAILED(remote: GPT command failed)"
as this came out of thin air, I didnt have the chance to activate developer mode on my phone
I starting to get concerned .... any help?
thnk you very much in advance
@dgadelha any help ?
What are the specs of your Zen 5?
dgadelha said:
What are the specs of your Zen 5?
Click to expand...
Click to collapse
ZenFone 5 - A501CG T00J
Serial # with 0123456789ABCDEF issue
Box info: A501CG2 / A501CG-1F589 / CPU Intel Clover Trail Plus + Dual Core 1.6 Ghz, Purple, 8GB RAM
I already checked basically all links on Google related to the above issues (4 days Googling it already).
I really don't know what to do anymore.
A little more context @dgadelha.
2 months ago, I unlocked my bootloader for the 1st time and installed BlueLight 3.24.40.87... after the installation I locked my bootloader again using the boot, recovery and droidboot images contained in UL-ASUS_T00F-TW-3.24.40.87-user (Asus' official).
BlueLight worked fine with minor bugs for 2 months until past week when it suddenly started to crash a LOT, get slow and overheat (I didn't had time to fix it).
Then suddenly, all Android services and apps on the phone crashed and the phone turned off entering in a bootloop (Asus logo) everytime I reboot.
Since then I am getting the "E:Failed to mount /cache (Invalid argument)" issue when loading the recovery mode.
Since then I am also not being able to flash anything on my phone... no different recovery, no other fastboot and no other image... I get success messages on the flash process but nothing changes after restart (I can still access droidboot and recovery but nothing works there as the "Failed to mount /cache" error pops up for any action I try... recovery mode shows version 3.24.40.87_201).
When I try a system image via adb sideload I get error "Total xfer: 0.00x".
When I try "sec_offline_update_image.cmd" I get an error on the command "fastboot oem partition /tmp/partition.tbl"... the error is "FAILED(remote: GPT command failed)".
I have tried 2 different "partition.tbl" files... one that contains the "spare" partition and another one that contains "misc" instead... both failed.
I am now currently trying xFSTK (I don't even know what this does on my phone) and ASUS Flash Tool... ASUS Flash Tool returns "Flash image failure (FAILED (remote: GPT command failed))".
PS: I forgot to activate developer mode and other related options before the crash.
I hope that my phone is somehow alive... btw, thank you very much in advance!!!
jaabax said:
A little more context @dgadelha.
2 months ago, I unlocked my bootloader for the 1st time and installed BlueLight 3.24.40.87... after the installation I locked my bootloader again using the boot, recovery and droidboot images contained in UL-ASUS_T00F-TW-3.24.40.87-user (Asus' official).
BlueLight worked fine with minor bugs for 2 months until past week when it suddenly started to crash a LOT, get slow and overheat (I didn't had time to fix it).
Then suddenly, all Android services and apps on the phone crashed and the phone turned off entering in a bootloop (Asus logo) everytime I reboot.
Since then I am getting the "E:Failed to mount /cache (Invalid argument)" issue when loading the recovery mode.
Since then I am also not being able to flash anything on my phone... no different recovery, no other fastboot and no other image... I get success messages on the flash process but nothing changes after restart (I can still access droidboot and recovery but nothing works there as the "Failed to mount /cache" error pops up for any action I try... recovery mode shows version 3.24.40.87_201).
When I try a system image via adb sideload I get error "Total xfer: 0.00x".
When I try "sec_offline_update_image.cmd" I get an error on the command "fastboot oem partition /tmp/partition.tbl"... the error is "FAILED(remote: GPT command failed)".
I have tried 2 different "partition.tbl" files... one that contains the "spare" partition and another one that contains "misc" instead... both failed.
I am now currently trying xFSTK (I don't even know what this does on my phone) and ASUS Flash Tool... ASUS Flash Tool returns "Flash image failure (FAILED (remote: GPT command failed))".
PS: I forgot to activate developer mode and other related options before the crash.
I hope that my phone is somehow alive... btw, thank you very much in advance!!!
Click to expand...
Click to collapse
Hi,
Did you have any kernel mods when using BlueLight?
Sorry but I don't know if it had a custom kernel, but a custom one could have lead a storage drive crash.
Also, xFSTK will just attempt to restore your droidboot and dnx/ifwi, not the partition table or w.e.
Maybe you could try extracting the Jelly Bean RAW file with 7-Zip, flash the droidboot signed image (should be like, fastboot flash fastboot file.img, or fastboot flash droidboot file.img), the droidboot signed image name might be something like droidboot.signed_POS.bin (it's an img file too, but with a bin extension).
After flashing that droidboot image, reboot your bootloader and try running the sec_offline_image_update.cmd again.
I wish I had Zenfone Assist active yet, but had to take down it.
Thanks
Hey jaabax, were you able to fix your device ?
Hi @vikrammarkiv.
Sorry for the big delay in response... I am not using this e-mail anymore and I quit fixing my phone.
Unfortunately I could not fix it and I ended up buying another phone.
Could you fix it?
Sorry again and hope you fixed it.
Best regards.
same issue, anyone got any update on fix?
jaabax said:
A little more context @dgadelha.
2 months ago, I unlocked my bootloader for the 1st time and installed BlueLight 3.24.40.87... after the installation I locked my bootloader again using the boot, recovery and droidboot images contained in UL-ASUS_T00F-TW-3.24.40.87-user (Asus' official).
BlueLight worked fine with minor bugs for 2 months until past week when it suddenly started to crash a LOT, get slow and overheat (I didn't had time to fix it).
Then suddenly, all Android services and apps on the phone crashed and the phone turned off entering in a bootloop (Asus logo) everytime I reboot.
Since then I am getting the "E:Failed to mount /cache (Invalid argument)" issue when loading the recovery mode.
Since then I am also not being able to flash anything on my phone... no different recovery, no other fastboot and no other image... I get success messages on the flash process but nothing changes after restart (I can still access droidboot and recovery but nothing works there as the "Failed to mount /cache" error pops up for any action I try... recovery mode shows version 3.24.40.87_201).
When I try a system image via adb sideload I get error "Total xfer: 0.00x".
When I try "sec_offline_update_image.cmd" I get an error on the command "fastboot oem partition /tmp/partition.tbl"... the error is "FAILED(remote: GPT command failed)".
I have tried 2 different "partition.tbl" files... one that contains the "spare" partition and another one that contains "misc" instead... both failed.
I am now currently trying xFSTK (I don't even know what this does on my phone) and ASUS Flash Tool... ASUS Flash Tool returns "Flash image failure (FAILED (remote: GPT command failed))".
PS: I forgot to activate developer mode and other related options before the crash.
I hope that my phone is somehow alive... btw, thank you very much in advance!!!
Click to expand...
Click to collapse
Same problem, only fastboot and GPT failed (Asus zenfone 2 ze551ml). No solution
Exactly the same problem. It appears there are no fixes. How did the xf... thingy go?
Оh man.. I have the same issue, and can't fix it...

Essential Ph-1 softbricked and possibly corrupted

Hey everyone,
Earlier today I was able to successfully root my Essential Ph-1 running Oreo 8.1, using Magisk and twrp-mata_11.img . Later on I tried to install Xposed framework, but found myself caught in a bootloop, when the flashed TWRP did not recognized my phone PIN and I tried to reboot the system and take the PIN out. I am able to access the bootloader and use the TWRP when I flash it, and that's it.
I do realize that it fixing it is not really a complex process, but I have been having trouble with flashing with fastboot. Every command I try to run ends up in failure, except the "fastboot devices" one. For example, when I tried to run the "fastboot -w" command, I received the following:
"wiping userdata...
Erase successful, but not automatically formatting.
Can't determine partition type.
FAILED (command write failed (No error))
erasing 'userdata'...
FAILED (command write failed (No error))".
And all others commands showed the "FAILED (command write failed (No error))" message, including when I tried to run the "flash all" file as system admin.
Also, I have only tried to do it in Windows, to no avail, while I am still inexperienced with Linux and cannot connect fastboot to my device.
This is not the first time that I have rooted the device, I did it twice a couple months ago but lost the root because of updates. The difference is that I used my Nintendo Switch Pro Controller cable, which for some reason was the cable that worked the best, instead of the phone's factory cable with a Syntech USB - C to USB adaptor. this time. I found out later on that this cable had issues with this kind of process.
Also, when flashing TWRP in my oldest attempt at rooting, I got the message "system mount fail" when installing the magisk zip, but it never progressed beyond that and my at-the-time rooted phone worked perfectly.
This is my first Android phone after years of Apple(also my first thread here), and I have been excited and experimenting with it a lot, though I've only had it for less than 3 months. I would be really grateful if you guys could help me.
Thank you for the collaboration.
Do not turn it off. Seems that ends in instant brick. Try flashing the return to stock zip
crixley said:
Do not turn it off. Seems that ends in instant brick. Try flashing the return to stock zip
Click to expand...
Click to collapse
All right, will try. Thanks for the tip
Make sure you have a good cable and good fastboot in your computer
Sent from my PH-1 using XDA Labs
So I was able to pass through some problems from before, but one still persists. When I run the command "fastboot flash-all" on my command prompt, it shows all the options for fastboot, while only "flash-all" shows that there is no such command. I have also tried "fastboot flashall", but that shows the message:
error: neither -p product specified nor ANDROID_PRODUCT_OUT set.
Sorry, I know this is not the fastboot thread, but I'm really lost here.
Shiro744760 said:
So I was able to pass through some problems from before, but one still persists. When I run the command "fastboot flash-all" on my command prompt, it shows all the options for fastboot, while only "flash-all" shows that there is no such command. I have also tried "fastboot flashall", but that shows the message:
error: neither -p product specified nor ANDROID_PRODUCT_OUT set.
Sorry, I know this is not the fastboot thread, but I'm really lost here.
Click to expand...
Click to collapse
flash-all is a batch/script file, its not a fastboot command. You simply need to run on Windows
Code:
.\flash-all.bat
or Linux/MacOS
Code:
./flash-all.sh
Just open up a terminal/command prompt, type flash and then hit tab and it will autocomplete the full path.
It worked!
Thought it was already gone for good, I can barely believe it
Thank you very much for all of you, it really meant a lot your help!

Cannot Lock Bootloader Pixel 4

EDIT: Fixed, see below.
Hello all, I have a Pixel 4 running the July build of Android (QQ3A.200705.002). I previously had it rooted with Magisk, but I have reset the phone and it's not longer rooted (verified; originally it was still rooted after a factory reset) .When I attempt to relock the bootloader, I type the command
Code:
fastboot flashing lock
However, fastboot just shows me the help message, as if I were to type 'fastboot help'.
When I try to manually flash an image using flash-all.bat (QQ3A.200705.002 for example), I get the following error:
Code:
error: failed to load 'image-flame-qq3a.200705.002.zip': Not enough space
If I try to manually flash individual images, I get various errors. For the boot image, I get an error that says no partition exists (like my boot_a slot isn't there. I can flash it into boot_b just fine). If I try to flash system, it tells me I need to be in fastbootd; I haven't looked up how to do that yet. I am a bit lost here, I've never had anything like this happen before, and the system is completely wiped from a factory reset, so there is plenty of available storage.
I figured out that I was able to update to the August build (QQ3A.200805.001) by sideloading the OTA update, but I still cannot lock the bootloader. This is what happens when I run the command (reference Fastboot 1.png).
I also tried it in Powershell ISE, and I'm getting this error (reference Fastboot 2.png)
Code:
+ FullyQualifiedErrorId : NativeCommandError
Almost like fastboot itself isn't recognizing the 'flashing' command.
Thoughts?
I was able to fix it by downloading the latest platform-tools from here: https://developer.android.com/studio/releases/platform-tools
However, I am pretty sure I was already on the latest platform-tools (I had flashed the phone numerous times on Android 10 already), but I digress.

Fastboot Failed (data transfer failure(unknown error)

Hello and thanks for inteterest to help. (My phone Redmi 2 Prime)
So to the point, i have my phone installed custom ROM. And today when i try to reset factory, it stuck in the MI Logo (Show and then turned off). So i forgot to flashing the twrp again last time, so i left it without any recovery. The only way is repairing it with Fastboot and installing TWRP. So i start installing all driver and flashing. But, when i want to flash twrp to my phone, it keep showing me this
fastboot flash recovery recovery.img
flashing 'recovery.img'
FAILED (Data Transfer Failure(unknown error)
DONE! 5.8 sec
But it doesnt installing any recovery. I have installing MiFlash driver. Is there any driver that i should install again? Or anything that i can do? Also my PC doesnt read my phone storage at all, it doesnt show in the explorer, but can read "my phone" and my phone model. And I'm using USB 2.0. I also have try USB 3.0 but it doesnt work too.
Any help would be appreciated. Sorry for the long post, eh?
Try to temporarily boot into recovery by this command
"fastboot boot recovery.img"
(If it boots to recovery then you can flash any zip)
dabakale said:
Try to temporarily boot into recovery by this command
"fastboot boot recovery.img"
(If it boots to recovery then you can flash any zip)
Click to expand...
Click to collapse
Thank you for replying
So i've try it, but why its stuck at 'downloading boot.img' for 2 hours?
Can i download the boot.img manually? If yes, what should i download?
Can you share a photo of error.
Or you can try miflash to flash stock rom. Then you try to flash twrp. I suspect there would be something wrong with your recovery partition.(i also had similar problem while flashing different roms.)
Ok, so when i flash stock rom on miflash, at average 70%, it show me "fastboot.exe has stopped working" and show me error 0x80004005('Error flash system.img')
Why, godness? Is it because my laptop is only having 2GB Ram?
Or is there any ways to flash TWRP with fastboot without UBL?
Egalito Rieans said:
Ok, so when i flash stock rom on miflash, at average 70%, it show me "fastboot.exe has stopped working" and show me error 0x80004005('Error flash system.img')
Why, godness? Is it because my laptop is only having 2GB Ram?
Or is there any ways to flash TWRP with fastboot without UBL?
Click to expand...
Click to collapse
Try this method
[No More Errors] [Fastboot Rom Flashing] [Direct Method]
Hi all, Yesterday i flashed miui LP on my Redmi 2 Prime. In the evening i tried to flash the miui KK with fastboot rom. But ended up with unspecified error ;). I tried many things but no luck. Then i followed direct method and that worked...
forum.xda-developers.com

Categories

Resources