Bootloader flashfail

vicky_ag

Senior Member
Jul 30, 2011
119
4
0
I made a mistake and did not turn on the debug mode. So when trying to unlock the bootloader using the tool here:
http://forum.xda-developers.com/moto-g-2014/development/ultimate-moto-g-2014-toolkit-t2979862

it dint work. Now I keep getting "UTAG "flashfail" configured as fastboot" error. I have searched the forums and it seems I need to reflash the motorola boot img to get it to work.
Someone please help me out with it. I am on the latest 5.0.2 update for XT1068 - Indian version.
 

reefuge

Senior Member
Jan 23, 2011
688
435
0
Norwich
www.aquacaves.uk
I made a mistake and did not turn on the debug mode. So when trying to unlock the bootloader using the tool here:
http://forum.xda-developers.com/moto-g-2014/development/ultimate-moto-g-2014-toolkit-t2979862

it dint work. Now I keep getting "UTAG "flashfail" configured as fastboot" error. I have searched the forums and it seems I need to reflash the motorola boot img to get it to work.
Someone please help me out with it. I am on the latest 5.0.2 update for XT1068 - Indian version.
ok download the boot.img and use mfastboot to flash
 

vicky_ag

Senior Member
Jul 30, 2011
119
4
0
That worked. But now having another issue :eek:
I have rooted a lot of phones but this is the first I am stumbling my way through it. I unlocked the bootloader by going to Motorola's site and then went ahead and tried to root the phone using the tool mentioned in original post.

So the tool pushes the boot.img and reboots the phone. Then even when the phones boots in TWRP, the computer keeps saying waiting for device.

Now when I try to do a normal boot, I get the warning from Motorola but then phone wont bootup. No matter how much I wait or even try to re-flash the above image.
 
Last edited:

doppelhelix

Senior Member
Jan 29, 2012
1,096
755
113
Hamburg
That worked. But now having another issue :eek:
I have rooted a lot of phones but this is the first I am stumbling my way through it. I unlocked the bootloader by going to Motorola's site and then went ahead and tried to root the phone using the tool mentioned in original post.

So the tool pushes the boot.img and reboots the phone. Then even when the phones boots in TWRP, the computer keeps saying waiting for device.

Now when I try to do a normal boot, I get the warning from Motorola but then phone wont bootup. No matter how much I wait or even try to re-flash the above image.
Please don't use mfastboot. It is known for having problems with latest Android versions. You can use Minimal adb and fastboot or the the latest Android SDK.
Next make sure you have flashed the latest TWRP 2.8.4.0.
Wipe everything in twrp. Cache, dalvik and data.
MTP is a bit messed up (not just on our devices). Go to mount, disable mtp, unmount everything, connect usb and enable MTP. Now your device should appear on your computers file manager.

One last thing. Unless you flash the latest SuperSU 2.4.5, stock Lollipop will automatically remove twrp and reinstall stock recovery on the next boot (Actually there is another way. But why would you want to install TWRP without rooting the phone).
 
Last edited:
  • Like
Reactions: vicky_ag

vicky_ag

Senior Member
Jul 30, 2011
119
4
0
Please don't use mfastboot. It is known for having problems with latest Android versions. You can use Minimal adb and fastboot or the the latest Android SDK.
Next make sure you have flashed the latest TWRP 2.8.4.0.
Wipe everything in twrp. Cache, dalvik and data.
MTP is a bit messed up (not just on our devices). Go to mount, disable mtp, unmount everything, connect usb and enable MTP. Now your device should appear on your computers file manager.

One last thing. Unless you flash the latest SuperSU 2.4.5, stock Lollipop will automatically remove twrp and reinstall stock recovery on the next boot.
Oh. After many tries now I am stuck in a bootloop. The phones goes to the "warning" then reboots for 5-6 times before it actually starts up. So I am wondering what will be the correct way to go about rooting and clearing this mess. And I see only SuperSu 2.4.0 in play store. has there been a latest version?
 

vicky_ag

Senior Member
Jul 30, 2011
119
4
0
That's because off the outdated SuperSU. Get the latest .zip here http://forum.xda-developers.com/showthread.php?p=23427715
So I went this way. I installed the recovery using the tool mentioned in the op. Installed SuperSU latest. Still when I go to bootloader and try recovery, nothing happens. I booted up the phone to see if SuperSU is installed and it appears fine in the apps. But the recovery wont load no matter what.
Another strange thing even when I am connected on 3G, I am not getting the icon.
 
Last edited:

vicky_ag

