FORUMS
Remove All Ads from XDA

Using Mfastboot.exe to Unbrick a Motorola device

14,479 posts
Thanks Meter: 6,461
 
By sd_shadow, Recognized Contributor on 16th September 2015, 11:20 PM
Post Reply Email Thread
7th February 2017, 07:35 AM |#21  
Junior Member
Thanks Meter: 1
 
More
I followed the instructions to a T. Now I am met with the red boot light of death. The phone boots, gets past the moto logo, then does the "Drooooiiiidddd" boot sound and has the loading red eye. Then. . .gets stuck. I used a batch file containing the following

Quote:

mfastboot flash motoboot motoboot.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 modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
pause

Is there anything I should try? I am on Windows 10, so the RSD method does not work for me. I am using the 1080 Verizon version. 16gb. When I originally flashed it gave me an error about gpt.bin.
 
 
7th February 2017, 12:58 PM |#22  
Quote:
Originally Posted by Zestypanda

I followed the instructions to a T. Now I am met with the red boot light of death. The phone boots, gets past the moto logo, then does the "Drooooiiiidddd" boot sound and has the loading red eye. Then. . .gets stuck. I used a batch file containing the following


Is there anything I should try? I am on Windows 10, so the RSD method does not work for me. I am using the 1080 Verizon version. 16gb. When I originally flashed it gave me an error about gpt.bin.

Which firmware version are you flashing?

Sent from my XT1096 using XDA Labs
7th February 2017, 11:05 PM |#23  
Junior Member
Thanks Meter: 1
 
More
Thank you for the reply. I am using CFC_obake_verizon-user-4.4.4-SU6-7.7-release-keys version I downloaded. I can boot into recovery/stock recovery but it still hangs. I have done wipe cache/system partition. I reflashed the rom, I go into recovery and it boots as if it is going to go to the first time setup wizard then gets stuck on the boot animation.
8th February 2017, 12:15 AM |#24  
Quote:
Originally Posted by Zestypanda

Thank you for the reply. I am using CFC_obake_verizon-user-4.4.4-SU6-7.7-release-keys version I downloaded. I can boot into recovery/stock recovery but it still hangs. I have done wipe cache/system partition. I reflashed the rom, I go into recovery and it boots as if it is going to go to the first time setup wizard then gets stuck on the boot animation.

Is bootloader locked or unlocked?

Sent from my XT1096 using XDA Labs
8th February 2017, 12:45 AM |#25  
Junior Member
Thanks Meter: 1
 
More
Locked bootloader.
8th February 2017, 01:14 AM |#26  
Quote:
Originally Posted by Zestypanda

Locked bootloader.

You are flashing same number of sparce chunks that are in firmware file?

Sent from my XT1096 using XDA Labs
8th February 2017, 02:02 AM |#27  
Junior Member
Thanks Meter: 1
 
More
Excuse my ignorance, what are spare chunks? Freespace?
8th February 2017, 02:29 AM |#28  
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

Sent from my XT1096 using XDA Labs
8th February 2017, 02:56 AM |#29  
Junior Member
Thanks Meter: 1
 
More
Oh, I was doing that because I was running into this error
Quote:

(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

So I then used the method listed in the moto g thread because I thought that maybe the system.img was too big to be flashed as one single file. So I was flashing it as parts. There is only one system.img but I had it break it up into parts. Is it maybe writing the system image to the wrong part of the flash?
8th February 2017, 03:32 AM |#30  
Quote:
Originally Posted by Zestypanda

Oh, I was doing that because I was running into this error
So I then used the method listed in the moto g thread because I thought that maybe the system.img was too big to be flashed as one single file. So I was flashing it as parts. There is only one system.img but I had it break it up into parts. Is it maybe writing the system image to the wrong part of the flash?

mfastboot will break it up, but you must use the correct number, looks like there should be 11 sparse chunks
Code:
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
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 . . .

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