yashsingh1/xdaforums huggingface dataset:
[Moto G 2015 General] acejavelin:
It's to differentiate between boot and bootloader, flashing the wrong one to the wrong spot could potentially perma-brick if it somehow succeeded.
[Moto G 2015 General] lost101:
With Moto G 1st and 2nd Generation, the Bootloader partition was called: motoboot
[Moto G 2015 General] PEISELT:
boa noite galera! eu estou usando o moto g3 osprey e estava na rom que atualizei no domingo ..a 7.1.2......hoje usando, fui atualizar a rom moke ele travou no meio do processo e ficou no twrp como se nada tivesse acontecido ...mas que acabou apagando a rom que estava anteriormente ......alguem poderia me passar o processo de transferencia de arquivo pela janela de comando quando o cel nao esta sendo reconhecido no pc (MTP)? fui tentar instalar pelo adb sideload mas apareceu um aviso que eu teria que atualizar para a versao 1.0.32 ou mais para poder utilizar o adb sideload...creio que tambem possa fazer pelo adb push mas naosei o processo ...alguem poderia me ajudar?
[Moto G 2015 General] acejavelin:
English only please...
[Moto G 2015 General] RijuSarkar:
delete
[Moto G 2015 General] acejavelin:
Umm... What does Win10 install ISOs have to do with this?

Although there is the normal one, N which has no Media Center due to EU licensing (sometimes used by schools and businesses though), and KN which is specific to Korea.

If you are looking for an OS just to flash a factory image, I would suggest a Linux distro since it doesn't require device specific drivers for Android phones.
[Moto G 2015 General] RijuSarkar:
Pls tell me the process after factory data reset should I start writing commands?? Or anything else in the midtime?? Also while writing commands will I write again the recovery command?
[Moto G 2015 General] acejavelin:
After the factory reset perform everything in the first post, it is clearly spelled out what you need to do.
[Moto G 2015 General] RijuSarkar:
Pls tell me one thing ...how can i flash the stock recovery..
[Moto G 2015 General] acejavelin:
fastboot flash recovery recovery.img

That is what is meant by step 1 here:
[Moto G 2015 General] RijuSarkar:
If I put the firmwire and adb in one folder and then type this will that be good?? Or I have to make a separate folder and put adb and only recovery image there?
[Moto G 2015 General] acejavelin:
For simplicity, fastboot and the extracted firmware image should be in the same directory and you open a CMD window in that folder, otherwise normal terminal/CMD prompt rules apply and you must specify the full path...

C:\ADB_Fastboot\> fastboot flash recovery recovery.img

is easier than

C:\> c:\path\to\fastboot.exe flash recovery c:\path\where\firmware\is\recovery.img

But either method works. ADB itself isn't really part of the equation here, fastboot is the only executable actually need although they are usually bundled together.
[Moto G 2015 General] RijuSarkar:
one thing to mention.............

if u have unlocked bootloader then dont worry...........you can update via ota.........as long as u have the following u can update your rom via ota...........

1.unlocked bootloader

2.stock recovery

3.stock rom

4.stock kernel(kernel bundled with the stock rom)

and i think after creators update u have to write .\fastboot instead of fastboot in windows 10 command window.....
[Moto G 2015 General] ahmed1456:
when i write any command it says preflash validation failed remote faliure
[Moto G 2015 General] acejavelin:
Did you read the FAQ in the second post? It plainly says what that message means... You are trying to flash something that is older than what you already have and downgrading is not supported.

If you are absolutely positive you have the newest version for your specific device, skip the gpt.bin and bootloader.bin and continue with the rest of the steps, this works 90% of the time but it is not really supported. The other 10% of the time, you are soft-bricked until a newer firmware becomes available.
[Moto G 2015 General] UltraMaks:
Can anyone explain? I have XT1540, but would like to flash it with XT1541 firmware. Well, I did it, but I see that my Radio shows something strange

[IMG="After update XT1540 with XT1541 firmware"]http://cs5-2.4pda.to/10194291.png[/IMG]

While I do believe it should be smth like EMEA

[IMG="EMEA"]http://cs5-2.4pda.to/10268859.png[/IMG]

