Hi all,
I could really use some help on the following, and any advice would be greatly appreciated.
I wanted to root my Moto G (2014, 2nd gen, dual sim) in order to use the RAM more flexibly. Unlocking the device was no problem at all. However, when I initiated the rooting process, the trouble started. I first tried superboot, which did not work, but also did not destroy anything. Then, I switched to using TWRP and the supersu image (I found the info on here). TWRP worked fine, but after initiating the installation of the supersu image, the phone got stuck in a boot loop -- it stayed on the unlocking warning page and would not boot up anymore. I figured out a way to get back into fastboot (also by looking through the forum here, thanks to you all!) -- by pressing the power button until the screen switched off, and then pressing the Volume down button as well for a few seconds.
However, none of the recovery methods I found in other threads worked (I tried deleting the cache etc. through various methods, but the loop persisted). So, next, I attempted to use the method I found on droidviews.com to restore the phone to a working status (any working status would do at this point).
Since I was not able to access the debugging options anymore, I did everything except the initial 'adb reboot bootloader' command. Here is the list of commands:
mfastboot oem lock begin
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
NB I am doing this on MacOS, so I used the osx-fastboot command instead of mfastboot. Up until 'flash boot boot.img', everything worked, but when I tried the 'osx-fastboot flash recovery recovery.img' command, I got the following error message in the Terminal window:
(bootloader) Preflash validation failed
FAILED (remote failure)
And the error message on my phone reads:
hab check failed for recovery
Failed to verify hab image recovery
What can I do at this point? Since I followed the instructions as closely as possible, I also used the 'osx-fastboot oem lock begin' command, and now my device indicates that it is locked. Did I wreck my phone or is there any way out of this at all?
As I said, I would be most grateful for any advice at all. If you need more information, I am happy to provide it.
Thanks!
-sleepingweather
I am still looking for ways to get the phone into any sort of working order. Do any of you have advice on this? Is it possible?
I ran Lollipop on it before it crashed, if that is helpful information.
Thanks
After connecting the device to a Windows 7 PC, I can confirm that the Windows system does not recognize the Moto at all, so it appears that the method in the main thread on unbricking & restoring Moto Gs back to 4.4.4 / 5.01 would not work either, right? Is there anything else that I can do?
If anybody were to give me even the most spurious bit of advice, or some feedback on how I should go about finding a solution on the forum (I am trying my best, but might not have observed all the etiquette etc. out of ignorance), I would be tremendously grateful.
Thanks
Here is the solution a very friendly user -- inFiniTyz_Z , many thanks!-- on here pointed me towards:
If a bootlocker is unlocked and then relocked, as was mine, it is entirely possible to unlock the bootloader again. One needs the unlocking key from Motorola and the command
fastboot oem unlock UNIQUE_KEY
With the bootloader unlocked, I was able to flash TWRP again, which of course helped tremendously.
After this, I managed to install a Brazilian stock ROM -- the German one I would need did not work, but I will look for ways to get the phone to work regardless. At the moment, Android is up and running, but it does not connect to the network (because of the Brazilian settings, I guess). I might switch to CyanogenMod anyways.
Related
Hi,
after an apparently failed attempt to install the 5.0 OTA update my XT1032 now will boot to a droid lying on its back.
I went to the recovery from there (by pressing VolUp+Power) and did the "factory reset/wipe data" and rebooted.
Same result.
I did "wipe chache". Same result: Droid lying on its back, saying "Kein Befehl" (I guess that means "no command")
I can get into recovery mode (CWM was installed before all this*) so I could try to flash stuff from outside.
But what should I try to flash? I tried flashing a (supposedly) stock system but as soon as I start with "fastboot flash boot boot.img" the phone starts booting again. So I am not really sure what to do now.
Something is seriously wrong with this phone and I would like to restore it to stock settings. I bought it on amazon.DE - so if any one of you guys knows where I could find a truly original stock image for this phone and what to do with it, please let me know.
PS: Right now I can't even get into recovery anymore. The thing just keeps booting and booting. Can't even turn it off.
* meaning: before I flashed the supposed stock recovery that apparently, in combination with the OTA update, got me into this mess
I now followed this guide:
http://forum.xda-developers.com/showthread.php?p=47820707#post47820707
I used option 3b with a 4.4.4 rom ( RETAIL-DE_4.4.4_KXB21.14-L1.40_36_cid7_CFC_1FF )
I excuted all these commands. However, upon flashing the boot.img the phone immediately boots (and gets stuck).
So I re-entered fastboot again to finish the job. Everything else went fine.
But the problem persists: When booting, the phone now displays the "Warning: Bootloader unlocked" message for a long time, with a kind of water ripple effect from bottom to top, repeating.
When I switch it off, it switches back on automatically, trying to boot and getting stuck at this screen. Sometimes I get to the droid lying on its back with a red !-Triangle on top. Poor little bugger. Soft bricked.
What can I do to fix this?
I can still enter fastboot.
I assume that yet again I grabbed the wrong ROM.
Is this supposed to be dead? http://sbf.droid-developers.org/phone.php?device=14
I think you might be on lollipop bootloader as you are having a screen flickering issue & downgrading the boatloader might be dangerous.
I'm don't know whether it will solve your problem but try flashing a lollipop firmware.
I'm not allowed to post links. Google for XT 1032 lollipop firmware. I saw one in groupandroid website.
Download the firmware from the site & execute the given commands.
legolas06 said:
I think you might be on lollipop bootloader as you are having a screen flickering issue & downgrading the boatloader might be dangerous.
I'm don't know whether it will solve your problem but try flashing a lollipop firmware.
I'm not allowed to post links. Google for XT 1032 lollipop firmware. I saw one in groupandroid website.
Download the firmware from the site & execute the given commands.
Click to expand...
Click to collapse
Thank you. I got that file.
"adb devices" won't find my phone, though.
"Fastboot devices" does. So I can't use "adb push ..." to move the ROM to the phone.
Also, whatever option I chose from the Fastboot Flash Mode, the phone starts to boot. So I can not "enter" Recovery.
Should I just use "fastboot update rom.zip"? I don't wan't to miss my last chance to revive this phone.
ADB commands will not work in with the phone fastboot mode.
Since fastboot commands do work, you can manually flash each partition from the stock ROM. Entering recovery isn't required to do this.
fertchen said:
Thank you. I got that file.
"adb devices" won't find my phone, though.
"Fastboot devices" does. So I can't use "adb push ..." to move the ROM to the phone.
Also, whatever option I chose from the Fastboot Flash Mode, the phone starts to boot. So I can not "enter" Recovery.
Should I just use "fastboot update rom.zip"? I don't wan't to miss my last chance to revive this phone.
Click to expand...
Click to collapse
I had similar problems & this method worked for me everytime. Sorry I'm a new user & I cannot post the links.
You can search the forum & find the links.
I found a thread in "xda -> moto g general->[FIRMWARE][XT1032-XT1033] Firmware Lollipop Retail Brasil & Asia 5.0.2" by cristiand391. Download the firmware for your device. It will be in BRASIL_XT1032_5.0.2_LXB22.46-28_cid12_CFC.xml.zip. Extract the contents to the fastboot.exe folder where you use regularly. Run the commands in fastbootmode. Please be careful with the commands.
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
Reboot.
audit13 said:
ADB commands will not work in with the phone fastboot mode.
Since fastboot commands do work, you can manually flash each partition from the stock ROM. Entering recovery isn't required to do this.
Click to expand...
Click to collapse
The problem here is that the phone will boot as soon as I flash the boot.img and the whole thing fails.
Do you see a way out of this situation?
Any way to do this with a .zip ROM?
Have you tried flashing different firmware such as the GPE for your phone?
Does boot.img flash properly? If it does, you could try installing TWRP, boot into TWRP, mount the data partition, and use your computer to copy a custom ROM to the phone fpr flashing.
@Fretchen
That might be because you are on lollipop bootloader & you are trying to flash kitkat bootloader?But I may be wrong. Previously you told that you tried restoring to kitkat & that boot.img is kitkat bootloader. Try with this lollipop firmware.
audit13 said:
Have you tried flashing different firmware such as the GPE for your phone?
Does boot.img flash properly? If it does, you could try installing TWRP, boot into TWRP, mount the data partition, and use your computer to copy a custom ROM to the phone fpr flashing.
Click to expand...
Click to collapse
I now did exactly what legolas06 wrote, using "MoeMoe_BRASIL_XT1032_5.0.2_LXB22.46-28_cid12_CFC.xml"
There were "hab check fails" for recovery and boot but at least the device did not reboot upon flashing the boot.img.
I rebooted it and it is going further than ever before, all the Motorola animations were played but in the end the phone got stuck at the circular blue pool (water) with the bit Motorola 'M' plus the concentric water ripple effect.
I switched it off and on again and then it played through the animations, then updated the apps (total number: 9) and then started the system. Apparently it is working.
Thank you very much, I really appreciate your support.
Allow me thse final questions:
Can I from now on just apply OTA updates?
If not, what can I change to make this possible?
Is it advisable to install a EU Rom soon for whatever reason?
fertchen said:
I now did exactly what legolas06 wrote, using "MoeMoe_BRASIL_XT1032_5.0.2_LXB22.46-28_cid12_CFC.xml"
There were "hab check fails" for recovery and boot but at least the device did not reboot upon flashing the boot.img.
I rebooted it and it is going further than ever before, all the Motorola animations were played but in the end the phone got stuck at the circular blue pool (water) with the bit Motorola 'M' plus the concentric water ripple effect.
I switched it off and on again and then it played through the animations, then updated the apps (total number: 9) and then started the system. Apparently it is working.
Thank you very much, I really appreciate your support.
Allow me thse final questions:
Can I from now on just apply OTA updates?
If not, what can I change to make this possible?
Is it advisable to install a EU Rom soon for whatever reason?
Click to expand...
Click to collapse
Happy that I could help.
You flashed the stock firmware so everything should work again. OTA updates if available would work.
fertchen said:
Allow me thse final questions:
Can I from now on just apply OTA updates?
If not, what can I change to make this possible?
Is it advisable to install a EU Rom soon for whatever reason?
Click to expand...
Click to collapse
I don't know if you can apply OTA updates. Before the OTA update will work, you may need to update all Motorol apps via Play store.
You could wait until a fulkl stock lollipop pop is released for your phone and flash it using fastboot.
You can try different ROMs but stick to the ROMs made for your model. I have an xt1032 and I have installed US Retail, stock Telus, and GPE.
worked for me too, thank you soo much. give this solution a try
legolas06 said:
I had similar problems & this method worked for me everytime. Sorry I'm a new user & I cannot post the links.
You can search the forum & find the links.
I found a thread in "xda -> moto g general->[FIRMWARE][XT1032-XT1033] Firmware Lollipop Retail Brasil & Asia 5.0.2" by cristiand391. Download the firmware for your device. It will be in BRASIL_XT1032_5.0.2_LXB22.46-28_cid12_CFC.xml.zip. Extract the contents to the fastboot.exe folder where you use regularly. Run the commands in fastbootmode. Please be careful with the commands.
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
Reboot.
Click to expand...
Click to collapse
these steps look soo similar that the ones you can find in other blogs/discussions, but for me, in my case the main difference was the firmware, I tried with a loot of them, but the one that is mentioned in this post, installed smoothly, and with no issues, thank you so much, to post your experience and this solution.
My Best Regards,
Esteban
Hello, I registered, hoping that somone maybe could help here.
Yesterday I wanted to get the latest 5.1 update for my moto g, running 5.0.2. Because I rooted the device amd modified some things like uninstalling system apps and replacing system apps with their updates; I wanted to flash a clean system first. I tried to find a german 5.0.2 rom and couldn't find one, so I decided the 4.4.4 version I got should do the same. So I tried to install it via fastboot. For doing this I used these fastboot commands:
Code:
fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot reboot
I got these three errors: version downgraded primary_gp, version downgraded for tz, version downgraded for boot.
On reboot the phone get's stuck on bootloader unlocked screen and won't boot. I can reset by long pressing power, I can also enter fastboot menu.
After searching for two hours I could find this firmware XT1032_FALCON-RETDE_5.0.2_LXB22.46-28.1_1_cid7_CFC_1FF.xml (can't post link) and tried to install, I used the same commands as above and finished without any error. But there's still the bootloop. I tried to install several times and tried also to wipe data and cache. Can anyone help or is the phone bricked forever?
Dont flash motoboot, i had this same problem when flashing motoboot
I tried it again without flashing motoboot, with the same result. I think the problem is, that I flashed it once, so I think I could only fix it by undoing the motoboot flash.
Edit: Seems like the problem is only with stock rom. I tried to install CM12 and it is running fine, except it refuses a wifi connection. If CM would run that would also be ok, but without wifi,...so I just need stock.
Meanwhile I'm using a custom rom as a workaraound.
Try on this order @piet85
logo
boot
recovery
system.img1
system.img2
system.img3
nhlos
erase midem set 1
erase modem set 2
fsg
erase user data
and cache
Mind that the commands are not written on the right way just because im lazy :-
Thank you a lot, don't get me wrong, but for the moment I'm very glad having a running system on my phone and it runs very good for a custom rom. So there is no real need to flash again. Maybe I will do so, when there are major bugs or when I have more time, but for the moment the custom rom does it's job.
I was having some connectivity loss earlier, so I powered off, turned back on and on turning back on, I now get the initial splash screen and nothing further. Can boot into the boot menu and recovery. Tried wiping cache first, then factory reset. Neither option changed anything. Any suggestions?
Were you using stock ROM?
Provide more information as to which ROM you were using.
akiratoriyama said:
Were you using stock ROM?
Provide more information as to which ROM you were using.
Click to expand...
Click to collapse
I apologize, this is completely stock. I left it on overnight (plugged in) and apparently the battery wouldn't charge in this state as it was dead this morning. Plugged it in and charged for a bit and then tried turning it on and it is doing the same thing as before - hanging up at the initial splash screen.
I am helping hipsterdoofus with his phone. I work in the same office.
The only thing I can do is get it into fastboot mode. I was able to get the drivers working in my PC.
When I run fastboot devices, it's showing the moto g.
The bootloader isn't unlocked. I tried to do a "fastboot boot recovery.img" to get it to temp boot into twrp, but it fails since the bootloader is locked.
Is it possible to unlock the bootloader from this state from the fastboot menu?
I assume we can't flash twrp from fastboot without the bootloader being unlocked.
I come from using a Nexus 5, so this device is quite a bit different than what I'm used to. Sorry if I'm asking stupid questions.
Just wanted to do an update.
I was able to unlock the bootloader, then I downloaded the GPE_5.1_XT1032_LMY47M.M001_CFC.xml.zip file from a link I found on the forum.
I followed the steps for restoring stock firmware in this thread.
I did the section for flashing from the xml.zip file:
Code:
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img_sparsechunk1
mfastboot flash system system.img_sparsechunk2
mfastboot flash system system.img_sparsechunk3
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot reboot
If you get "(bootloader) Preflash validation failed" errors on the first two entries, you should be okay to ignore (something I read on another thread here).
After that, the phone rebooted. We weren't sure if it was ever going to finish booting up. It had the boot animation screen for quite some time before it finally loaded the OS.
So the good news is, the phone is booting up, and it's the GPE edition.
Bad news is, it's not detecting the SIM card.
If anyone has any ideas, I would love to hear them.
SoonerDude said:
So the good news is, the phone is booting up, and it's the GPE edition.
Bad news is, it's not detecting the SIM card.
If anyone has any ideas, I would love to hear them.
Click to expand...
Click to collapse
Maybe trying to reflash corresponding radio firmware ?
http://forum.xda-developers.com/showthread.php?t=2649763
After tried to root my device without the assist of PC (only using apk), my device only starts on AP Fastboot Flash Mode (Secure).
I downloaded the brazilian firmware, tried to flash it but I can't.
Was getting this ERROR: "(bootloader) Preflash validation failed".
My bootloader is locked, so I tried to unlock it following the Motorola's guide. Got my device ID via fastboot, copy and paste on their site and requested the unlock key.
Then again, when I use "fastboot oem unlock CODE"
(bootloader) Check 'Allow OEM Unlock' in Developer Options.
FAILED (remote failure)
finished. total time: 0.016s
The problem is that I can't pass trough flash mode screen.
I've been reading some threads over here, and one guy which had his bootloader locked on XT1563 tried to flash the Canadian firmware and didn't get any error, then he was able to fully unlock his bootloader and after this he was able to flash the Brazilian firmware.
I didn't try to flash the Canadian firmware yet. How risky is this? There is another way to unlock the bootloader?
If you flash the right firmware for a locked phone (model and version), it won't give the prevalidation error. Then it can boot again and you can turn on the OEM unlock, and unlock the bootloader.
Try to use the right firmware for your phone.
TImMaia said:
After tried to root my device without the assist of PC (only using apk), my device only starts on AP Fastboot Flash Mode (Secure).
I downloaded the brazilian firmware, tried to flash it but I can't.
Was getting this ERROR: "(bootloader) Preflash validation failed".
Click to expand...
Click to collapse
I don't believe it is possible to root without first unlocking your bootloader (which will factory reset your device). What apk were you attempting to install?
MrTooPhone said:
I don't believe it is possible to root without first unlocking your bootloader (which will factory reset your device). What apk were you attempting to install?
Click to expand...
Click to collapse
I'm a real noob at this issue. I tried to root with Kingroot. I took the device to the Motorola Tech Support in my city yesterday afternoon and it is ready to pick up.
Thank you guys for helping me :good::good::good:
TImMaia said:
I'm a real noob at this issue. I tried to root with Kingroot. I took the device to the Motorola Tech Support in my city yesterday afternoon and it is ready to pick up.
Thank you guys for helping me :good::good::good:
Click to expand...
Click to collapse
If you really want to root, you need to follow these instructions. Although you can use the latest version of TWRP, do not use any other version of Supersu except v2.62-3. Any other methods will most likely soft brick your phone.
Boys, is not difficult, not just fiddling around to fix it.
Motorola install drivers
Install ADB and fastboot
Looking for your stock rom here: " github dot com dash motoxplay dash stock dash releases " for example.
Saddled with fastboot Tooda the rom (eye, if downloaded from out there commands, you may be wanting to them upload any image rom, this drove me crazy to me all one day until I realized I was missing two sparsechunk).
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.9
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot reboot
On the subject battery, the XT1563 charge the batt when it is in this mode, we just have to leave it connected to the charger and is loading very slowly.
On the bootloader issue, I have LOCK, and may do so without problems because they look the same version of rom that he had.
About not having DEPURACION USB, I did not have it on, and yet I could do it.
My stay in Fastboot mode I when installing the app Kingroot, and turned off the phone and start no more.
In this way it is solved, 100% sure I did not do myself. Do not try other methods like TWRP or things like that because with locked bootloader will hit the wall every time.
Anyone who needs a hand, ask or send mail.
Sorry if he had been resolved, but it was a big achievement for me, so I leave the info. I cost a lot to buy the cell phone and had ****ed the other day.
Regards!
(Sorry, its googletranslated, im from argentina)
Yeah, what ever @jonatandirocca1 said is right
i also once faced the problem of missing sparse file but after flashing every file you can make your Phone revoke
if you want to install STOCK FIRMWARE , you dont need to unlock bootloader, you just need your phone detected in ADB
Hi, this is my first time making a post, ok here's the thing, a couple of days ago my phone run out of battery, when i come back to charge the phone, this just get stuck in the Motorola logo and don´t turn on, i never make nothing like root or flashing roms, the phone os was all stock Android 5.1; so i look in the internet for possible cause and i find that it was a bootloop, i try to get in to the fastboot flash mode to make a reset with the factory option but just get directly to the motorola logo and dont do nothing, so a try with the recovery option and gets in to the android system recovery <3e> and try the wipe data/factory reset but doesn´t work. I try even via computer using the minimal adb and fastboot to erase the cache and the userdata with the commands and doesn't work, still appearing the motorola logo. so i found that i have to install the original rom again but first ill have to unlock the bootloader for my device, so i did it, i unlock the bootloader and now appear <Device is UNLOCKED. Status Code: 3> and now appear the poster WARNING BOOTLOADER UNLOCKED instead of the motorola logo; then i search for the stock rom for my device and i find this one XT1040_PEREGRINE_RETBR_5.1_LPB23.13-8_cid12_CFC.xml.zip (i know that my device is peregrine because i remember saw it before in the settings but not remeber the hole name), so i make the installation with adb tools like the post say and make this commands:
fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot reboot
when its over i press fastboot reboot, but then appears again the WARNING BOOTLOADER UNLOCKED poster, i try to make it again, bus still appearing, i try more than 10 times, but still appearing.
sorry if the post is too large but i try to explain everything so you guys can help me because im desesperate with this, thanks.
HanSolo97 said:
Hi, this is my first time making a post, ok here's the thing, a couple of days ago my phone run out of battery, when i come back to charge the phone, this just get stuck in the Motorola logo and don´t turn on, i never make nothing like root or flashing roms, the phone os was all stock Android 5.1; so i look in the internet for possible cause and i find that it was a bootloop, i try to get in to the fastboot flash mode to make a reset with the factory option but just get directly to the motorola logo and dont do nothing, so a try with the recovery option and gets in to the android system recovery <3e> and try the wipe data/factory reset but doesn´t work. I try even via computer using the minimal adb and fastboot to erase the cache and the userdata with the commands and doesn't work, still appearing the motorola logo. so i found that i have to install the original rom again but first ill have to unlock the bootloader for my device, so i did it, i unlock the bootloader and now appear <Device is UNLOCKED. Status Code: 3> and now appear the poster WARNING BOOTLOADER UNLOCKED instead of the motorola logo; then i search for the stock rom for my device and i find this one XT1040_PEREGRINE_RETBR_5.1_LPB23.13-8_cid12_CFC.xml.zip (i know that my device is peregrine because i remember saw it before in the settings but not remeber the hole name), so i make the installation with adb tools like the post say and make this commands:
fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot reboot
when its over i press fastboot reboot, but then appears again the WARNING BOOTLOADER UNLOCKED poster, i try to make it again, bus still appearing, i try more than 10 times, but still appearing.
sorry if the post is too large but i try to explain everything so you guys can help me because im desesperate with this, thanks.
Click to expand...
Click to collapse
If your goal is to re-lock the bootloader: try the command: fastboot oem lock
However, I don't see that solving your problem and may compromise your ability to restore to stock. Instead check this link and follow the install directions EXACTLY:
http://forum.xda-developers.com/moto-g/4g-development/rom-stock-motorola-4g-lollipop-rom-t3142816
eg. for Canada choose: XT1040 (Note: for Rogers/Fido - confirmed)
Retail Canada 5.1 ROM (Untouched) (531mb) [Download]
i.e., you want the untouched version for your specific region.
Good luck. S