Having trouble with restoring a soft-bricked XT1068 - G 2014 Q&A, Help & Troubleshooting

Hi there,
a friend asked me for help with restoring his german Moto G 2014 (XT1068). The last working software on the device was the Marshmallow update. He was having software issues and softbricked the device when trying to install a custom ROM.
Fastboot mode and stock recovery is accesible, the bootloader is unlocked and the device is stuck on the "WARNING: BOOTLOADER UNLOCKED" screen when trying to boot normally.
I have tried following this guide to revert the phone back to stock firmware with a matching system image. Both the XT1068_TITAN_RETDE_6.0_MPB24.65-34-3_cid7_CFC and XT1068_TITAN_RETAILDSDS_6.0_MPB24.65-34-3_cid7_CFC images will flash without any error messages. However, the device does not boot the new software. Also, when trying to relock the bootloader, the mfastboot oem lock command failes with the error message Not supported command in current status!. I tried to substitute mfastboot with fastboot, changed USB cables and downloaded new copies the images, with no success.
Digging deeper, I found out that I could not wipe cache or data using the stock recovery. This will fail with the error message blkdiscard on partition /dev/block/platform/msm_sdcc.1/by-name/cache failed. Further troubleshooting attempts lead me to try twrp custom recovery software (Version 3.1.1) which I could only start using the mfastboot boot twrp-3.1.1-0-titan.img command since flashing the image as custom recovery will not fail but the phone instantly and silently reverts to stock recovery - even when not rebooting inbetween. Consequently, any attempts to flash an image using the software will fail with E1001: Failed to update system image.
At this point, I have no idea what else I could try. That's why I turn to you, great community of XDA .
Any help would be greatly appreciated.

Related

Failed to validate system image, Fall thorugh from normal mode, mismatched partition

hey friends plz help me I was flashing the stock 5.0.2 rom on my device it succeeded too.
But to change the recovery and to lock the bootloader I fastboot flashed stock recovery and locked the bootloader.. these also succeded.
But now when i try to reboot from fastboot it says mismatched partition size(recovery), fall through from normal mode, failed to validate system image.. etc
and it is not booting, plz help me someone...
Update : Flashed stock 5.0.2 via mfastboot v2 and it worked fine and device booted up finally...!
Mods I request you to delete this thread

[Q] Help! Moto G Dead and massive headache

Right.
So, I was opening youtube on the last version of CM 12.1. No xposed, stock kernel, XT1068 model, when all of a sudden the phone stopped working.
Youtube wasn't opening. The phone was stuck on the home screen, all I could do was just press the home/back/recent buttons. Even long pressing power button to reboot would just take me to the power menu but Wouldn't allow me to do anything.
So in the end I long pressed the power menu to force reboot the phone aaaand... stuck on the boot logo. Not on the bootanimation, on the Motorola Bootlogo.
Managed to get to fastboot mode, tried to go to recovery, but after the twrp splash screen It would reboot to the splash screen again.
So i decided to mfastboot the original firmware. Who knows? maybe something got corrupted on cm.
Now, mfastboot is giving me weird errors.
flash partition gpt.bin gives (bootloader) Preflash validation failed
flash motoboot motoboot.bin gives FAILED (data transfer failure (Unknown error))
flash boot boot.img freezes everything and i need to reboot it to try and get to fastboot again.
Anybody knows what I should do? I'm kinda desperate here...
Thanks in advance. Peace.
(by the way, latest motorola drivers, just so you know...)
EDIT. Also, on the phone, it says
"hab check failed for primary_gpt
Failed to verify hab image primary_gpt"
Hope I can help
Are you flashing a gpt.bin from a previous android version? You cannot downgrade gpt.bin or motoboot.bin so the error is normal. From what firmware version is the boot.img you are flashing from? Try downloading this twrp recovery img from here https://dl.twrp.me/titan and
Code:
fastboot flash recovery recovery.img
or
Code:
mfastboot flash recovery recovery.img
Then you can try flashing any rom like this AOSP one http://forum.xda-developers.com/moto-g-2014/development/rom-android-source-project-t3123109
Hope this helps. I understand how hard it is to have a phone that won't boot.
Maybe you should try to place the stock rom 4.4.4 and then upgrade to 5.0, with 4.4.4 rom the GPT will have a downgrade and then you update the GPT putting 5.0
LudwigFerdinand18 said:
Maybe you should try to place the stock rom 4.4.4 and then upgrade to 5.0, with 4.4.4 rom the GPT will have a downgrade and then you update the GPT putting 5.0
Click to expand...
Click to collapse
You cannot downgrade gpt
Well I somehow managed to reboot into recovery, but the great problem here is that it won't mount \data.
Now, maybe all I need is to reformat \data cause it got corrupted, but since TWRP won't mount it, I can't do much about it.
I found on another thread this command
adb shell
killall -19 recovery
make_ext4fs /dev/block/mmcblk0p8
reboot
Which apparently formats the data partition of a phone. I suppose I'd have to change "ext4fs" into "f2fs", but I'm too scared to actually try it out.
Also because I don't know whether mmcblk0p8 is the right block for our data partition.
Jeez, I hate this.
Thanks for your help guys, but I don't think flashing recovery again would help. Nor downgrading, but I'll think about it.
EDIT.
Magic, just magic. After hours of tinkering I did EXACTLY THE SAME THINGS and now it's working. Restored the stock Rom and I'm off to install CM again.
Sorry guys and thanks so much!!!