Can anyone explain why is it so? I did a hard reset from Phone's menu (not a recovery, but I do not think it could be a problem) and then flashed XT1541_OSPREY_RETEU_2GB_6.0.1_MPIS24.107-55-2-5_cid7_subsidy-DEFAULT_CFC.xml.zip
[Moto G 2015 General] acejavelin:
What are you trying to accomplish? Flashing a different ROM or radios won't change the bands/frequencies your device can use.
[Moto G 2015 General] UltraMaks:
I do not say about changing bands/frequencies! :mad: I just need European modem! And I wonder why it's not changed even when I flash it?
[Moto G 2015 General] acejavelin:
I only said that because that is what most people try to do by flashing another ROM. No offense...

Try reflashing the radio stack manually in fastboot, verifying an OKAY after each step

fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn

Then Reboot... Sometimes the radios don't "take" the first time and you have to flash them a couple times... Don't know why, but seen it with many Moto devices.
[Moto G 2015 General] UltraMaks:
Thanks. I did it once... But I'll try doing several times

Regarding changing the bands/frequencies - I also want this, even working at this. But it's a matter of other topics
[Moto G 2015 General] acejavelin:
If it returns an OKAY, it took, but many times people flash and don't pay attention. If you get an OKAY for each step you should be fine.
[Moto G 2015 General] UltraMaks:
I got OKAY for every operation. No luck. Then I reflashed the whole EU firmware - no luck

Then I did it again (flashing modem only) - no luck

Ok. I'll try doing it 5-10 times (flashing modem only). We'll see if it helps ;)
[Moto G 2015 General] UltraMaks:
Look

Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

d:\Max\!Phones\Motorola\fastboot>fastboot flash modem NON-HLOS.bin
target reported max download size of 268435456 bytes
sending 'modem' (36988 KB)...
OKAY [ 1.192s]
writing 'modem'...
OKAY [ 0.562s]
finished. total time: 1.756s

d:\Max\!Phones\Motorola\fastboot>fastboot erase modemst1
erasing 'modemst1'...
OKAY [ 0.019s]
finished. total time: 0.020s

d:\Max\!Phones\Motorola\fastboot>fastboot erase modemst2
erasing 'modemst2'...
OKAY [ 0.014s]
finished. total time: 0.014s

d:\Max\!Phones\Motorola\fastboot>fastboot flash fsg fsg.mbn
target reported max download size of 268435456 bytes
sending 'fsg' (2280 KB)...
OKAY [ 0.080s]
writing 'fsg'...
OKAY [ 0.053s]
finished. total time: 0.135s

d:\Max\!Phones\Motorola\fastboot>

All is ok, right? And this is what I have despite the fact that I flashed it 5(!!!) times (not exiting bootloader) modem was taken from EU version (XT1541_OSPREY_RETEU_2GB_6.0.1_MPIS24.107-55-2-5_cid7_subsidy-DEFAULT_CFC.xml.zip)

PS maybe this related to the thing that when I go to bootloader I see that status of the software is modified, and when I try to go to recovery I see "No command"? Does it mean that my phone somehow can't be correctly reflashed?
[Moto G 2015 General] acejavelin:
No, everything is as it should be... Stock recovery says no command if there is no script to run (hold power and tap Vol Up to access menu), and your software status should say modified.

When I said the modems fail sometimes, I literally mean they return a failure, not an Okay, but yours seem to be flashing OK. Not sure why it reports retus still.
[Moto G 2015 General] UltraMaks:
Can anyone tell me, which firmware Can I use to get EU modem?
[Moto G 2015 General] acejavelin:
Depends what your trying to accomplish... If it's unlock different LTE bands, your out of luck, it won't work.

Also, you cant flash just modems, with stock the boot image has to match.
[Moto G 2015 General] UltraMaks:
I know it all. As I sail already - I flashed the whole firmware XT1541_OSPREY_RETEU_2GB_6.0.1_MPIS24.107-55-2-5_cid7_subsidy-DEFAULT_CFC.xml.zip several times but I still have US modem... There were no any errors, but modem stays the same... wonder why
[Moto G 2015 General] Arunkrsn:
Iam getting this error message after entering partition gpt.bin command that...

"target reported max download size of 268435456 bytes

sending 'partition' (32 KB)...

OKAY [ 0.016s]

writing 'partition'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 0.375s"