Senior Member
Jul 30, 2011
119
4
0
Then how did you install SuperSU if you can't get into recovery?
I got in the first time using the tool mentioned in the op. I checked and it uses the command:
fastboot.exe boot twrp.img

This causes the phone to boot into twrp and I can copy the SuperSU to install. But the recovery still doesn't work.
 

doppelhelix

Senior Member
Jan 29, 2012
1,096
755
113
Hamburg
I got in the first time using the tool mentioned in the op. I checked and it uses the command:
fastboot.exe boot twrp.img

This causes the phone to boot into twrp and I can copy the SuperSU to install. But the recovery still doesn't work.
What are you talking about. TWRP is the recovery.

---------- Post added at 10:08 ---------- Previous post was at 10:06 ----------


Oh sorry. Now I understand. Please use this commands:
Code:
fastboot flash boot boot.img
fastboot flash recovery twrp.img
 
Last edited:

vicky_ag

Senior Member
Jul 30, 2011
119
4
0
What are you talking about. TWRP is the recovery.
Ok so this is what has happened:
1. I use the tool mentioned which uses the command:
fastboot.exe boot twrp.img

2. This causes the phone to boot into TWRP recovery. Then I installed SuperSU.

3. Rebooted the phone completely and checked the version of SuperSU.

4. Again went to the bootloader menu, selected TWRP. Nothing happens at this setup. phone doesn't boot at all. on clicking the power button it goes into normal boot

5. I tried going to the bootloader menu and running.
fastboot.exe flash recovery twrp.img

still no luck. Again trying to go from the bootloader menu to recoery yields no boot up.
 

doppelhelix

Senior Member
Jan 29, 2012
1,096
755
113
Hamburg
Ok so this is what has happened:
1. I use the tool mentioned which uses the command:
fastboot.exe boot twrp.img

2. This causes the phone to boot into TWRP recovery. Then I installed SuperSU.

3. Rebooted the phone completely and checked the version of SuperSU.

4. Again went to the bootloader menu, selected TWRP. Nothing happens at this setup. phone doesn't boot at all. on clicking the power button it goes into normal boot

5. I tried going to the bootloader menu and running.
fastboot.exe flash recovery twrp.img

still no luck. Again trying to go from the bootloader menu to recoery yields no boot up.
You are overriding the boot image with the recovery. The correct commands are

Code:
fastboot flash boot boot.img
fastboot flash recovery twrp.img
 
  • Like
Reactions: vicky_ag

vicky_ag

Senior Member
Jul 30, 2011
119
4
0
You are overriding the boot image with the recovery. The correct commands are

Code:
fastboot flash boot boot.img
fastboot flash recovery twrp.img
Just tried that:

C:\fastboot>fastboot.exe flash boot boot.img
target reported max download size of 536870912 bytes
sending 'boot' (10200 KB)...
OKAY [ 0.496s]
writing 'boot'...
OKAY [ 0.438s]
finished. total time: 0.944s

C:\fastboot>fastboot flash recovery twrp.img
target reported max download size of 536870912 bytes
sending 'recovery' (9696 KB)...
OKAY [ 0.463s]
writing 'recovery'...
OKAY [ 0.433s]
finished. total time: 0.903s
Still when I go to the bootloader and select recovery, phone doesn't boot up at all.
 

doppelhelix

Senior Member
Jan 29, 2012
1,096
755
113
Hamburg
Just tried that:



Still when I go to the bootloader and select recovery, phone doesn't boot up at all.
Ok. Let's try this.
Can you boot normally into android? If so, please look if SuperSU is installed. If so, go to play store and install Android Terminal Emulator.
Open it and type
Code:
su
Supersu should pop up. Allow root.
Next type
Code:
reboot recovery
The device should boot into recovery. ( some people have this problem)
 
  • Like
Reactions: vicky_ag

vicky_ag

Senior Member
Jul 30, 2011
119
4
0
Nice. Until you can go directly to the recovery, be very carefull not to leave the recovery without having flashed a rom and SuperSU. Also make sure that you grant adb access by accepting the RSA key when connecting the device with your computer. Just in case.
I am actually fine with a stock ROM on Motorola for now. They have lesser fluff than samsung et al. The major reason for trying to root the phone was to get TitanBackup working, I have been preserving some apps at a particular version in my last phone. The only way I found to restore the app and data was to use TitanBackup. The whole unlock the bootloader was because of Motorola adding a step to do this.

Adding recovery was an addition just in case Motorola forgets about us 1 year down the line. Then might flash to CM or something :)