[XT1053] Stuck at "bootloader unlocked" / recovery after flashing

I tried to flash back to recovery, but I used
HTML:
TMO_RETAIL_XT1053_5.1.0-LPAS23.12-15.5-1_CFC.xml
, which I'm pretty sure means I'm gonna have a bad time.
I can't flash the LPA23.12 because I get an error doing fastboot flash partition gpt.bin and it screws up my partitions.
I can flash twrp, but that doesn't help me much. I can get to stock recovery, but that doesn't help me much either.
Things I've tried:
Clearing cache/dalvik
Factory reset
Flashing OTA_XT1053_Rooted.zip with TWRP
Running all the fastboot commands for LPA-23.12-15.5-0
Running all the fastboot commands for LPAS-23.12-15.5-0
Restoring someone elses recovery
I have a Windows 10 VM on my Mac, and while fastboot on Windows sees the phone, I can't get it to show up in RDS Lite 2.6.4. Moto Device Manager and Drivers have been installed.
Any ideas? :crying:

Returning to Stock from CM 13

Hi guys,
I am planning to return to Stock 5.1 on my phone, after running CM 13.
So I upgraded from 4.4 to 5.1 my manually flashing the zip in recover.(XT1053_GHOST_TMO-RETAIL_5.1_LPA23.12-15.5_cid9_CFC.xml.zip would be the file from https://firmware.center/firmware/Motorola/Moto X (1st gen-2013)/Stock/XT1053 T-Mobile/)
From there I moved on to CM 12 and then CM 13.
Device version is XT1053.
Been facing issues with bluetooth devices and planning to get back to stock 5.1
So I tried manually(mfastboot) flashing components (boot, recovery and system). Boot and recovery went fine, but system gave me(similar) error.
load_file: could not allocate 829072920 bytes
error: cannot load 'system.img': Not enough space
Referred to this tutorial, http://forum.xda-developers.com/moto-x/general/guide-moto-x-return-to-100-stock-using-t2446515
and tried the manually method wherein I ran these 2 commands :
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
Threw some error(forgot to note them down) :|
Anyway, nothing work post that.
Tried rebooting, got the "no command" screen.
Eventually flashed TWRP and installed CM13 again from zip and got the phone booted up.
Running fine, but still can't to get back to stock!
Tried RSDLite method from the tutorial above, but RSD doesn't detect my phone on connecting.
adb devices command does list the phone.
Can someone please point me in the right direction ?
btw, noticed something weird after failed partition flash.
Whenever I mfastboot recovery/boot it throws an error unknown command 'recovery' (or boot), but flashes fine.
Is this normal ?
Regards,
Neel Indap

Bricked? help please..

Timeline of the brick.
1-apps started crashing.
2-got stuck and unresponsive.
3-rebooted
4-automatically booted to bootloader.
5-selected boot options.(nothing worked).
Present state.
on nougat build 7.1.1 running with elementalx.
Stuck on bootloader screen with recovery log showing "failed to validate boot image/recovery image" . tried every methods,theories,heating the phone etc... all the methods but none of them worked.
fastboot and adb available (using temporary boot twrp 3.1 recovery) but flashing and erasing partitions failed through twrp. Every available partition showing 0mb
but i noticed that using older twrp images it is able to locate /data partition with 27199 mb available but cannot erase/format/resize it.
tried gpt.bin file using fastboot to flash but it returns - " failed to flash gpt.bin"
tried every image to flash and commands to revive but fails.
any help would be appreciated.
somehow i got the device to boot into qualcomm download mode 9008 and tried to debrick using files qboot but no luck still shows failed to flash gpt partition.
want to have this beast back again.

Categories

Resources