Can u help me..
[Moto G 2015 General] adityak1303:
Don't flash the gpt and bootloader files. Flash everything else.
[Moto G 2015 General] debojyotidey:
how to solve this problem? i have tried 6.0.1 and 5.1.1 firmwares for my XT1550, still same results.please help.also the device code is showing as modified.
[Moto G 2015 General] debojyotidey:
i have somehow narrowed down the problem.when i try flashing twrp through fastboot i see the size of twrp about 8156kb in cmd window, which is the size shown in file manager in pc.but the size of stock recovery or boot is about 16xxx kb showing in file manager, but when i flash it using fastboot it is showing that sending 32xxx kb......kind of double the size of original. i think this is somewhat related to this 'Image size exceeded partition limits' issue.
[Moto G 2015 General] debojyotidey:
guys any help please. the phone is lying around for 3days now like a paperweight.
[Moto G 2015 General] lost101:
How have you installed Fastboot? Older versions do not support Motorola Firmware Images. Fastboot linked in first post is a working version.
[Moto G 2015 General] debojyotidey:
i got it fixed.it was a problem with my astboot. but i installed latest version.i can't figure out the reason though.
[Moto G 2015 General] sg23252:
When i m trying to flash this error is coming please help

C:\Users\Suraj\Desktop\ADB and Fastboot>fastboot flash system system.img_sparsechunk.1

target reported max download size of 268435456 bytes

sending 'system' (230226 KB)...

OKAY [ 7.621s]

writing 'system'...

(bootloader) Invalid signed image

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 7.656s﻿
[Moto G 2015 General] Gravemind2015:
Try using the fastboot package given in the OP.

Check if MD5 or SHA-1 checksum of the firmware zip file matches the one given in AFH download page. If not, then you'll have to download it again.

Did you try to flash gpt.bin and/or bootloader.img and already got this error or the process fails only on sparsechunk command?

The reason I asked this is once I observed while flashing a firmware for Moto G4 Plus (Athene) that once gpt.bin/bootloader.img showed preflash validation error, each subsequent command responded the same until I rebooted the machine to start over.

Hope it helps.

Broadcasted from Zeta Reticuli
[Moto G 2015 General] sg23252:
Its showing error for gpt.bin and bootloader.img nd for sparsechunk also

---------- Post added at 08:34 PM ---------- Previous post was at 08:25 PM ----------

Please help me i am unable to restore to stock rom moto g 3rd gen xt1550

---------- Post added at 08:48 PM ---------- Previous post was at 08:34 PM ----------

What is fastboot package given in the OP? I m unable to understand what u r saying
[Moto G 2015 General] lost101:
[MENTION=7832007]sg23252[/MENTION] - From FAQ here.

I get a 'Preflash validation' error when flashing a Firmware Image

The Firmware Image you are trying to flash is too old. You can only flash a firmware image that matches, or is newer than the most recent system version you have had on your phone. However the former scenario can also sometimes return the error. In which case, your options are to wait for an even newer firmware image or unlock Bootloader and flash a ROM zip.​
[Moto G 2015 General] sg23252:
I have installed custom rom based on android 6.0.1 and now i want to return to stock rom but unable to flash? Help me plzzz
[Moto G 2015 General] lost101:
You need to provide more details about your situation. What model of phone do you have? What firmware image are you trying to flash?
[Moto G 2015 General] Tel864:
Has anyone tried the Consumer Cellular US (1GB) - XT1540_OSPREY_RETUS-CC_5.1.1_LPI23.72-26_cid9. I've downloaded it from 4 servers now with 2 different machines at home and I always get an error (CRC failed in 'system.img_sparsechunk 3'. File is broken.) I can only conclude that it's a bad upload to all servers.

Searching doesn't find this rom anywhere else.
[Moto G 2015 General] lost101:
The files extract fine for me, and md5 match. Perhaps the issue is your archiver.
[Moto G 2015 General] Tel864:
I've given up. It's always the same file and I've tried most of the servers. I've downloaded with two pc's and a laptop. I've tried Winzip, 7zip, and Peazip to extract them and always that one file gets the error. I don't have a clue but I do wonder if I could extract that one file from another factory rom and substitute it in the flash. I d/l a couple of the other roms and they extract fine.
[Moto G 2015 General] Anghirrim:
[MENTION=1006674]lost101[/MENTION]

Hi,

Thanks for this info. One question, what is the aim of the "fastboot erase modemst" command?

What does it do exactly?

This could be interesting for us on the Idol 3 development. I had a bad flash experience that resulted in a complete signal loss, even after replacing all the flashed partition by their original versions.

And in the rom updater.script, the only thing I wasn't able to revert was an odd instruction "reset_modemst modemst1/2" which might be device specific.

Thanks,
[Moto G 2015 General] justrajdeep:
Hi

I have TWRP recovery. I just want to remove the bootloader so that I can get the OTA updates.

If I select OTA update it reboots into TWRP recovery and the update fails.

