• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[GUIDE][Osprey] Fastboot Flashing Factory Firmware Images

Search This thread

Zavxda

Member
Feb 9, 2016
23
1
Ok I have tried this a couple times and am getting preflash validation failed for 'boot' and sparsechunks say (bootloader) Invalid signed image
(bootloader) Preflash validation failed... Please help moto g 3rd gen 1540
 

lost101

Inactive Recognized Contributor
May 30, 2008
7,434
9,335
Ok I have tried this a couple times and am getting preflash validation failed for 'boot' and sparsechunks say (bootloader) Invalid signed image
(bootloader) Preflash validation failed... Please help moto g 3rd gen 1540
What is the update history of your device? Have you ever updated to MM? What image are you now trying to flash?
 

Zavxda

Member
Feb 9, 2016
23
1
What is the update history of your device? Have you ever updated to MM? What image are you now trying to flash?

Yeah I accidentally went to 6.0 and I need 5.1... I am using the stock image for Moto g 3, 5.1.1. I just tried to do it again the 'software' way and had same results. I forgot to mention partition got.bin also failed. It says (okay) but then after 'writing' it says preflash failed and remote failure...

Thanks
 

lost101

Inactive Recognized Contributor
May 30, 2008
7,434
9,335
Yeah I accidentally went to 6.0 and I need 5.1... I am using the stock image for Moto g 3, 5.1.1. I just tried to do it again the 'software' way and had same results. I forgot to mention partition got.bin also failed. It says (okay) but then after 'writing' it says preflash failed and remote failure...

Thanks
FAQ in post #2 states:
Can I restore Factory Firmware if my Bootloader is locked?
Yes. However attempting to downgrade to an older version of Android may fail. Even with an unlocked Bootloader, downgrading cannot be guaranteed.​
 

Tel864

Senior Member
Nov 22, 2011
3,012
1,096
Greenville
FAQ in post #2 states:
Can I restore Factory Firmware if my Bootloader is locked?
Yes. However attempting to downgrade to an older version of Android may fail. Even with an unlocked Bootloader, downgrading cannot be guaranteed.​
Awful, you're assuming people actually read the directions and FAQ. [emoji1]
 
Last edited:

lost101

Inactive Recognized Contributor
May 30, 2008
7,434
9,335
Yes, you can skip other files and only flash the system.img_sparsechunks. However if those are giving a "preflash validation" error - then they won't flash at all. Unlocking the Bootloader can sometimes remove this error.
 

Zavxda

Member
Feb 9, 2016
23
1
Awful, you're assuming people actually read the directions and FAQ. [emoji1]

I actually read all of the directions many time but the directions do not state "fail" mean that the phone will completely ignore the comands and restart in current OS version like normal...

More awful to assume I didn't read them... Lol

---------- Post added at 10:39 PM ---------- Previous post was at 10:26 PM ----------

Now when I turn on(or off) the phone it boots directly to the bootloader... I can stil boot if i select start. If I take a look in the logs it says utag "bootmode" configured as fastboot. lol
How can I change this back?
 

axbom

Member
Feb 11, 2016
6
0
Thank you very much for an easy to understand guide! I'm experiencing a few problems though. I've got a XT 1541 and I'm using the 6.0 version flash. I had trouble with the phone bootlooping so I decided to give this a go. Did a factory reset, followed the guide but missed one sparsechunk file (should've ready the FAQ..). I then redid the whole procedure including all sparsechunk files, which did not help with the bootlooping and now I can't get to the recovery menu from the fastboot menu to factory reset(just goes into bootloop). Everything said OKAY both times. After this I tried to just flashing the sparsechunk files, which then said something along the lines of not enough memory. When trying to use for example fastboot oem fb_mode_set nothing happens now and when trying fastboot erase cache it just says "FAILED (command write failed (Unknown error)). Any ideas on how to fix this?
Thanks!
 
Last edited:

jcalderonv74

Senior Member
May 3, 2015
130
19
I actually read all of the directions many time but the directions do not state "fail" mean that the phone will completely ignore the comands and restart in current OS version like normal...

More awful to assume I didn't read them... Lol

---------- Post added at 10:39 PM ---------- Previous post was at 10:26 PM ----------

Now when I turn on(or off) the phone it boots directly to the bootloader... I can stil boot if i select start. If I take a look in the logs it says utag "bootmode" configured as fastboot. lol
How can I change this back?
Did you already this command from fastboot?

fastboot oem fb_mode_clear

While in fastboot loop, this command exits the loop and allows your device to reboot normally.

Enviado desde mi MotoG3 mediante Tapatalk
 

Zavxda

Member
Feb 9, 2016
23
1
Did you already this command from fastboot?

fastboot oem fb_mode_clear

While in fastboot loop, this command exits the loop and allows your device to reboot normally.

Enviado desde mi MotoG3 mediante Tapatalk

I think so but I am not sure I did it correctly... I did it from the same folder that all the 5.1.1 files are... Does it matter?
I don't think it's in the loop... Not like it keeps restarting just when I power on or off (or plug in the usb to computer)it goes to bootloader and then I can select start or shut down
 
Last edited:

jcalderonv74

Senior Member
May 3, 2015
130
19
I think so but I am not sure I did it correctly... I did it from the same folder that all the 5.1.1 files are... Does it matter?
I don't think it's in the loop... Not like it keeps restarting just when I power on or off (or plug in the usb to computer)it goes to bootloader and then I can select start or shut down
Yeah I understood that is called fastboot loop.. Retry that command should clear the flag that forces the phone to startup on fastboot mode

Google it you will find a lot of info ;)
Good luck

Make me Know if helps

Enviado desde mi MotoG3 mediante Tapatalk
 

Zavxda

Member
Feb 9, 2016
23
1
Yeah I understood that is called fastboot loop.. Retry that command should clear the flag that forces the phone to startup on fastboot mode

Google it you will find a lot of info ;)
Good luck

Make me Know if helps

Enviado desde mi MotoG3 mediante Tapatalk

Well this time it worked. Thanks a lot for your your help! I think when I did the Google search it came up with an older slightly different comand that didn't work. So glad it worked...
 

lost101

Inactive Recognized Contributor
May 30, 2008
7,434
9,335
hello :) Folder from MM Retail Europe (1GB) - XT1541_OSPREY_RETEU_6.0_MPI24.65-33.1_cid7 has also system.img_sparsechunk.6 :confused: Need to flash it also with fastboot ?
First post states:
NOTE: system.img_sparsechunks may differ in number + name - Always check contents of folder you're working with.​

This guide cannot be blindly followed due to the above reason.
 
  • Like
Reactions: kosmasgr

eemgee

Senior Member
Dec 27, 2013
999
249
Teesside
I've flashed the eu. 2GB image on a French retail phone but it's still showing as French on the about screen. Has it flashed our am I missing something. I used rsd life to flash
 

Top Liked Posts

  • There are no posts matching your filters.
  • 135
    Disclaimer: I am not responsible for anything that happens as a result of flashing these files. Your destiny is your own.

    Based on existing tutorial by @t-bon3. This guide has been created as a hard-brick occurred using the old Moto G (1st Gen) tutorial. Please exercise extreme care with Fastboot, and only use the commands mentioned here. Experimenting with Fastboot commands can seriously damage your phone.


    How to Fastboot Flash Moto G (3rd Gen) Factory Firmware Images

    Required Files:
    Motorola Drivers: Download
    Latest Fastboot | ADB (Windows | Linux): Download (Windows 10 users may need this pack for Drivers to work.)
    Factory Firmware Images: [INDEX][Osprey] Moto G Factory Firmware Images

    WARNING: You must perform a 'Factory data reset' in Stock Recovery before flashing any Firmware Image - instructions here.


    Instructions:

    1) Extracting Fastboot and Firmware Images:
    Extract zip for chosen Firmware Image to a folder with a simple directory structure. For example: C:\motog_firmware\
    Extract the adb-fastboot-latest_win_linux.zip into this folder.​

    2) Reboot the phone into 'Bootloader mode' and preparing PC for flashing

    Windows:
    Entering Fastboot mode:
    ------------------------------------
    i) The 'hardware' way.

    a) Unplug the USB cable and power off the phone.
    b) Press and hold 'Volume down' then power on the phone.
    c) Connect USB cable to your computer.

    ii) The 'software' way.

    a) Enable developer mode on the Moto G (Settings-> 'About Phone'. Tap 7 times on 'Build Number')
    b) Enable USB debugging. (Settings -> 'Developer options' -> 'USB Debugging' -> check)
    c) Connect phone to computer via USB, you should see a new ADB device detected and drivers installed.
    d) Open Command Prompt, navigate to the Firmware / ADB folder (i.e CD C:\motog_firmware ) and type:

    Code:
    adb reboot-bootloader
    Linux:
    Entering Fastboot mode:
    ------------------------------------
    i) The 'hardware' way.

    a) Unplug the USB cable and power off the phone.
    b) Press and hold 'Volume down' then power on the phone.
    c) Connect USB cable to your computer.

    ii) The 'software' way. (Requires ADB to be already installed - see below)

    a) Enable developer mode on the Moto G (Settings-> 'About Phone'. Tap 7 times on 'Build Number')
    b) Enable USB debugging. (Settings -> 'Developer options' -> 'USB Debugging' -> check)
    c) Connect phone to computer via USB
    d) Navigate to the Firmware folder, right-click and open terminal and type:

    Code:
    adb reboot-bootloader

    Installing ADB / Fastboot:
    -------------------------------------
    Flashing via Linux LiveCD: (Put factory firmware files on an external usb drive / pen)
    --------------------------------
    a) Download Ubuntu LiveCD
    b) Burn to DVD or write to USB pen
    c) Restart PC, Boot from DVD into Ubuntu
    d) Open Terminal and type the following:
    sudo add-apt-repository ppa:nilarimogard/webupd8
    sudo apt-get update
    sudo apt-get install android-tools-adb android-tools-fastboot​

    e) Test fastboot by typing: sudo fastboot devices
    You should see:
    <serial number> fastboot​
    f) You are now ready to flash the fastboot files


    3) Fastboot Commands:

    Do commands manually, one at a time - checking that each one returns an [OKAY].​

    NOTE: Do not simply copy and paste these commands! - system.img_sparsechunks may differ in number and name.
    Always check contents of folder you're working with. You must flash all of the sparsechunk files you have.

    fastboot oem fb_mode_set
    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 modem NON-HLOS.bin
    fastboot erase modemst1
    fastboot erase modemst2
    fastboot flash fsg fsg.mbn
    fastboot erase cache
    fastboot erase userdata
    fastboot erase customize
    fastboot erase clogo
    fastboot oem fb_mode_clear
    fastboot reboot​

    ALWAYS CHECK YOUR MODEL
    FLASHING WRONG FIRMWARE CAN DESTROY A PHONE
    31
    Frequently Asked Questions:

    Can I restore Factory Firmware if my Bootloader is locked?
    Yes. However attempting to downgrade to an older version of Android may fail - 'Preflash validation' error. Even with an unlocked Bootloader, downgrading cannot be guaranteed. It's also important to be aware that flashing the wrong Bootloader (bootloader.img) for your model can have serious consequences. Always establish your model of Moto G before flashing.

    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.

    After flashing Firmware Image files phone gets stuck during boot-up | will not load Android?
    Check you are naming the files correctly, and make sure you are flashing all of the 'sparsechunk' files - not just those mentioned in the tutorial. The 'sparsechunk' commands listed there are not to be copied exactly, different firmware images may have different files.

    How to flash Radio Firmware only?
    Use the following fastboot commands:
    fastboot flash modem NON-HLOS.bin
    fastboot erase modemst1
    fastboot erase modemst2
    fastboot flash fsg fsg.mbn​

    How do I downgrade to an older Firmware?
    Downgrading carries risks, and may result in constant nagging notifications to update Android. Decide carefully if this is really what you want. With earlier generations of Moto G flashing bootloader.img and gpt.bin has resulted in a hard-brick. Avoid flashing these files if you are trying to downgrade. The safer option is to find a custom Stock ROM with OTA Updates disabled.

    Fastboot in Linux is not working?
    In Linux, root access is required for Fastboot and/or ADB to work.
    sudo fastboot devices​
    20
    Factory data reset via Stock Recovery:
    (1) Flash via fastboot stock recovery.img (found in firmware image zip)
    (2) Turn your phone off.
    (3) Press and hold Volume DOWN + POWER.
    (4) In recovery menu press Volume down twice.
    (5) Press power. You will see a red exclamation mark.
    (6) Hold power down, then tap Volume UP.
    (7) Go to Wipe data / Factory reset and press power button.
    (8) Scroll to Yes - delete all user data and press power.​
    4
    Yes and no.
    I mean reflashing same firmware.
    If I reflash same firmware, but only system partition (or all files), I think it could work (to unroot) without erasing anything.
    In nexus 7, reflashing same firmware without erasing user data is the right way to unroot.

    Three days ago I upgraded from 5.1 to 6.0 without performing 'Factory data reset' and Android boots ok
    With Moto G (3rd Gen) in particular - not doing a 'factory data reset' has prevented Android booting for many people. It's also my experience with Moto G generally that not erasing userdata can introduce a wide range of issues, from very minor to very serious. I am now of the opinion that if you have not done a 'Factory data reset' in Android and erased userdata during fastboot flashing - you have not flashed Android properly. For best performance / experience, do what I say.
    3
    @lost101, do you think the downgrade could result if we flash only gtp.bin and bootloader (it will flash the old bootloader), reboot to bootloader (the old one now) and then flash the other partitions?
    Sorry if this is a stupid question.
    The last thing you should ever do is touch the Bootloader on a device. It's completely unnecessary and stupidly dangerous.

    These are the only commands required:
    fastboot flash boot boot.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 modem NON-HLOS.bin
    fastboot erase modemst1
    fastboot erase modemst2
    fastboot flash fsg fsg.mbn
    fastboot erase cache
    fastboot erase userdata
    fastboot reboot​

    If not booting, add the following command at the beginning of list:
    fastboot flash partition gpt.bin​