[G 2014 General] Rockel:
Can't restore to stock (solved)

Just got XT1068, and have unlocked the bootloader and rooted the Phone using the instructions here on XDA-developers. After trying some several thing's I've decided to start over clean ROM. Booted the Phone with fastboot in TWRP and whiped the Phone using all available options (Ok, maybe stupid :rolleyes:). I got the "no OS installed" warning message after this, while rebooting from TWRP.

At that point I came here, downloaded the custom ROM and follwed the instructions in the Opening Post. But I'm not able to get my Phone restored to stock. After rebooting, the screen keeps showing the Motorola Logo (I've changed the warning logo with this one) and freeses from that point. I'm still able to get back into fastboot. But after a while my battery got drained to 0% (seems it doesn't charge while connected to USB-port). And I'm trying to get it recharged somehow now. While typing this I'm able again to get into fastboot. :good:

Btw: I've also tried to load all the 4 sparchunk files (0 t/m 3) after this, but thi was also without succes. :(

Could annyone please help me? Thanks in advance!

----------------------------------------------------------------------------------------------------------------------------

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe flash partition gpt.bin

target max-sparse-size: 256MB

sending 'partition' (32 KB)...

OKAY [ 0.029s]

writing 'partition'...

(bootloader) Battery Low!!

FAILED (remote failure)

finished. total time: 0.057s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe flash motoboot motoboot.img

target max-sparse-size: 256MB

sending 'motoboot' (2184 KB)...

OKAY [ 0.124s]

writing 'motoboot'...

(bootloader) Battery Low!!

FAILED (remote failure)

finished. total time: 0.171s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe flash logo logo.bin

target max-sparse-size: 256MB

sending 'logo' (417 KB)...

OKAY [ 0.067s]

writing 'logo'...

(bootloader) Battery Low!!

FAILED (remote failure)

finished. total time: 0.110s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe flash boot boot.img

target max-sparse-size: 256MB

sending 'boot' (10200 KB)...

OKAY [ 0.467s]

writing 'boot'...

(bootloader) Battery Low!!

FAILED (remote failure)

finished. total time: 0.522s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe flash recovery recovery.img

target max-sparse-size: 256MB

sending 'recovery' (10280 KB)...

OKAY [ 0.471s]

writing 'recovery'...

(bootloader) Battery Low!!

FAILED (remote failure)

finished. total time: 0.497s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe flash system system.img_sparsechunk.0

target max-sparse-size: 256MB

sending 'system' (254591 KB)...

OKAY [ 10.274s]

writing 'system'...

(bootloader) Battery Low!!

FAILED (remote failure)

finished. total time: 10.325s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe flash system system.img_sparsechunk.1

target max-sparse-size: 256MB

sending 'system' (242825 KB)...

OKAY [ 9.725s]

writing 'system'...

(bootloader) Battery Low!!

FAILED (remote failure)

finished. total time: 9.793s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe flash system system.img_sparsechunk.2

target max-sparse-size: 256MB

sending 'system' (257427 KB)...

OKAY [ 10.296s]

writing 'system'...

(bootloader) Battery Low!!

FAILED (remote failure)

finished. total time: 10.330s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe flash modem NON-HLOS.bin

target max-sparse-size: 256MB

sending 'modem' (49252 KB)...

OKAY [ 1.986s]

writing 'modem'...

(bootloader) Battery Low!!

FAILED (remote failure)

finished. total time: 2.041s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe erase modemst1

erasing 'modemst1'...

OKAY [ 0.057s]

finished. total time: 0.060s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe erase modemst2

erasing 'modemst2'...

OKAY [ 0.025s]

finished. total time: 0.029s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe flash fsg fsg.mbn

target max-sparse-size: 256MB

sending 'fsg' (651 KB)...

OKAY [ 0.112s]

writing 'fsg'...

(bootloader) Battery Low!!

FAILED (remote failure)

finished. total time: 0.134s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe erase cache

erasing 'cache'...

OKAY [ 0.327s]

finished. total time: 0.331s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe erase userdata

erasing 'userdata'...

OKAY [ 2.664s]

finished. total time: 2.667s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe reboot

rebooting...

finished. total time: 0.004s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe erase cache

erasing 'cache'...

OKAY [ 0.294s]

finished. total time: 0.298s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe erase userdata

erasing 'userdata'...

OKAY [ 2.716s]

finished. total time: 2.719s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe reboot

rebooting...