So i have 2 ways

get the OTA and flash using TWRP

remove the TWRP and do the OTA

What do you experts suggest?
[Moto G 2015 General] lost101:
modemst1 and modemst2 are storage partitions for Radio Firmware (NON-HLOS.bin in Firmware Image zip) - and it's obviously a recommended practice to wipe these partitions when flashing a newer Radio Firmware. I know of no instance with Moto G (Falcon) where wiping these partitions, or not wiping them - has resulted in signal loss. However, wiping these partitions is one cure for GPS issues.

Stock Recovery is a requirement to flash an official OTA Update. The stock recovery.img can be found in every one of the Factory firmware Images. To flash, use:

fastboot flash recovery recovery.img​
[Moto G 2015 General] Anghirrim:
[MENTION=1006674]lost101[/MENTION]

Thanks, and how is it re-filled? Is it a kind of "cache" for the modem, that you can wipe then just reboot? I've read that these partitions contain the IMEI, it's not true?
[Moto G 2015 General] lost101:
Yes, the partitions appear to behave like a cache and refill after reboot. There is no definitive answer to the location of IMEI on current Motorola handsets, but the most recent theory is the 'pds' partition.

Related thread: http://xdaforums.com/showthread.php?t=2675326
[Moto G 2015 General] Anghirrim:
Ok thanks. So we can suspect that those partitions behave the same for the Alcatel Idol 3? I've lost my signal after flashing a rom from Alcatel China for the chinese version of our phone, and the updater.script flashed several partitions, including modem.

After this, the last command was "reset_modemst" .

I've flashed all partitions back, except from modemst1 and modemst2 as I believed it would contain the IMEI, and did not want to "steal" it from someone else.

So now I understand that erasing modemst1 and modemst2 could have solved my issue, rather than sending it to repair (luckily they took it under warranty).

Is my asdumption correct?
[Moto G 2015 General] lost101:
The reality is that different devices from different manufacturers use different partitions in potentially different ways. But it does sound like on that phone, modemst1 / modemst2 are only cache partitions.
[Moto G 2015 General] Anghirrim:
Sure, understood. Thanks for all your time explaining this to me.
[Moto G 2015 General] ..::Matr!x::..:
about ota updates

[MENTION=1006674]lost101[/MENTION]

i have just 2 questions about ota update:

1-Is it also necessary a stock kernel installed or can i leave a custom kernel with a stock recovery to apply an ota update ?

2-Can i leave xposed framework installed with all modules

disabled

or is better to completely uninstall xposed framework before flashing an ota update?

thanks
[Moto G 2015 General] lost101:
Kernel is located in a separate partition from /system. It does not need to be restored to Stock.

/system must be untouched - any modification whatsoever could interrupt the OTA Update process and destroy your phone. Remember that the OTA Update often also upgrades Bootloader - if that fails for any reason, you are in serious trouble. People have contacted me in the past with dead phones because of this.

I recommend no-one uses OTA Updates at all - I consider them dangerous and messy. Instead you should wait for the newer Factory Firmware Image that will include everything in the Update.
[Moto G 2015 General] justrajdeep:
Where do i get this image and how to install it using TWRP?
[Moto G 2015 General] ..::Matr!x::..:
..::Matr!x::..

Thanks ... i know this but ota updates comes handly 'cause you haven't to reinstall all of your apps and configurations , also userdata goes lost with Factory firmware flashing... maybe i can try to do something like this without ota updates:

-made a nandroid backup of data partition with twrp

-flash stock factory firmware as in this guide but without wiping userdata partition (or i can olso wipe but with a backup of some folders)

-flash twrp recovery and supersu

-restore data partition with twrp

do you think it could work?

thanks again ;)
[Moto G 2015 General] lost101:
The image will be added to the Factory Firmware Image thread when it is available. You can only use Fastboot.

How about just not wiping data partition when flashing the firmware image? Skip the command: fastboot erase userdata
[Moto G 2015 General] ryude:
Thanks! These commands worked for me.
[Moto G 2015 General] Prateek1224:
i tried cm12.1 but now m back to stock wid stock recovery

still update fails.

what to do?

i tried factory firmware flash

1gb asia india variant

but got errors at the spars chunk files

help
[Moto G 2015 General] Sal12538:
Stuck in QHSUSB_BULK mode after giving the reboot command in fastboot, after successfully flashing every thing. XT1540 1GB International Version. Now as far as I know, my phone is dead right? I can't believe it didn't work... But I think I made a serious mistake by not flashing the bootloader and recovery img in fastboot. After CM 12, flashing stock over it, I should've flashed those two, but I just thought keeping twrp would save some time. Now what to do?
[Moto G 2015 General] lost101:
Can you please state the exact commands you have used on this occasions.
[Moto G 2015 General] sg23252:
I have Moto G 3rd gen 2015 xt1550

I have tried these two firmwares

1)XT1550_OSPREY_RETASIA_DS_2GB_6.0.1_MPI24.107-55_cid7

2)XT1550_OSPREY_RETASIA_DS_2GB_6.0.1_MPI24.107-55-2_cid7 (Newer Build)

None of these r working

I have installed custom rom RR 6.0.1 currently

My bootloader is unlocked
[Moto G 2015 General] lost101:
The FAQ section I posted above explains your situation. Firmware Images are not designed for casual flashing and require a specific criteria to be met - as you have discovered. There is nothing you can do but wait for a new firmware image.
[Moto G 2015 General] sg23252:
Means i have to wait until new firmware releases?

But some months ago i had flashed stock rom on my phone then it was succeeded so y now its giving error

---------- Post added at 07:51 AM ---------- Previous post was at 07:50 AM ----------

Should i try older one? I.e. android 6.0 firmware
[Moto G 2015 General] lost101:
The FAQ entry I quoted answers all of these questions.
[Moto G 2015 General] sg23252:
Ok
[Moto G 2015 General] dadnammit:
Just been watching here... Really, you can't ever flash a firmware image to downgrade your version?! That's crazy.
[Moto G 2015 General] lost101:
What are Factory Firmware Images? Who are they for? Hint: answer is in the name.

Factory Firmware Images are intended for use by Engineers in a factory prior to retail. This is why there are no instructions, and a simple mistake in Fastboot can completely destroy your handset. These firmware images are designed to be flashed once, and only once. There is no support for downgrading.
[Moto G 2015 General] dadnammit:
Yikes! This is my first Motorola handset after several Samsung devices. Samsung has an archive online of previous and current firmware images available for download. I didn't realize that the Motorola images available are "leaks." I had assumed they were comparable. That seems quite inferior that Motorola doesn't make images available for flashing to restore to stock. Now I will be very nervous to perform upgrades or tweaks knowing I risk a bricked device with no rollback. :/
[Moto G 2015 General] lost101:
With previous generations of Moto G, it has been possible to downgrade by flashing an older firmware image - however with 3rd Gen or newer it looks like the chances of it working are slim to nil. Downgrading via Firmware Image was never advisable anyway, and handsets did get destroyed as a result.

I would not be too judgmental of Motorola, most OEMs offer nothing at all. The Firmware Images are here, and get updated from time to time.

All things considered, my recommendation is to unlock Bootloader. That will give you a myriad of options for fixing your phone.
[Moto G 2015 General] sg23252:
I was trying to restore stock ROM on my moto g3 2015 XT1550 osprey but I got preflash validation failed error.

So currently I m using Resurrection remix 7.0 custom ROM but my device is not getting VOLTE support. I tried AICP rom also but no volte support.

And whenever I reboot my device its automatically gets rebooted to bootloader...

Help me.. Thanx in advance
[Moto G 2015 General] Gravemind2015:
Use the thread search function first, these issues are already addressed before. Surf a few pages back and you'll get what you're looking for :)

Broadcasted from Zeta Reticuli
[Moto G 2015 General] sg23252:
Please explain how u resolved this problem i am also having moto g xt1550 and getting preflash validation failed error.

---------- Post added at 09:54 AM ---------- Previous post was at 09:46 AM ----------

How to flash stock recovery
[Moto G 2015 General] debojyotidey:
its better if you post a screenshot of the error. as for me,i used the package from android studio.the fastboot that i've tried gave me error. maybe the problem was due to fastboot.you can take your time and go back a few pages where i first posted the issue.if the same thing is happening to you then i can send you the package i use,or if you get 'Preflash Validation Error' only while flashing 'flashpartition.gpt' then u can safely ignore it,considering all other steps return an 'Okay' message.

---------- Post added at 02:07 AM ---------- Previous post was at 01:53 AM ----------

I'll just get back to you at 6 in evening( i am from India as well).
[Moto G 2015 General] sg23252:
No. I m getting preflash error for sparsechunk files also..

---------- Post added at 12:18 PM ---------- Previous post was at 11:22 AM ----------

Please provide me the package u used