Using Mfastboot.exe to Flash a Motorola device

Search This thread

sd_shadow

Recognized Contributor / XDA Welcome Team
Sep 21, 2011
18,972
2
9,989
South Dakota
goo.gl
Motorola Droid X
Amazon Fire
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

  • mfastboot-v2.zip
    1.4 MB · Views: 34,160
Last edited:

sd_shadow

Recognized Contributor / XDA Welcome Team
Sep 21, 2011
18,972
2
9,989
South Dakota
goo.gl
Motorola Droid X
Amazon Fire
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

Delichi

Member
May 19, 2014
27
13
Vigo
vizardgirl.deviantart.com
THANK YOU very much!!!!!!!! You saved my life, when I didn't know what else to do (RSD lite didn't recognice my device and I coudn't flash anything by twrp). You're amazing and I can't comment your video so... Awesome post :D :D
 
  • Like
Reactions: sd_shadow

s5610

Senior Member
Sep 13, 2014
716
305
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 / XDA Welcome Team
Sep 21, 2011
18,972
2
9,989
South Dakota
goo.gl
Motorola Droid X
Amazon Fire
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://xdaforums.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

UTesla

New member
Sep 29, 2016
1
0
Lagomar
I have to start the phone manually

I´ve made my phone run, but when I turn it on, it boots in bootloader mode and I have to start the phone manually :(
 

YM_SNIPER22

Member
Sep 12, 2016
16
2
23
Kochi
But my phone's ROM doesn't have a system.img file. The files in it are shown in the picture.
 
Last edited:

YM_SNIPER22

Member
Sep 12, 2016
16
2
23
Kochi
But my phone's ROM doesn't have a system.img file. The files in it are shown in the picture. Please help quick...
 

Attachments

  • bandicam_2016-11-03_17-16-38-195.jpg
    bandicam_2016-11-03_17-16-38-195.jpg
    105.8 KB · Views: 270
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    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
    1
    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