Using Mfastboot.exe to Flash a Motorola device

sd_shadow

Recognized Contributor
Sep 21, 2011
16,534
7,490
253
South Dakota
goo.gl
Mfastboot
Although Mfastboot.exe works with most Motorola Devices, the exact files and flash commands may vary, best to see specific forum/threads for the device.
I haven't updated this thread for a while.
Mfastboot still works, but the flash commands have changed for newer devices.
See Guide: Motorola Firmware


Watch Videos
Download
Verify Files
  • Compare File Size with file size form download site
  • Use Hash Checksums
    • mfastboot-v2.zip (1.36 MB) MD5 Sum: 83650a3589d2ecd7c8115ce860d45a23

Install Moto Drivers
  • Extract files from zip
  • Run Motorola_End_User_Driver_Installation_....msi
  • Reboot PC

Setup Mfastboot.exe
  • Extract mafastboot.zip to a local drive
  • Example - C:/Mfastboot
  • Open start menu and type CMD
  • Right click on CMD > select open file location
  • Find cmd.exe, right click and copy
  • Paste into Mfastboot folder

Show known File Types
  • Open C:/Mfastboot folder
  • Select View>options>Change folder and Search options
  • In Folder Options Select Tab View
  • Uncheck Box: Hide Extensions for Known file Types
  • Select OK

Short Version - Flashing System Only

  • In some cases only System.img is necessary
  • Type commands
    Code:
    mfastboot flash system system.img
    and
  • Type commands
    Code:
    mfastboot reboot
  • Press enter
    if Device does not boot try Long Version

Long Version -Using Mfastboot to Flash Firmware

  • Note: The exact files needed will very by device model
  • Extract files from Firmware xml.zip
  • Copy
    Code:
    NON-HLOS.bin
    system.img
    boot.img
    recovery.img
    to Mfastboot folder
  • Boot Device to AP Fastboot Mode (Power Off, Hold Volume Down, Press power button for 2-3 secs then release)
  • Note Click here If you see Low Battery, Click here if you see Fastboot Reason: Sticky bit factory_fastboot
  • Run cmd.exe in Mfastboot folder
  • Type commands
    Code:
    mfastboot flash modem NON-HLOS.bin
  • Press enter
  • Type commands
    Code:
    mfastboot erase modemst1
  • Press enter
  • Type commands
    Code:
    mfastboot erase modemst2
  • Press enter
  • Type commands
    Code:
    mfastboot flash system system.img
  • Press enter this may take several minutes to finish and be flashed in several segments.
  • Type commands
    Code:
    mfastboot flash boot boot.img
  • Press enter
  • Type commands
    Code:
    mfastboot flash recovery recovery.img
  • Press enter
  • Type commands
    Code:
    fastboot erase cache
  • Press enter
  • Optional Data Wipe: Type commands
    Code:
    fastboot erase userdata
  • Press enter
  • Type commands
    Code:
    mfastboot reboot
  • Press enter
  • Device should boot normally, If not see RSD Lite or House of Moto
 

Attachments

Last edited:

sd_shadow

Recognized Contributor
Sep 21, 2011
16,534
7,490
253
South Dakota
goo.gl
Troubleshooting

Q1: Error: Cannot load system.img: Not enough space.
Solution: try flashing system.img in chunks with
Code:
mfastboot flash system system.img -P
- Thanks to @Merconium for the tip

Error: UTAG "bootmode" configured as fastboot
Solution 1:
Code:
fastboot oem fb_mode_clear
fastboot reboot
Solution 2:
Code:
fastboot erase motoboot
fastboot flash motoboot motoboot.img
fastboot reboot
 
Last edited:
  • Like
Reactions: Delichi

s5610

Senior Member
Sep 13, 2014
716
305
0
Chişinău
Sadly to say, but seems like mfastboot is outdated for now. I get error trying to flash SU6-7.7 ROM for Droid Maxx. RSD Lite 6.2.4 is ok.

e:\Motorola\XT1080\QLOAD_firmwares\CFC-obakem_verizon-user-4.4.4-SU6-7.7-release-keys.xml>fastboot flash system system.img
(bootloader) Variable not supported!
target reported max download size of 805306368 bytes
Invalid sparse file format at header magi
error: write_sparse_skip_chunk: don't care size 524509064 is not a multiple of the block size 4096
sending sparse 'system' (768973 KB)...
error: write_sparse_skip_chunk: don't care size 524509064 is not a multiple of the block size 4096
OKAY [ 49.390s]
writing 'system'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 49.967s
 

sd_shadow

Recognized Contributor
Sep 21, 2011
16,534
7,490
253
South Dakota
goo.gl
Sadly to say, but seems like mfastboot is outdated for now. I get error trying to flash SU6-7.7 ROM for Droid Maxx. RSD Lite 6.2.4 is ok.

e:\Motorola\XT1080\QLOAD_firmwares\CFC-obakem_verizon-user-4.4.4-SU6-7.7-release-keys.xml>fastboot flash system system.img
(bootloader) Variable not supported!
target reported max download size of 805306368 bytes
Invalid sparse file format at header magi
error: write_sparse_skip_chunk: don't care size 524509064 is not a multiple of the block size 4096
sending sparse 'system' (768973 KB)...
error: write_sparse_skip_chunk: don't care size 524509064 is not a multiple of the block size 4096
OKAY [ 49.390s]
writing 'system'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 49.967s
I may need to update thread
to something like this
http://forum.xda-developers.com/showthread.php?t=2542219

mfastboot flash partition gpt.bin
mfastboot flash motoboot motoboot.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
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 modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot reboot[/QUOTE]


Sent from my XT1080 using XDA Labs
 
  • Like
Reactions: s5610