finished. total time: 0.004s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>

----------------------------------------------------------------------------------------------------------------------------

Ok, Fixed it already :D

I've looked after the power issue. If it doesn't charge it seems that you have to hold down volume - and power for over 2,5 minutes. First this sounded strange to me, but it seemed to work. After releasing the buttons it starts in fastboot and then select power off. After this I've managed to charge my Phone again.

Second, I've looked into the TWRP options, I've mentioned that I got an error in the whipe options: unable to mount data/ cacha and internal storage. So I've tried to mount these partitions in the mount options menu.

After trying to restore again, I've mentioned that the CMD-window gave no: "FAILED (remote failure) and (bootloader) Battery Low!!" messages annymore. And after rebooting a got the warning message and the Stock ROM. Don't know what did the trick, this power issue or mounting these partitions... But it works for me. :o

----------------------------------------------------------------------------------------------------------------------------

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe flash partition gpt.bin

target max-sparse-size: 256MB

sending 'partition' (32 KB)...

OKAY [ 0.030s]

writing 'partition'...

OKAY [ 0.378s]

finished. total time: 0.413s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe flash motoboot motoboot.img

target max-sparse-size: 256MB

sending 'motoboot' (2184 KB)...

OKAY [ 0.113s]

writing 'motoboot'...

(bootloader) flashing tz ...

(bootloader) flashing rpm ...

(bootloader) flashing sdi ...

(bootloader) flashing aboot ...

(bootloader) flashing sbl1 ...

OKAY [ 1.310s]

finished. total time: 1.429s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe flash logo logo.bin

target max-sparse-size: 256MB

sending 'logo' (417 KB)...

OKAY [ 0.071s]

writing 'logo'...

OKAY [ 0.096s]

finished. total time: 0.173s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe flash boot boot.img

target max-sparse-size: 256MB

sending 'boot' (10200 KB)...

OKAY [ 0.448s]

writing 'boot'...

OKAY [ 0.782s]

finished. total time: 1.234s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe flash recovery recovery.img

target max-sparse-size: 256MB

sending 'recovery' (10280 KB)...

OKAY [ 0.463s]

writing 'recovery'...

OKAY [ 0.786s]

finished. total time: 1.257s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe flash system system.img_sparsechunk.0

target max-sparse-size: 256MB

sending 'system' (254591 KB)...

OKAY [ 9.926s]

writing 'system'...

OKAY [ 12.053s]

finished. total time: 21.985s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe flash system system.img_sparsechunk.1

target max-sparse-size: 256MB

sending 'system' (242825 KB)...

OKAY [ 9.504s]

writing 'system'...

OKAY [ 9.467s]

finished. total time: 18.978s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe flash system system.img_sparsechunk.2

target max-sparse-size: 256MB

sending 'system' (257427 KB)...

OKAY [ 10.117s]

writing 'system'...

OKAY [ 10.545s]

finished. total time: 20.667s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe flash system system.img_sparsechunk.3

target max-sparse-size: 256MB

sending 'system' (31452 KB)...

OKAY [ 1.261s]

writing 'system'...

(bootloader) Failed to validate sparse image

OKAY [ 13.036s]

finished. total time: 14.304s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe flash modem NON-HLOS.bin

target max-sparse-size: 256MB

sending 'modem' (49252 KB)...

OKAY [ 1.961s]

writing 'modem'...

OKAY [ 1.299s]

finished. total time: 3.266s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe erase modemst1

erasing 'modemst1'...

OKAY [ 0.021s]

finished. total time: 0.022s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe erase modemst2

erasing 'modemst2'...

OKAY [ 0.024s]

finished. total time: 0.025s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe flash fsg fsg.mbn

target max-sparse-size: 256MB

sending 'fsg' (651 KB)...

OKAY [ 0.084s]

writing 'fsg'...

OKAY [ 0.102s]

finished. total time: 0.193s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe erase cache

erasing 'cache'...

OKAY [ 0.285s]

finished. total time: 0.288s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe erase userdata

erasing 'userdata'...

OKAY [ 2.310s]

finished. total time: 2.314s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>mfastboot.exe reboot

rebooting...

finished. total time: 0.003s

C:\Motorola Moto-G (XT1068)\Moto-G Firmware\RETAILDSDSALL_XT1068_4_4_4_KXB21_85-

14_cid7_CFC_SVC_xml_zip>

Sorry for the verry long post, maybe it can be in anny use for someone?