FORUMS
Remove All Ads from XDA

[GUIDE][Osprey] Fastboot Flashing Factory Firmware Images

7,350 posts
Thanks Meter: 9,216
 
By lost101, Recognized Contributor on 27th August 2015, 01:32 PM
Post Reply Email Thread
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
The Following 125 Users Say Thank You to lost101 For This Useful Post: [ View ] Gift lost101 Ad-Free
 
 
27th August 2015, 01:41 PM |#2  
lost101's Avatar
OP Recognized Contributor
Thanks Meter: 9,216
 
Donate to Me
More
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
The Following 27 Users Say Thank You to lost101 For This Useful Post: [ View ] Gift lost101 Ad-Free
27th August 2015, 03:28 PM |#3  
==vj=='s Avatar
Senior Member
Flag Goa
Thanks Meter: 976
 
More
Hi @lost101
Need a clarification in the 3rd point (fastboot commands),
Whether it's

fastboot flash bootloader bootloader.img

OR

fastboot flash motoboot bootloader.img
The Following 2 Users Say Thank You to ==vj== For This Useful Post: [ View ] Gift ==vj== Ad-Free
27th August 2015, 03:40 PM |#4  
lost101's Avatar
OP Recognized Contributor
Thanks Meter: 9,216
 
Donate to Me
More
Quote:
Originally Posted by ==vj==

Hi @lost101
Need a clarification in the 3rd point (fastboot commands),
<snip>

From the Firmware Images I've checked; the file is called: bootloader.img and the partition: bootloader

EDIT: This information is based on the servicefile.xml included with many of these firmware images.
The Following 2 Users Say Thank You to lost101 For This Useful Post: [ View ] Gift lost101 Ad-Free
29th August 2015, 02:41 PM |#5  
HelpMeruth's Avatar
Senior Member
Flag Westzaan
Thanks Meter: 714
 
Donate to Me
More
Unhappy
Hey im new here and with rooting
i recently rooted my phone but now when i try to start up the screen goes black.
im downloading the file now can someone tell my how to flash the firmware succesfully?
model: xt1541 moto g 2015

pleas reply thanks
30th August 2015, 06:47 PM |#6  
Junior Member
Thanks Meter: 1
 
More
Smile Help to change my firmaware
Dear Lost101,
First at all, thanks for your post.
I was trying to change the firmware of my phone, because I live in Argentina and use a different band for 4G LTE Spain (where I bought the phone).
My Moto G3 is XT1541, and I need the XT1540.
When I was changing the firmare, I had problems when I wrote "fastboot flash boot boot.img"... The command shows "FAILED". Then, I change the model, put again the firmare XT1541, and everything will be right again.
Do you know why I couldn't flash with XT1540?

Best regards and thanks in advance!
30th August 2015, 07:12 PM |#7  
lost101's Avatar
OP Recognized Contributor
Thanks Meter: 9,216
 
Donate to Me
More
Quote:
Originally Posted by Demians1

I was trying to change the firmware of my phone, because I live in Argentina and use a different band for 4G LTE Spain (where I bought the phone).
My Moto G3 is XT1541, and I need the XT1540.
When I was changing the firmare, I had problems when I wrote "fastboot flash boot boot.img"... The command shows "FAILED". Then, I change the model, put again the firmare XT1541, and everything will be right again.
Do you know why I couldn't flash with XT1540?

Flashing a different Model Firmware will not magically unlock or change Band support. Maybe with an unlocked Bootloader you can flash another Model's Firmware, but proceed with caution as you could end up with a dead phone.
30th August 2015, 07:19 PM |#8  
Junior Member
Thanks Meter: 1
 
More
Thanks Lost101.
Really I dont looking for change my firmware, but I suppuose that this could be a way to change the cell band....
Do you know or you heard about some way to change band support?
30th August 2015, 07:25 PM |#9  
lost101's Avatar
OP Recognized Contributor
Thanks Meter: 9,216
 
Donate to Me
More
Quote:
Originally Posted by Demians1

Really I dont looking for change my firmware, but I suppuose that this could be a way to change the cell band....
Do you know or you heard about some way to change band support?

There is this guide for Moto G (1st Gen) and this universal guide - however I don't know if either will work for you or what damage trying them might cause.
The Following User Says Thank You to lost101 For This Useful Post: [ View ] Gift lost101 Ad-Free
30th August 2015, 07:31 PM |#10  
Junior Member
Thanks Meter: 1
 
More
Thnak you very much Lost101!
31st August 2015, 09:23 PM |#11  
LastStandingDroid's Avatar
Senior Member
Thanks Meter: 6,444
 
Donate to Me
More
just a small tip you can copy all text and flash then paste it in CMD it will flash all the partitions no need to enter manually one by one
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes