[GUIDE][Osprey] Fastboot Flashing Factory Firmware Images

bromoxitos

Senior Member
Jun 20, 2014
304
78
0
evia island
yea check again

C:\Users\TARIQUE\Desktop\unroot>fastboot devices
ZY2223TQ9L fastboot

C:\Users\TARIQUE\Desktop\unroot>fastboot oem fb_mode_set
...
OKAY [ 0.010s]
finished. total time: 0.012s

C:\Users\TARIQUE\Desktop\unroot>fastboot flash partition gpt.bin
target reported max download size of 268435456 bytes
sending 'partition' (32 KB)...
OKAY [ 0.007s]
writing 'partition'...
(bootloader) This may take a few seconds, if a
(bootloader) different partition table is being
(bootloader) flashed since we need to backup
(bootloader) and restore a few partitions
(bootloader) Flashing primary GPT image...
(bootloader) Flashing backup GPT image...
OKAY [ 0.699s]
finished. total time: 0.713s

C:\Users\TARIQUE\Desktop\unroot>fastboot flash bootloader bootloader.img
target reported max download size of 268435456 bytes
sending 'bootloader' (2546 KB)...
OKAY [ 0.087s]
writing 'bootloader'...
(bootloader) flashing sbl1 ...
(bootloader) flashing aboot ...
(bootloader) flashing tz ...
(bootloader) flashing hyp ...
(bootloader) flashing rpm ...
OKAY [ 1.605s]
finished. total time: 1.697s

C:\Users\TARIQUE\Desktop\unroot>fastboot flash logo logo.bin
target reported max download size of 268435456 bytes
sending 'logo' (1352 KB)...
OKAY [ 0.049s]
writing 'logo'...
OKAY [ 0.090s]
finished. total time: 0.143s

C:\Users\TARIQUE\Desktop\unroot>fastboot flash recovery recovery.img
target reported max download size of 268435456 bytes
sending 'recovery' (16484 KB)...
OKAY [ 0.529s]
writing 'recovery'...
OKAY [ 0.430s]
finished. total time: 0.967s

C:\Users\TARIQUE\Desktop\unroot>fastboot flash system system.img_sparsechunk.0
target reported max download size of 268435456 bytes
sending 'system' (247489 KB)...
OKAY [ 7.804s]
writing 'system'...
OKAY [ 9.057s]
finished. total time: 16.869s

C:\Users\TARIQUE\Desktop\unroot>fastboot flash system system.img_sparsechunk.1
target reported max download size of 268435456 bytes
sending 'system' (230229 KB)...
OKAY [ 7.236s]
writing 'system'...
OKAY [ 5.323s]
finished. total time: 12.561s

C:\Users\TARIQUE\Desktop\unroot>fastboot flash system system.img_sparsechunk.2
target reported max download size of 268435456 bytes
sending 'system' (259434 KB)...
OKAY [ 8.139s]
writing 'system'...
OKAY [ 6.120s]
finished. total time: 14.259s

C:\Users\TARIQUE\Desktop\unroot>fastboot flash system system.img_sparsechunk.3
target reported max download size of 268435456 bytes
sending 'system' (254590 KB)...
OKAY [ 8.004s]
writing 'system'...
OKAY [ 5.881s]
finished. total time: 13.903s

C:\Users\TARIQUE\Desktop\unroot>fastboot flash system system.img_sparsechunk.4
target reported max download size of 268435456 bytes
sending 'system' (254861 KB)...
OKAY [ 8.016s]
writing 'system'...
OKAY [ 6.245s]
finished. total time: 14.267s

C:\Users\TARIQUE\Desktop\unroot>fastboot flash system system.img_sparsechunk.5
target reported max download size of 268435456 bytes
sending 'system' (258017 KB)...
OKAY [ 8.099s]
writing 'system'...
OKAY [ 5.901s]
finished. total time: 14.000s

C:\Users\TARIQUE\Desktop\unroot>fastboot flash system system.img_sparsechunk.6
target reported max download size of 268435456 bytes
sending 'system' (251037 KB)...
OKAY [ 7.914s]
writing 'system'...
OKAY [ 5.725s]
finished. total time: 13.641s

C:\Users\TARIQUE\Desktop\unroot>fastboot flash system system.img_sparsechunk.7
target reported max download size of 268435456 bytes
sending 'system' (14420 KB)...
OKAY [ 0.462s]
writing 'system'...
OKAY [ 0.375s]
finished. total time: 0.844s

C:\Users\TARIQUE\Desktop\unroot>fastboot flash modem NON-HLOS.bin
target reported max download size of 268435456 bytes
sending 'modem' (36988 KB)...
OKAY [ 1.161s]
writing 'modem'...
OKAY [ 1.110s]
finished. total time: 2.271s

C:\Users\TARIQUE\Desktop\unroot>fastboot erase modemst1
erasing 'modemst1'...
OKAY [ 0.018s]
finished. total time: 0.020s

C:\Users\TARIQUE\Desktop\unroot>fastboot erase modemst2
erasing 'modemst2'...
OKAY [ 0.019s]
finished. total time: 0.019s

C:\Users\TARIQUE\Desktop\unroot>fastboot flash fsg fsg.mbn
target reported max download size of 268435456 bytes
sending 'fsg' (2280 KB)...
OKAY [ 0.079s]
writing 'fsg'...
OKAY [ 0.095s]
finished. total time: 0.181s

C:\Users\TARIQUE\Desktop\unroot>fastboot erase cache
erasing 'cache'...
OKAY [ 0.074s]
finished. total time: 0.076s

C:\Users\TARIQUE\Desktop\unroot>fastboot erase userdata
erasing 'userdata'...
OKAY [ 4.000s]
finished. total time: 4.018s

C:\Users\TARIQUE\Desktop\unroot>fastboot erase customize
erasing 'customize'...
OKAY [ 0.030s]
finished. total time: 0.047s

C:\Users\TARIQUE\Desktop\unroot>fastboot erase clogo
erasing 'clogo'...
OKAY [ 0.051s]
finished. total time: 0.053s

C:\Users\TARIQUE\Desktop\unroot>fastboot oem fb_mode_clear
...
OKAY [ 0.007s]
finished. total time: 0.008s

C:\Users\TARIQUE\Desktop\unroot>fastboot reboot
rebooting...

finished. total time: 0.000s



please helppp
hello mate i have the xt1541 2gb ram and last day i flash the 6.0.1 i was in 6.0 and i see the EU 6.0.1 so i say why not.... my stock EU firmware have 7 system.img_sparsechunk.7 like you saw us but my phone boot normally..... NOTE
leave the phone at least 7-8 min with boot moto logo it need several min in fist boot!!! and always have the usb on your phone you can listen the boot noise after 7-8 min from your pc(noise conection). I do this every time when i do something like this!!!
NOTE 2
p.s sry for my bad english :(
check again if you have the right firmware
 
Last edited:

1dtms

Senior Member
May 23, 2011
209
16
0
Hello, right now I am running CM13 XT1540 rooted and unlocked.
I would like to go back to stock moto marshmallow (Retail US (2GB)). However I still want to stay root and unlocked.

Can I just flash the stock image since I just want to use the moto x firmware and keep root and unlocked?
 

Tel864

Senior Member
Nov 22, 2011
3,011
1,093
253
Greenville
Hello, right now I am running CM13 XT1540 rooted and unlocked.
I would like to go back to stock moto marshmallow (Retail US (2GB)). However I still want to stay root and unlocked.

Can I just flash the stock image since I just want to use the moto x firmware and keep root and unlocked?
You will always be unlocked but you will have to root again if you flash a new image.
 

comishi

Senior Member
Dec 5, 2011
107
40
58
Buenos Aires
@lost101 Hi! I have a XT1542 with 1GB RAM and 16GB of storage. Are the XT1542 firmwares posted fully compatible with this variant? Or are they just for 8GB storage model?

Thanks in advance.


I found the answer from a success flashing from an user in the firmware thread here, so I will try.
 
Last edited:

1dtms

Senior Member
May 23, 2011
209
16
0
Is coming from CM13 6.0.1 to XT1540_OSPREY_RETUS_2GB_6.0_MPI24.65-25.1_cid9_subsidy-DEFAULT_CFC.xml.zip considered a downgrade (so pretty much from 6.0.1 to 6.0.0)?
and is there any way I can just flash to stock img but keep root?
I understand that I lose root if I follow the guide exactly, but can I skip anything to avoid losing my current root (I guess I am imagining if I can just flash a zip file like switching between different ROM just requires only flashing a zip)?

right now im unlocked bootloader and rooted running CM13 (the old unofficial version)
 
Last edited:

lost101

Inactive Recognized Contributor
May 30, 2008
7,434
9,326
0
Is coming from CM13 6.0.1 to XT1540_OSPREY_RETUS_2GB_6.0_MPI24.65-25.1_cid9_subsidy-DEFAULT_CFC.xml.zip considered a downgrade (so pretty much from 6.0.1 to 6.0.0)?
and is there any way I can just flash to stock img but keep root?
I understand that I lose root if I follow the guide exactly, but can I skip anything to avoid losing my current root (I guess I am imagining if I can just flash a zip file like switching between different ROM just requires only flashing a zip)?

right now im unlocked bootloader and rooted running CM13 (the old unofficial version)
You cannot change between any ROM or firmware and keep root. I don't consider dirty flashing different ROMs a healthy activity. Follow instructions in OP and then do some research into which version of SuperSU will work, as some do not.
 
  • Like
Reactions: 1dtms

1dtms

Senior Member
May 23, 2011
209
16
0
You cannot change between any ROM or firmware and keep root. I don't consider dirty flashing different ROMs a healthy activity. Follow instructions in OP and then do some research into which version of SuperSU will work, as some do not.
hmm okay so I tried following everything on the original post and it seems I am now stuck on bootloader unlocked screen.
Below is my command flash log

C:\z\Android\sdk\platform-tools>fastboot oem fb_mode_set
...
OKAY [ 0.008s]
finished. total time: 0.010s

C:\z\Android\sdk\platform-tools>fastboot flash partition gpt.bin
target reported max download size of 268435456 bytes
sending 'partition' (32 KB)...
OKAY [ 0.007s]
writing 'partition'...
(bootloader) This may take a few seconds, if a
(bootloader) different partition table is being
(bootloader) flashed since we need to backup
(bootloader) and restore a few partitions
(bootloader) Flashing primary GPT image...
(bootloader) Flashing backup GPT image...
OKAY [ 0.646s]
finished. total time: 0.657s

C:\z\Android\sdk\platform-tools>fastboot flash bootloader bootloader.img
target reported max download size of 268435456 bytes
sending 'bootloader' (2546 KB)...
OKAY [ 0.092s]
writing 'bootloader'...
(bootloader) flashing sbl1 ...
(bootloader) flashing aboot ...
(bootloader) flashing tz ...
(bootloader) flashing hyp ...
(bootloader) flashing rpm ...
OKAY [ 1.322s]
finished. total time: 1.418s

C:\z\Android\sdk\platform-tools>fastboot flash logo logi.bin
error: cannot load 'logi.bin'

C:\z\Android\sdk\platform-tools>fastboot flash logo logo.bin
target reported max download size of 268435456 bytes
sending 'logo' (1352 KB)...
OKAY [ 0.051s]
writing 'logo'...
OKAY [ 0.060s]
finished. total time: 0.114s

C:\z\Android\sdk\platform-tools>fastboot flash recovery recovery.img
target reported max download size of 268435456 bytes
sending 'recovery' (16484 KB)...
OKAY [ 0.556s]
writing 'recovery'...
OKAY [ 0.229s]
finished. total time: 0.790s

C:\z\Android\sdk\platform-tools>fastboot flash system system.img_sparsechunk.0
target reported max download size of 268435456 bytes
sending 'system' (251797 KB)...
OKAY [ 8.334s]
writing 'system'...
OKAY [ 3.512s]
finished. total time: 11.851s

C:\z\Android\sdk\platform-tools>fastboot flash system system.img_sparsechunk.1
target reported max download size of 268435456 bytes
sending 'system' (257238 KB)...
OKAY [ 8.522s]
writing 'system'...
OKAY [ 3.313s]
finished. total time: 11.840s

C:\z\Android\sdk\platform-tools>fastboot flash system system.img_sparsechunk.2
target reported max download size of 268435456 bytes
sending 'system' (262142 KB)...
OKAY [ 8.686s]
writing 'system'...
OKAY [ 3.416s]
finished. total time: 12.107s

C:\z\Android\sdk\platform-tools>fastboot flash system system.img_sparsechunk.3
target reported max download size of 268435456 bytes
sending 'system' (262140 KB)...
OKAY [ 8.687s]
writing 'system'...
OKAY [ 3.742s]
finished. total time: 12.435s

C:\z\Android\sdk\platform-tools>fastboot flash system system.img_sparsechunk.4
target reported max download size of 268435456 bytes
sending 'system' (262142 KB)...
OKAY [ 8.667s]
writing 'system'...
OKAY [ 3.364s]
finished. total time: 12.035s

C:\z\Android\sdk\platform-tools>fastboot flash system system.img_sparsechunk.5
target reported max download size of 268435456 bytes
sending 'system' (255933 KB)...
OKAY [ 8.476s]
writing 'system'...
OKAY [ 3.312s]
finished. total time: 11.790s

C:\z\Android\sdk\platform-tools>fastboot flash system system.img_sparsechunk.6
target reported max download size of 268435456 bytes
sending 'system' (112244 KB)...
OKAY [ 3.721s]
writing 'system'...
OKAY [ 1.474s]
finished. total time: 5.200s

C:\z\Android\sdk\platform-tools>fastboot flash modem NON-HLOS.bin
target reported max download size of 268435456 bytes
sending 'modem' (36984 KB)...
OKAY [ 1.227s]
writing 'modem'...
OKAY [ 0.551s]
finished. total time: 1.782s

C:\z\Android\sdk\platform-tools>fastboot erase modemst1
erasing 'modemst1'...
OKAY [ 0.021s]
finished. total time: 0.023s

C:\z\Android\sdk\platform-tools>fastboot erase modemst2
erasing 'modemst2'...
OKAY [ 0.015s]
finished. total time: 0.016s

C:\z\Android\sdk\platform-tools>fastboot flash fsg fsg.mbn
target reported max download size of 268435456 bytes
sending 'fsg' (2159 KB)...
OKAY [ 0.077s]
writing 'fsg'...
OKAY [ 0.052s]
finished. total time: 0.134s

C:\z\Android\sdk\platform-tools>fastboot erase cache
erasing 'cache'...
OKAY [ 0.019s]
finished. total time: 0.021s

C:\z\Android\sdk\platform-tools>fastboot erase userdata
erasing 'userdata'...
OKAY [ 1.563s]
finished. total time: 1.565s

C:\z\Android\sdk\platform-tools>fastboot erase customize
erasing 'customize'...
OKAY [ 0.017s]
finished. total time: 0.019s

C:\z\Android\sdk\platform-tools>fastboot erase clogo
erasing 'clogo'...
OKAY [ 0.031s]
finished. total time: 0.032s

C:\z\Android\sdk\platform-tools>fastboot oem fb_mode_clear
...
OKAY [ 0.005s]
finished. total time: 0.006s

C:\z\Android\sdk\platform-tools>fastboot reboot
rebooting...

finished. total time: 0.009s

C:\z\Android\sdk\platform-tools>

history of my device:
-XT1540 (2GB)
-was on CM13 6.0.1 (before it became official)
-had custom recovery (TWRP) and root
-rebooted in TWRP and made a backup of device and stored it on an external SD card
-reboot phone back to normal (still in CM) and went to settings to erase data & reset
-when that was done, turned the phone off
-turned it back on by pressing down volume button and now in Fastboot mode (i didnt enter any menu when the phone turned via volume down button during power on)
-followed everything else on the OP using this extracted zip file "OSPREY_RETUS_2GB_6.0_MPI24.65-25.1_cid9"

Can I just try everything on the original post again safely (except this time I can't start by factory reset again since I can't get boot normally)?
Was I suppose to be flashing in Recovery menu you think? or did I do it right by start flashing on the 1st main screen that comes up after pressing the power button + volume down?
 
Last edited:

lost101

Inactive Recognized Contributor
May 30, 2008
7,434
9,326
0
Was I suppose to be flashing in Recovery menu you think? or did I do it right by start flashing on the 1st main screen that comes up after pressing the power button + volume down?
You are flashing on the correct screen. That's the fastboot screen, the only place that accepts fastboot commands. A factory reset in CM13 is not good enough. You must do a factory reset in Stock Recovery. See OP again.
 
  • Like
Reactions: 1dtms

lost101

Inactive Recognized Contributor
May 30, 2008
7,434
9,326
0
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.​
 
Last edited:

1dtms

Senior Member
May 23, 2011
209
16
0
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) Press power + Volume UP.
(7) Go to Wipe data / Factory reset and press power button.
(8) Scroll to Yes - delete all user data and press power.​
that did it!
Thank you!
I'm on the Welcome screen as I type:)
 
  • Like
Reactions: lost101

THEHOLYG0D

Senior Member
Apr 6, 2013
333
156
73
Navi Mumbai
So after just reverting to Stock on the XT1550 , I flashed the beta superSU and Xposed 82 arm. aaannnnd now I'm stuck on the *M* logo, I'll just reflash the stuff but @lost101 can you guide me for successful rooting and Xposed ? Thanks in Advance :)



EDIT: Nevermind Reflashed the Stock , flashed Latest TWRP 3.0.2 and xposed 82 arm along with beta SuperSU v71, all working now, thanks for the thread though :D
 
Last edited:

exohas

Member
Feb 23, 2012
7
0
0
From the other thread
Guys, I've got a little question / trouble after flashing 6.0.1.

Everything works fine, battery life is approximately 2h SOT higher, which is awesome.

I'm facing problem with network connection. While in 3G my phone stays on UMTS or HSPA, it just won't establish HSPA+ connection (tested with 2 SIM cards from different operators). So I'm wondering have I maybe flashed something wrong, or someone else is also facing this problem?

Edit: I've got XT 1541 and I've flashed EU rom, so the one I've got with the device.
Obviously something has gone wrong with the flashing process. If firmware image is flashed correctly, your phone should work as if you just bought it. It would help to see a log of the flashing process. Copy and paste command prompt screen. Take screenshots if necessary. Please continue the conversation here:
I've tried to flash the image once again, and im still facing the same thing. Everything went okay. But I just now tested my internet speed, and it works okay. It actualy does connect to HSPA+ network, but it shows UMTS or HSPA.

Here is a pic from T-Mobile which has UMTS base network (when phone is in idle, and doesnt use internt), and another pic from Vipnet which has HSPA base network (in idle, and the changes to HSPA+ once internet is in use)


So everything is okay, except false info about network under the setting. Thank for your help @lost101
 

exohas

Member
Feb 23, 2012
7
0
0
Yeah, prior to flashing I've erased it within stock recovery, and I've run the command inside cmd (admin). I've double checked every command and flashed all 0-7 chunk files.

Now that I've tested it, and it actually is connected to HSPA+ I don't mind it that much. At the end its just an icon next to the signal, and a text in "about phone". I've seen another user with same problem as me in other thread, so it could be rom bug as well. Except that, everything else works well. I've got ghost touches here and there, but it's not that big of a deal.



Will try to reflash newer rom when it comes available, because I don't have that much time to do the procedure once again.
Thanks once again for trying to help out!
 
Last edited:

lost101

Inactive Recognized Contributor
May 30, 2008
7,434
9,326
0
@exohas - With the Moto G (1st Gen) - US Firmware would not display H/H+, only 3G iirc. Sometimes there are regional quirks with Motorola Firmware. It may also be a design choice, or ultimately an issue they have missed.
 
  • Like
Reactions: exohas

exohas

Member
Feb 23, 2012
7
0
0
Yep, I remember when i had my Moto G 1st gen with KitKat. We had H+ next to signal bar, and with Lollipop it changed to only H. It bothered me, but just a few days.

Now on Moto G3 ive only seen just 3G next to icon on T-Mobile and it says UMTS under network details, when in reality it actualy is HSPA+. I was panicking that I've done something wrong while flashing, but after I've tested the speeds and they were okay, I was releaved that it's just a bug that shows incorrect icon and network info under settings. I'll get used to it :D
 

Tel864

Senior Member
Nov 22, 2011
3,011
1,093
253
Greenville
I think it would be good if OP was updated. Because now we have 5.1 , 6.0 and 6.0.1 and each has some slight differences in the commands required.
I would propose we have specific guide for each of these three versions(5.1, 6.0 and 6.0.1).
What do you think @lost101 ?
Maybe for the 3 people out of a 100 that bother to even read the OP before they jump right in to flashing. :)
 

lenp

Member
Jan 19, 2011
6
2
0
​Hey I flashed the latest version (6.0.1) for XT 1541, 1GB version, but unfortunately wifi is not working anymore :(


[6.0.1]
Retail Europe (1GB) - XT1541_OSPREY_RETEU_6.0.1_MPI24.107-55_cid7​
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone