FORUMS

Using Mfastboot.exe to Flash a Motorola device

16,016 posts
Thanks Meter: 7,092
 
By sd_shadow, Recognized Contributor on 16th September 2015, 11:20 PM
Post Reply Email Thread
8th February 2017, 03:57 AM |#31  
Junior Member
Thanks Meter: 1
 
More
Thank you for the continued help.

When I run this as my batch file
Quote:

mfastboot getvar max-sparse-size
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot flash boot boot.img
mfastboot flash logo logo.bin
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 system system.img_sparsechunk.4
mfastboot flash system system.img_sparsechunk.5
mfastboot flash system system.img_sparsechunk.6
mfastboot flash system system.img_sparsechunk.7
mfastboot flash system system.img_sparsechunk.8
mfastboot flash system system.img_sparsechunk.9
mfastboot flash system system.img_sparsechunk.10
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase ddr
oem fb_mode_clear
echo press enter to reboot device...
pause
mfastboot reboot
exit


pause

I get this as output

Quote:

C:\android\mfastboot-v2>mfastboot getvar max-sparse-size
(bootloader) Variable not supported!
getvar:max-sparse-size FAILED (remote failure)
finished. total time: 0.207s

C:\android\mfastboot-v2>mfastboot flash partition gpt.bin
(bootloader) Variable not supported!
target max-download-size: 768MB
sending 'partition' (32 KB)...
OKAY [ 0.220s]
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
OKAY [ 0.433s]
finished. total time: 0.657s

C:\android\mfastboot-v2>mfastboot flash motoboot motoboot.img
(bootloader) Variable not supported!
target max-download-size: 768MB
sending 'motoboot' (1604 KB)...
OKAY [ 0.349s]
writing 'motoboot'...
(bootloader) flashing tz ...
(bootloader) flashing rpm ...
(bootloader) flashing aboot ...
(bootloader) flashing sbl1 ...
(bootloader) flashing sbl2 ...
(bootloader) flashing sbl3 ...
OKAY [ 4.899s]
finished. total time: 5.250s

C:\android\mfastboot-v2>mfastboot flash boot boot.img
(bootloader) Variable not supported!
target max-download-size: 768MB
sending 'boot' (10240 KB)...
OKAY [ 0.906s]
writing 'boot'...
OKAY [ 2.141s]
finished. total time: 3.049s

C:\android\mfastboot-v2>mfastboot flash logo logo.bin
(bootloader) Variable not supported!
target max-download-size: 768MB
sending 'logo' (215 KB)...
OKAY [ 0.291s]
writing 'logo'...
OKAY [ 0.901s]
finished. total time: 1.195s

C:\android\mfastboot-v2>mfastboot flash recovery recovery.img
(bootloader) Variable not supported!
target max-download-size: 768MB
sending 'recovery' (10240 KB)...
OKAY [ 0.905s]
writing 'recovery'...
OKAY [ 1.731s]
finished. total time: 2.638s

C:\android\mfastboot-v2>mfastboot flash system system.img_sparsechunk.0
(bootloader) Variable not supported!
target max-download-size: 768MB
error: cannot load 'system.img_sparsechunk.0': No error


C:\android\mfastboot-v2>mfastboot flash system system.img_sparsechunk.1
(bootloader) Variable not supported!
target max-download-size: 768MB
error: cannot load 'system.img_sparsechunk.1': No error


C:\android\mfastboot-v2>mfastboot flash system system.img_sparsechunk.2
(bootloader) Variable not supported!
target max-download-size: 768MB
error: cannot load 'system.img_sparsechunk.2': No error


C:\android\mfastboot-v2>mfastboot flash system system.img_sparsechunk.3
(bootloader) Variable not supported!
target max-download-size: 768MB
error: cannot load 'system.img_sparsechunk.3': No error


C:\android\mfastboot-v2>mfastboot flash system system.img_sparsechunk.4
(bootloader) Variable not supported!
target max-download-size: 768MB
error: cannot load 'system.img_sparsechunk.4': No error


C:\android\mfastboot-v2>mfastboot flash system system.img_sparsechunk.5
(bootloader) Variable not supported!
target max-download-size: 768MB
error: cannot load 'system.img_sparsechunk.5': No error


C:\android\mfastboot-v2>mfastboot flash system system.img_sparsechunk.6
(bootloader) Variable not supported!
target max-download-size: 768MB
error: cannot load 'system.img_sparsechunk.6': No error


C:\android\mfastboot-v2>mfastboot flash system system.img_sparsechunk.7
(bootloader) Variable not supported!
target max-download-size: 768MB
error: cannot load 'system.img_sparsechunk.7': No error


C:\android\mfastboot-v2>mfastboot flash system system.img_sparsechunk.8
(bootloader) Variable not supported!
target max-download-size: 768MB
error: cannot load 'system.img_sparsechunk.8': No error


C:\android\mfastboot-v2>mfastboot flash system system.img_sparsechunk.9
(bootloader) Variable not supported!
target max-download-size: 768MB
error: cannot load 'system.img_sparsechunk.9': No error


C:\android\mfastboot-v2>mfastboot flash system system.img_sparsechunk.10
(bootloader) Variable not supported!
target max-download-size: 768MB
error: cannot load 'system.img_sparsechunk.10': No error


C:\android\mfastboot-v2>mfastboot flash modem NON-HLOS.bin
(bootloader) Variable not supported!
target max-download-size: 768MB
sending 'modem' (54276 KB)...
OKAY [ 3.711s]
writing 'modem'...
OKAY [ 3.388s]
finished. total time: 7.101s

C:\android\mfastboot-v2>mfastboot erase modemst1
erasing 'modemst1'...
OKAY [ 0.486s]
finished. total time: 0.487s

C:\android\mfastboot-v2>mfastboot erase modemst2
erasing 'modemst2'...
OKAY [ 0.466s]
finished. total time: 0.468s

C:\android\mfastboot-v2>mfastboot flash fsg fsg.mbn
(bootloader) Variable not supported!
target max-download-size: 768MB
sending 'fsg' (538 KB)...
OKAY [ 0.350s]
writing 'fsg'...
OKAY [ 0.852s]
finished. total time: 1.204s

C:\android\mfastboot-v2>mfastboot erase ddr
erasing 'ddr'...
(bootloader) Invalid partition name ddr
FAILED (remote failure)
finished. total time: 0.103s

C:\android\mfastboot-v2>oem fb_mode_clear
'oem' is not recognized as an internal or external command,
operable program or batch file.

C:\android\mfastboot-v2>echo press enter to reboot device...
press enter to reboot device...

C:\android\mfastboot-v2>pause
Press any key to continue . . .

8th February 2017, 06:56 PM |#32  
Quote:
Originally Posted by Zestypanda

Thank you for the continued help.

When I run this as my batch file


I get this as output

Try downloading the current adb.exe and fastboot.exe files from https://developer.android.com/studio....html#download

And flash the whole system.IMG
Code:
fastboot flash system system.IMG
Sent from my sailfish using XDA Labs
12th February 2017, 05:04 AM |#33  
Junior Member
Thanks Meter: 1
 
More
Ok, I finally got it running.

Here is what I ran

Quote:

mfastboot getvar max-sparse-size
mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot flash boot boot.img
mfastboot flash logo logo.bin
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 system system.img_sparsechunk.4
mfastboot flash system system.img_sparsechunk.5
mfastboot flash system system.img_sparsechunk.6
mfastboot flash system system.img_sparsechunk.7
mfastboot flash system system.img_sparsechunk.8
mfastboot flash system system.img_sparsechunk.9
mfastboot flash system system.img_sparsechunk.10
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase ddr
echo press enter to reboot device...
pause
mfastboot reboot
exit


pause

The Following User Says Thank You to Zestypanda For This Useful Post: [ View ] Gift Zestypanda Ad-Free
12th April 2017, 01:07 PM |#34  
Junior Member
Thanks Meter: 1
 
More
Thanks mate, all works fine. I'd return my moto to life.
The Following User Says Thank You to CalterThompson For This Useful Post: [ View ] Gift CalterThompson Ad-Free
1st May 2017, 03:27 PM |#35  
Member
Thanks Meter: 13
 
More
Thank you SO SO SO MUCH!
You save me. 100% functional tutorial, and easy to follow.
The Following User Says Thank You to Cherno87 For This Useful Post: [ View ] Gift Cherno87 Ad-Free
9th November 2017, 01:55 AM |#36  
Junior Member
Thanks Meter: 0
 
More
Cmd showing Waiting for device
My Zip File - XT1624-XT1643_ATHENE_NPJ25.93-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
My phone - Moto G4 Plus XT1643 bought with Stock Nougat
Problem - Not booting, light blinking while connect to charger or pc.

cmd is showing <waiting for device>
9th November 2017, 02:11 AM |#37  
Quote:
Originally Posted by cooldude1598

My Zip File - XT1624-XT1643_ATHENE_NPJ25.93-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
My phone - Moto G4 Plus XT1643 bought with Stock Nougat
Problem - Not booting, light blinking while connect to charger or pc.

cmd is showing <waiting for device>

If there is no sign of life, don't think you can fix it
25th December 2017, 09:13 AM |#38  
Junior Member
Flag Lagos
Thanks Meter: 6
 
More
Quote:
Originally Posted by cooldude1598

My Zip File - XT1624-XT1643_ATHENE_NPJ25.93-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
My phone - Moto G4 Plus XT1643 bought with Stock Nougat
Problem - Not booting, light blinking while connect to charger or pc.

cmd is showing <waiting for device>

Have you tried the methods discussed here: http://www.aryk.tech/2017/08/moto-g4...ick-guide.html

It should work for your device.
The Following User Says Thank You to Arykit For This Useful Post: [ View ] Gift Arykit Ad-Free
27th December 2017, 05:45 AM |#39  
Junior Member
Thanks Meter: 1
 
More
i think unbricking and flashing are two totally different things.... i think this guide is for flashing the device not for unbrick.....

---------- Post added at 05:45 AM ---------- Previous post was at 05:43 AM ----------

the setup suggested there is a virus cant even run that program....
28th December 2017, 12:27 AM |#40  
Quote:
Originally Posted by magical ash

the setup suggested there is a virus cant even run that program....

What did you download, from where?
28th December 2017, 12:30 AM |#41  
Quote:
Originally Posted by magical ash

i think unbricking and flashing are two totally different things.... i think this guide is for flashing the device not for unbrick...

Term Bricked is used loosely meaning the device will not boot.
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