• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[Guide] Flashing Motorola Firmware

Search This thread

wonarges

Member
Nov 12, 2014
21
1
Any method not working for me.
Please help me!
Thank You!!!
Code:
[QUOTE][COLOR="Red"][B]fastboot getvar all[/B][/COLOR]

(bootloader) version: 0.5
(bootloader) version-bootloader: MBM-2.1-river_retail-0ff2029-200211
(bootloader) product: river
(bootloader) board: river
(bootloader) secure: yes
(bootloader) hwrev: PVT
(bootloader) radio: 1
(bootloader) storage-type: emmc
(bootloader) emmc: 64GB MICRON S0J9N8 RV=08 PV=10 FV=0000000000000004
(bootloader) ram: 4GB MICRON LP3 DIE=8Gb M5=FF M6=01 M7=00 M8=5F
(bootloader) cpu: SDM632
(bootloader) serialno: 14f38b21
(bootloader) cid: 0xDEAD
(bootloader) channelid: 0x00
(bootloader) uid: 0000000000000000000000000000
(bootloader) securestate: oem_locked
(bootloader) iswarrantyvoid: n/a
(bootloader) max-download-size: 536870912
(bootloader) reason: Failed to initialize partition table
(bootloader) imei:
(bootloader) meid:
(bootloader) date:
(bootloader) sku:
(bootloader) carrier_sku:
(bootloader) battid:
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time:
(bootloader) ro.build.fingerprint:
(bootloader) poweroffalarm: 0
(bootloader) ro.build.version.full:
(bootloader) ro.build.version.qcom:
(bootloader) version-baseband:
(bootloader) kernel.version:
(bootloader) sbl1.git: sbl1.git
(bootloader) rpm.git: rpm.git
(bootloader) tz.git: tz.git
(bootloader) devcfg.git: devcfg.git
(bootloader) keymaster.git: keymaster.git
(bootloader) cmnlib.git: cmnlib.git[/QUOTE]
[QUOTE][COLOR="Red"][B]servicefile.bat[/B][/COLOR]

echo off
fastboot flash getvar max-sparse-size
fastboot flash oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
fastboot flash dsp adspso.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash dtbo dtbo.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.9
fastboot flash system system.img_sparsechunk.1
fastboot flash system_b system_b.img_sparsechunk.0
fastboot flash system_b system_b.img_sparsechunk.1
fastboot flash system_b system_b.img_sparsechunk.2
fastboot flash vendor img_sparsechunk.0
fastboot flash vendor img_sparsechunk.1
fastboot flash vendor img_sparsechunk.2
fastboot flash oem oem.img
fastboot flash oem_b oem_other.img
fastboot erase userdata
fastboot erase DDR
fastboot oem fb_mode_clear
pause
fastboot  reboot
exit 

operation partition filename[/QUOTE][QUOTE]
[COLOR="red"][B]CMD proces[/B][/COLOR]

ULT_regulatory_DEFAULT_CFC.xml>echo off
error: cannot load 'max-sparse-size'
error: cannot load 'fb_mode_set'
target reported max download size of 536870912 bytes
sending 'partition' (45 KB)...
OKAY [  0.004s]
writing 'partition'...
(bootloader) Validating 'gpt.default.xml'
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
(bootloader) Cancelling 'gpt.default.xml'
FAILED (remote failure)
finished. total time: 0.064s
target reported max download size of 536870912 bytes
sending 'bootloader' (7419 KB)...
OKAY [  0.245s]
writing 'bootloader'...
(bootloader) Validating 'bootloader.default.xml'
(bootloader) Invalid partition name aboot
(bootloader) Invalid partition name rpm
(bootloader) Invalid partition name tz
(bootloader) Invalid partition name devcfg
(bootloader) Invalid partition name cmnlib
(bootloader) Invalid partition name cmnlib64
(bootloader) Invalid partition name keymaster
(bootloader) Invalid partition name prov
(bootloader) Invalid partition name sbl1
(bootloader) Cancelling 'bootloader.default.xml'
FAILED (remote failure)
finished. total time: 0.433s
target reported max download size of 536870912 bytes
sending 'modem' (65880 KB)...
OKAY [  2.160s]
writing 'modem'...
(bootloader) Invalid partition name modem
FAILED (remote failure)
finished. total time: 2.180s
target reported max download size of 536870912 bytes
sending 'fsg' (11612 KB)...
OKAY [  0.378s]
writing 'fsg'...
(bootloader) Invalid partition name fsg
FAILED (remote failure)
finished. total time: 0.409s
erasing 'modemst1'...
(bootloader) Permission denied
FAILED (remote failure)
finished. total time: 0.024s
erasing 'modemst2'...
(bootloader) Permission denied
FAILED (remote failure)
finished. total time: 0.022s
target reported max download size of 536870912 bytes
sending 'dsp' (16384 KB)...
OKAY [  0.531s]
writing 'dsp'...
(bootloader) Invalid partition name dsp
FAILED (remote failure)
finished. total time: 0.559s
target reported max download size of 536870912 bytes
sending 'logo' (2633 KB)...
OKAY [  0.093s]
writing 'logo'...
(bootloader) Invalid partition name logo
FAILED (remote failure)
finished. total time: 0.116s
target reported max download size of 536870912 bytes
sending 'boot' (32768 KB)...
OKAY [  1.057s]
writing 'boot'...
(bootloader) Invalid partition name boot
FAILED (remote failure)
finished. total time: 1.088s
target reported max download size of 536870912 bytes
sending 'dtbo' (564 KB)...
OKAY [  0.027s]
writing 'dtbo'...
(bootloader) Invalid partition name dtbo
FAILED (remote failure)
finished. total time: 0.059s
target reported max download size of 536870912 bytes
sending 'system' (255560 KB)...
OKAY [  8.227s]
writing 'system'...
(bootloader) Invalid partition name system
FAILED (remote failure)
finished. total time: 8.260s
target reported max download size of 536870912 bytes
sending 'system' (262141 KB)...
OKAY [  8.494s]
writing 'system'...
(bootloader) Invalid partition name system
FAILED (remote failure)
finished. total time: 8.522s
target reported max download size of 536870912 bytes
sending 'system' (262141 KB)...
OKAY [  8.478s]
writing 'system'...
(bootloader) Invalid partition name system
FAILED (remote failure)
finished. total time: 8.489s
target reported max download size of 536870912 bytes
sending 'system' (262141 KB)...
OKAY [  8.749s]
writing 'system'...
(bootloader) Invalid partition name system
FAILED (remote failure)
finished. total time: 8.757s
target reported max download size of 536870912 bytes
sending 'system' (251983 KB)...
OKAY [  9.758s]
writing 'system'...
(bootloader) Invalid partition name system
FAILED (remote failure)
finished. total time: 9.790s
target reported max download size of 536870912 bytes
sending 'system' (262140 KB)...
OKAY [  8.442s]
writing 'system'...
(bootloader) Invalid partition name system
FAILED (remote failure)
finished. total time: 8.473s
target reported max download size of 536870912 bytes
sending 'system' (262142 KB)...
OKAY [  8.439s]
writing 'system'...
(bootloader) Invalid partition name system
FAILED (remote failure)
finished. total time: 8.471s
target reported max download size of 536870912 bytes
sending 'system' (232721 KB)...
OKAY [  7.488s]
writing 'system'...
(bootloader) Invalid partition name system
FAILED (remote failure)
finished. total time: 7.507s
target reported max download size of 536870912 bytes
sending 'system' (232693 KB)...
OKAY [  7.488s]
writing 'system'...
(bootloader) Invalid partition name system
FAILED (remote failure)
finished. total time: 7.514s
target reported max download size of 536870912 bytes
sending 'system' (178140 KB)...
OKAY [  5.730s]
writing 'system'...
(bootloader) Invalid partition name system
FAILED (remote failure)
finished. total time: 5.762s
target reported max download size of 536870912 bytes
sending 'system' (262141 KB)...
OKAY [  8.423s]
writing 'system'...
(bootloader) Invalid partition name system
FAILED (remote failure)
finished. total time: 8.440s
target reported max download size of 536870912 bytes
sending 'system_b' (262140 KB)...
OKAY [  8.421s]
writing 'system_b'...
(bootloader) Invalid partition name system_b
FAILED (remote failure)
finished. total time: 8.454s
target reported max download size of 536870912 bytes
sending 'system_b' (245272 KB)...
OKAY [  7.894s]
writing 'system_b'...
(bootloader) Invalid partition name system_b
FAILED (remote failure)
finished. total time: 7.925s
target reported max download size of 536870912 bytes
sending 'system_b' (77864 KB)...
OKAY [  2.509s]
writing 'system_b'...
(bootloader) Invalid partition name system_b
FAILED (remote failure)
finished. total time: 2.541s
error: cannot load 'img_sparsechunk.0'
error: cannot load 'img_sparsechunk.1'
error: cannot load 'img_sparsechunk.2'
target reported max download size of 536870912 bytes
sending 'oem' (68308 KB)...
OKAY [  2.200s]
writing 'oem'...
(bootloader) Invalid partition name oem
FAILED (remote failure)
finished. total time: 2.231s
target reported max download size of 536870912 bytes
sending 'oem_b' (43696 KB)...
OKAY [  1.410s]
writing 'oem_b'...
(bootloader) Invalid partition name oem_b
FAILED (remote failure)
finished. total time: 1.442s
erasing 'userdata'...
(bootloader) Permission denied
FAILED (remote failure)
finished. total time: 0.011s
erasing 'DDR'...
(bootloader) Permission denied
FAILED (remote failure)
finished. total time: 0.019s
...
OKAY [  0.138s]
finished. total time: 0.142s
Press any key to continue . . .[/QUOTE]
 
Last edited:

sd_shadow

Recognized Contributor
Sep 21, 2011
17,822
1
8,357
South Dakota
goo.gl
Moto X4
Moto G7 Power
Online FlashFile Converter

MediaTek notice
  • https://kfhost.net/flashfile
  • It's in Portuguese, but google translate works.
  • Find the Service.xml or flashfile.xml in a Firmware.zip
  • open the XML from firmware.zip with a text editor like Notepad++
  • Copy the commands from the .XML
  • On website scroll down to the flashfile.xml box, paste commands, click Gerar Comandos (Generate Commands)
  • Copy the new commands


Create a flashall.bat
  • Create a text file
  • paste commands from online convertor to text file
  • Save
  • edit file extension to .bat
  • Move bat file to the platform-tools folder (adb/fastboot.exe)
  • execute bat file by double-clicking on it

Also, see What is fastbootd?
 
Last edited:
  • Like
Reactions: Yasai1204

sd_shadow

Recognized Contributor
Sep 21, 2011
17,822
1
8,357
South Dakota
goo.gl
Moto X4
Moto G7 Power

Flashing Firmware on MediaTek Moto Devices​

Most Moto devices have Qualcomm chips, but few are MediaTek.

While Fastboot.exe and LMSA should work, you may have better success with SP Flash Tool
MediaTek and Fastboot.exe


SP Flash Tool
See the following threads for more on SP Flash Tool

[GUIDE] How to unlock bootloader in the Moto E6 Plus + Install TWRP, with Windows and Linux

 
Last edited:
  • Like
Reactions: wonarges

wonarges

Member
Nov 12, 2014
21
1
All information above.
Thank you for your help!!!

fastboot getvar all

(bootloader) version: 0.5
(bootloader) version-bootloader: MBM-2.1-river_retail-0ff2029-200211
(bootloader) product: river
(bootloader) board: river
(bootloader) secure: yes
(bootloader) hwrev: PVT
(bootloader) radio: 1
(bootloader) storage-type: emmc
(bootloader) emmc: 64GB MICRON S0J9N8 RV=08 PV=10 FV=0000000000000004
(bootloader) ram: 4GB MICRON LP3 DIE=8Gb M5=FF M6=01 M7=00 M8=5F
(bootloader) cpu: SDM632
(bootloader) serialno: 14f38b21
(bootloader) cid: 0xDEAD
(bootloader) channelid: 0x00
(bootloader) uid: 0000000000000000000000000000
(bootloader) securestate: oem_locked
(bootloader) iswarrantyvoid: n/a
(bootloader) max-download-size: 536870912
(bootloader) reason: Failed to initialize partition table
(bootloader) imei:
(bootloader) meid:
(bootloader) date:
(bootloader) sku:
(bootloader) carrier_sku:
(bootloader) battid:
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time:
(bootloader) ro.build.fingerprint:
(bootloader) poweroffalarm: 0
(bootloader) ro.build.version.full:
(bootloader) ro.build.version.qcom:
(bootloader) version-baseband:
(bootloader) kernel.version:
(bootloader) sbl1.git: sbl1.git
(bootloader) rpm.git: rpm.git
(bootloader) tz.git: tz.git
(bootloader) devcfg.git: devcfg.git
(bootloader) keymaster.git: keymaster.git
(bootloader) cmnlib.git: cmnlib.git
 

sd_shadow

Recognized Contributor
Sep 21, 2011
17,822
1
8,357
South Dakota
goo.gl
Moto X4
Moto G7 Power
Do I have a MediaTek or Qualcomm Chip?

Most Moto devices are Qualcomm devices, but a few are MediaTek.
MediaTek devices work a little differently.

MediaTek devices will have a preloader.bin file in a stock firmware folder.
Getvar all will say which CPU the device has.
Like this
Code:
(bootloader) cpu: MT6771V/WL
Code:
(bootloader) cpu: SDM630

MTxxxx will be MediaTek
SDxxxx will be SnapDragon (Qualcomm)
A google search of the CPU model will tell you if you have a MediaTek device.


There's a special flash tool for MediaTek Devices
SP Flash Tool see post #24
 
Last edited:
  • Like
Reactions: wonarges

sd_shadow

Recognized Contributor
Sep 21, 2011
17,822
1
8,357
South Dakota
goo.gl
Moto X4
Moto G7 Power
DEEN_RETAIL_9.0_PPKS29.68-16-36-7_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml
But getvar says river

To make sure you have the correct codename and software channel for the firmware
Product = codename
securestate = bootloader locked or unlocked
carrier_sku = Model #
ro.carrier = Software Channel



Sent from my Moto E (4) using Tapatalk
 
  • Like
Reactions: wonarges

wonarges

Member
Nov 12, 2014
21
1

Attachments

  • IMG_20200405_140901.jpg
    IMG_20200405_140901.jpg
    235.4 KB · Views: 83
Last edited:

Oscar.J.T.G

New member
Apr 9, 2020
4
0
(bootloader) kernel: uefi
(bootloader) version-bootloader: MBM-3.0-payton_retail-a5ca046-190905
(bootloader) product: payton
(bootloader) board: payton
(bootloader) secure: yes
(bootloader) hwrev: P4
(bootloader) radio: LATAM
(bootloader) storage-type: eMMC
(bootloader) emmc: 32GB MICRON S0J97Y RV=08 PV=10 FV=4E5630304D483333
(bootloader) ufs: N/A
(bootloader) ram: 3GB MICRON LP4 DIE=12Gb M5=FF M6=02 M7=10 M8=0C
(bootloader) cpu: SDM630 1.0 (6)
(bootloader) serialno: ZY225264H7
(bootloader) cid: 0x0032
(bootloader) channelid: 0x29
(bootloader) uid: 418E6933
(bootloader) securestate: flashing_unlocked
(bootloader) verity-state: disabled (0)
(bootloader) iswarrantyvoid: yes
(bootloader) max-download-size: 536870912
(bootloader) reason: Volume down key pressed
(bootloader) meid:
(bootloader) date: 06-15-2018
(bootloader) sku: XT1900-4
(bootloader) carrier_sku:
(bootloader) battid: SNN5995A
(bootloader) battery-voltage: 3961
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) ro.build.fingerprint[0]: motorola/payton/payton:9/PPW29.69-
(bootloader) ro.build.fingerprint[1]: 40-4/4ca2a:user/release-keys
(bootloader) poweroffalarm: 0
(bootloader) ro.build.version.full[0]: Blur_Version.29.421.17.payton.ret
(bootloader) ro.build.version.full[1]: ail.en.US
(bootloader) ro.build.version.qcom: LA.UM.7.2.r1-04900-sdm660.0
(bootloader) version-baseband: <not found>
(bootloader) kernel.version[0]: Linux version 4.4.153-perf-g8668f45 (hud
(bootloader) kernel.version[1]: [email protected]) (gcc version 4.9.x 2015
(bootloader) kernel.version[2]: 0123 (prerelease) (GCC) ) #1 SMP PREEMPT
(bootloader) kernel.version[3]: Thu Sep 5 02:21:39 CDT 2019
(bootloader) git:abl: MBM-3.0-payton_retail-a5ca046-190905
(bootloader) git:xbl: MBM-3.0-payton_retail-d45d20b-190905
(bootloader) git:pmic: MBM-3.0-payton_retail-d45d20b-190905
(bootloader) git:rpm: MBM-3.0-payton_retail-b0c6622-190905
(bootloader) git:tz: MBM-3.0-payton_retail-e7821e0-190905
(bootloader) git:hyp: MBM-3.0-payton_retail-e7821e0-190905
(bootloader) git:devcfg: MBM-3.0-payton_retail-e7821e0-190905
(bootloader) git:cmnlib: MBM-3.0-payton_retail-e7821e0-190905
(bootloader) git:cmnlib64: MBM-3.0-payton_retail-e7821e0-190905
(bootloader) git:keymaster: MBM-3.0-payton_retail-e7821e0-190905
(bootloader) git:prov: MBM-3.0-payton_retail-e7821e0-190905
(bootloader) git:storsec: MBM-3.0-payton_retail-e7821e0-190905
(bootloader) frp-state: no protection (0)
(bootloader) ro.carrier: openmx
(bootloader) current-slot: a
(bootloader) running-bl-slot: _a/_a
(bootloader) running-boot-lun: 0
(bootloader) slot-count: 2
(bootloader) slot-successful:_a: yes
(bootloader) slot-successful:_b: no
(bootloader) slot-unbootable:_a: no
(bootloader) slot-unbootable:_b: no
(bootloader) slot-retry-count:_a: 6
(bootloader) slot-retry-count:_b: 0
all: listed above
finished. total time: 0.094s
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    Guide: Flashing Motorola Firmware

    If your device has its own section please post in that section.​
    You can ping me with @sd_shadow


    MediaTek or Qualcomm Chip?
    • Do I have a MediaTek Device? see post #26
    • Info: If you have a MediaTek Chip see post #24
    • MediaTek and Fastboot.exe see post #17
    • Most Moto devices are Qualcomm See options below

    • Warning:
      • Know what software version is on your device before flashing see Post #2
      • Do not downgrade firmware with a locked bootloader, it may make the device unusable.
      • If you flash firmware for a different model, even if it is similar, it may make the device unusable.
    Notice: Some devices on Android 10 and above now require fastbootd mode​

    • There are a few options for flashing stock Motorola firmware.

    Flashing with fastboot.exe
    First, watch this video, it's a bit old, but Root Junkie covers the steps very well.​
    There are a few things you need.​

    Batch script for Flashing firmware

    Flashing Radio Only

    Other Links

    Rooting
    Blankflash and EDL Mode
    Downgrading Moto Firmware​
    Other Troubleshooting​
    1
    Device Model #, codename and software channel.

    How to find the Device Model #, codename and software channel.

    Motorola has different Firmware based on the Model/codename and Software Channel.

    There are a few different ways to find the device codename and software channel.
    • Settings/About phone
    • DevCheck
      • System tab: Device= codename, SKU = model #
    • List of Motorola Codenames
    • bootloader info (This isn't always real clear)

      Preferred Method
    • Fastboot getvar all method (Device must be in AP Fastboot Flash Mode)
      Code:
      fastboot getvar all
      • Product = codename
      • securestate = bootloader locked or unlocked
      • carrier_sku = Model #
      • ro.carrier = Software Channel
      • ro.build.fingerprint = Software version See post #7
      • ro.build.version.full = Software version See post #7
    • Other flashing concerns
    • Dual or Single Sim version
    • Memory size Versions 32gb, 64gb....


    • Example of a Device with a/b system
      Code:
      (bootloader) kernel: uefi
      (bootloader) version-bootloader: MBM-3.0-payton_retail-eca8056-191031
      (bootloader) product: payton
      (bootloader) board: payton
      (bootloader) secure: yes
      (bootloader) hwrev: P4
      (bootloader) radio: NA
      (bootloader) storage-type: eMMC
      (bootloader) emmc: 32GB MICRON S0J97Y RV=08 PV=10 FV=4E5630304D483333
      (bootloader) ufs: N/A
      (bootloader) ram: 3GB MICRON LP4 DIE=12Gb M5=FF M6=02 M7=10 M8=0C
      (bootloader) cpu: SDM630 1.0 (2)
      (bootloader) serialno: ZY22584W3J
      (bootloader) cid: 0x0032
      (bootloader) channelid: 0x8d
      (bootloader) uid: 2BD6548F
      (bootloader) securestate: flashing_unlocked
      (bootloader) verity-state: disabled (0)
      (bootloader) iswarrantyvoid: yes
      (bootloader) max-download-size: 536870912
      (bootloader) reason: Volume down key pressed
      (bootloader) imei: 
      (bootloader) meid:
      (bootloader) date: 11-20-2018
      (bootloader) sku: XT1900-1
      (bootloader) carrier_sku: XT1900-1
      (bootloader) battid: SNN5994A
      (bootloader) battery-voltage: 4006
      (bootloader) iccid:
      (bootloader) cust_md5:
      (bootloader) max-sparse-size: 268435456
      (bootloader) ro.build.fingerprint[0]: motorola/payton/payton:9/PPWS29.69
      (bootloader) ro.build.fingerprint[1]: -39-6-2/d2226:user/release-keys
      (bootloader) poweroffalarm: 0
      (bootloader) ro.build.version.full[0]: Blur_Version.29.461.11.payton.ret
      (bootloader) ro.build.version.full[1]: ail.en.US
      (bootloader) ro.build.version.qcom: LA.UM.7.2.r1-04900-sdm660.0
      (bootloader) version-baseband: M660_7045.36.01.100R PAYTON_NA_CUST
      (bootloader) kernel.version[0]: Linux version 4.4.153-perf-g496fe5a (hud
      (bootloader) kernel.version[1]: [email protected]) (gcc version 4.9.x 2015
      (bootloader) kernel.version[2]: 0123 (prerelease) (GCC) ) #1 SMP PREEMPT
      (bootloader) kernel.version[3]: Thu Oct 31 07:27:03 CDT 2019
      (bootloader) git:abl: MBM-3.0-payton_retail-eca8056-191031
      (bootloader) git:xbl: MBM-3.0-payton_retail-dec7b7c-191031
      (bootloader) git:pmic: MBM-3.0-payton_retail-dec7b7c-191031
      (bootloader) git:rpm: MBM-3.0-payton_retail-b0c6622-191031
      (bootloader) git:tz: MBM-3.0-payton_retail-fa205ea-dirty-191031
      (bootloader) git:hyp: MBM-3.0-payton_retail-fa205ea-dirty-191031
      (bootloader) git:devcfg: MBM-3.0-payton_retail-fa205ea-dirty-191031
      (bootloader) git:cmnlib: MBM-3.0-payton_retail-fa205ea-dirty-191031
      (bootloader) git:cmnlib64: MBM-3.0-payton_retail-fa205ea-dirty-191031
      (bootloader) git:keymaster: MBM-3.0-payton_retail-fa205ea-dirty-191031
      (bootloader) git:prov: MBM-3.0-payton_retail-fa205ea-dirty-191031
      (bootloader) git:storsec: MBM-3.0-payton_retail-fa205ea-dirty-191031
      (bootloader) frp-state: no protection (77)
      (bootloader) ro.carrier: retus
      (bootloader) current-slot: b
      (bootloader) running-bl-slot: _b/_b
      (bootloader) running-boot-lun: 0
      (bootloader) slot-count: 2
      (bootloader) slot-successful:_a: yes
      (bootloader) slot-successful:_b: yes
      (bootloader) slot-unbootable:_a: no
      (bootloader) slot-unbootable:_b: no
      (bootloader) slot-retry-count:_a: 6
      (bootloader) slot-retry-count:_b: 6
      all: listed above
      Finished. Total time: 0.250s

      Older Device

      Code:
      C:\platform-tools_r28.0.0-windows\platform-tools>fastboot getvar all
      (bootloader) version: 0.5
      (bootloader) version-bootloader: moto-msm8917-BA.09(*)
      (bootloader) product: perry
      (bootloader) board: perry
      (bootloader) secure: yes
      (bootloader) hwrev: P3B
      (bootloader) radio: 1
      (bootloader) storage-type: emmc
      (bootloader) emmc: 16GB SKHYNIX HAG4a2 RV=08 PV=A5 FV=00000000000000A5
      (bootloader) ram: 2GB SKHYNIX LP3 DIE=8Gb M5=06 M6=04 M7=00 M8=1F
      (bootloader) cpu: MSM8917
      (bootloader) serialno: ZY224PF863
      (bootloader) cid: 0x0032
      (bootloader) channelid: 0x8b
      (bootloader) uid: 079D50CD00000000000000000000
      (bootloader) securestate: flashing_unlocked
      (bootloader) iswarrantyvoid: yes
      (bootloader) max-download-size: 536870912
      (bootloader) reason: Volume down key pressed
      (bootloader) imei: 
      (bootloader) meid:
      (bootloader) date: 12-06-2017
      (bootloader) sku: XT1768
      (bootloader) battid:
      (bootloader) iccid: 89015809000153536508
      (bootloader) cust_md5:
      (bootloader) max-sparse-size: 268435456
      (bootloader) current-time:
      (bootloader) ro.build.fingerprint[0]: motorola/perry_f/perry_f:7.1.1/NPQ
      (bootloader) ro.build.fingerprint[1]: S26.69-41-3/3:user/release-keys
      (bootloader) poweroffalarm: 0
      (bootloader) ro.build.version.full[0]: Blur_Version.26.206.3.perry.retai
      (bootloader) ro.build.version.full[1]: l.en.US
      (bootloader) ro.build.version.qcom: LA.UM.5.6.r1-03800-89xx.0
      (bootloader) version-baseband: M8917_18.08.04.09R PERRY_NA_CUST
      (bootloader) kernel.version[0]: Linux version 3.18.31-perf-g9acc907-0004
      (bootloader) kernel.version[1]: 4-gbf03e3f ([email protected]) (gcc ver
      (bootloader) kernel.version[2]: sion 4.8 (GCC) ) #1 SMP PREEMPT Fri Sep
      (bootloader) kernel.version[3]: 22 01:08:15 CDT 2017
      (bootloader) sbl1.git: git=MBM-NG-VBA.09-0-ge2011ab
      (bootloader) rpm.git: git=MBM-NG-VBA.09-0-gc6ac81e
      (bootloader) tz.git: git=MBM-NG-VBA.09-0-g2883cde
      (bootloader) devcfg.git: git=MBM-NG-VBA.09-0-g2883cde
      (bootloader) keymaster.git: git=MBM-NG-VBA.09-0-g2883cde
      (bootloader) cmnlib.git: git=MBM-NG-VBA.09-0-g2883cde
      (bootloader) cmnlib64.git: git=MBM-NG-VBA.09-0-g2883cde
      (bootloader) prov.git: git=MBM-NG-VBA.09-0-g2883cde
      (bootloader) aboot.git: git=MBM-NG-VBA.09-0-gcae5764-dirty
      (bootloader) qe: qe 1/1
      (bootloader) frp-state: no protection (343)
      (bootloader) ro.carrier: usc


      another
      Code:
      (bootloader) version: 0.5
      (bootloader) version-bootloader: MBM-2.1-ocean_retail-8caffde-191202
      (bootloader) product: ocean
      (bootloader) board: ocean
      (bootloader) secure: yes
      (bootloader) hwrev: PVT1
      (bootloader) radio: 1
      (bootloader) storage-type: emmc
      (bootloader) emmc: 32GB SAMSUNG GD6BMB RV=08 PV=01 FV=0000000000000001
      (bootloader) ram: 3GB SAMSUNG LP3 DIE=8Gb M5=01 M6=06 M7=00 M8=5F
      (bootloader) cpu: SDM632
      (bootloader) serialno: ZY326BF4Z5
      (bootloader) cid: 0x0032
      (bootloader) channelid: 0x8d
      (bootloader) uid: E00B2DA900000000000000000000
      (bootloader) securestate: flashing_unlocked
      (bootloader) iswarrantyvoid: yes
      (bootloader) max-download-size: 536870912
      (bootloader) reason: Volume down key pressed
      (bootloader) imei: 
      (bootloader) meid:
      (bootloader) date: 06-29-2019
      (bootloader) sku: XT1955-5
      (bootloader) carrier_sku: XT1955-5
      (bootloader) battid: SB18C28957
      (bootloader) iccid:
      (bootloader) cust_md5:
      (bootloader) max-sparse-size: 268435456
      (bootloader) current-time: "Tue Jan 28 17:58:47 UTC 2020"
      (bootloader) ro.build.fingerprint[0]: motorola/ocean/ocean:9/PPOS29.114-
      (bootloader) ro.build.fingerprint[1]: 134-7-1/0ec93:user/release-keys
      (bootloader) poweroffalarm: 0
      (bootloader) ro.build.version.full[0]: Blur_Version.29.201.1.ocean.retai
      (bootloader) ro.build.version.full[1]: l.en.US
      (bootloader) ro.build.version.qcom: LA.UM.7.6.2.r1-04600-89xx.0
      (bootloader) version-baseband: M632_26.100.01.120.02R OCEAN_NA_CUST
      (bootloader) kernel.version[0]: Linux version 4.9.112-perf+ ([email protected]
      (bootloader) kernel.version[1]: clbld110) (gcc version 4.9.x 20150123 (p
      (bootloader) kernel.version[2]: rerelease) (GCC) ) #1 SMP PREEMPT Mon De
      (bootloader) kernel.version[3]: c 2 12:51:31 CST 2019
      (bootloader) sbl1.git: MBM-2.1-ocean_retail-b508f3a-191202
      (bootloader) rpm.git: MBM-2.1-ocean_retail-22daab3-191202
      (bootloader) tz.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
      (bootloader) devcfg.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
      (bootloader) keymaster.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
      (bootloader) cmnlib.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
      (bootloader) cmnlib64.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
      (bootloader) prov.git: MBM-2.1-ocean_retail-d9613e6-dirty-191202
      (bootloader) aboot.git: MBM-2.1-ocean_retail-8caffde-191202
      (bootloader) frp-state: no protection (277)
      (bootloader) ro.carrier: retus
      (bootloader) current-slot: a
      (bootloader) running-boot-lun: 0
      (bootloader) running-slot: _a
      (bootloader) slot-suffixes: _a,_b
      (bootloader) slot-count: 2
      (bootloader) slot-successful:_a: Yes
      (bootloader) slot-successful:_b: Yes
      (bootloader) slot-bootable:_a: Yes
      (bootloader) slot-bootable:_b: Yes
      (bootloader) slot-retry-count:_a: 6
      (bootloader) slot-retry-count:_b: 6
    1
    Motorola Firmware Mirrors
    Firmware can also be pulled from LMSA
    Look for downloaded Firmware in
    Code:
     C:\ProgramData\LMSA\Download\RomFiles

    You may need to uncheck
    Code:
    Hide protected operating system files
    in View/Options/Change Folder and Search options/View
    Direct link
    Code:
    download.lenovo.com/lsa/Rescue/Smartphone/model#/firmwarename
    Like this
    Code:
    download.lenovo.com/lsa/Rescue/Smartphone/XT1650/GRIFFIN_OPL27.76-71-2-3_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

    Related
    https://forum.xda-developers.com/showpost.php?p=82204141&postcount=29
    1
    Motorola Blur software versions and Android Versions

    From Getvar All (Examples)
    • ro.build.fingerprint = motorola/ocean/ocean:9/PPOS29.114- (Blur Version 29)
    • ro.build.version.full = Blur_Version.29.461.11.payton.ret - (Blur Version 29)

    Android 10 = Motorola Blur 30.xxx.xx
    Android 9 = Motorola Blur 29.xxx.xx
    Android 8.1 = Motorola Blur 28.xxx.xx
    Android 8.0 = Motorola Blur 27.xxx.xx
    Android 7.1.1 = Motorola Blur 26.xxx.xx
    Android 7.0 = Motorola Blur 25.xxx.xx
    Android 6.0 = Motorola Blur 24.xxx.xx
    Android 5.1 = Motorola Blur 23.xxx.xx
    Android 5.0 = Motorola Blur 22.xxx.xx
    Android = Motorola Blur 21.xxx.xx
    Android 4.4.2 = Motorola Blur 20.xxx.xx
    Android 4 = Motorola Blur .xxx.xx
    Android 3 = Motorola Blur
    Android 2 = Motorola Blur
    Android 1 = Motorola Blur
    1
    Using fastboot.exe with MediaTek Devices

    There's a special flash tool for MediaTek Devices
    SP Flash Tool see post #24


    It appears for a/b slot devices, slot a should be set as active.
    Like this
    Code:
    fastboot set_active a

    Example of full command for Motorola MediaTek devices

    Code:
    fastboot devices
    fastboot set_active a
    fastboot getvar max-sparse-size
    fastboot oem fb_mode_set
    fastboot flash gpt PGPT
    fastboot flash preloader preloader.bin
    fastboot flash lk_a lk.img
    fastboot flash lk_b lk.img
    fastboot flash tee_a tee.img
    fastboot flash tee_b tee.img
    fastboot flash md1img_a md1img.img
    fastboot flash md1img_b md1img.img
    fastboot erase nvdata
    fastboot flash spmfw_a spmfw.img
    fastboot flash spmfw_b spmfw.img
    fastboot flash scp_a scp.img
    fastboot flash scp_b scp.img
    fastboot flash sspm_a sspm.img
    fastboot flash sspm_b sspm.img
    fastboot flash cam_vpu1_a cam_vpu1.img
    fastboot flash cam_vpu1_b cam_vpu1.img
    fastboot flash cam_vpu2_a cam_vpu2.img
    fastboot flash cam_vpu2_b cam_vpu2.img
    fastboot flash cam_vpu3_a cam_vpu3.img
    fastboot flash cam_vpu3_b cam_vpu3.img
    fastboot flash vbmeta_a vbmeta.img
    fastboot flash vbmeta_b vbmeta.img
    fastboot flash oem_a oem.img
    fastboot flash oem_b oem.img
    fastboot flash logo_a logo.bin
    fastboot flash logo_b logo.bin
    fastboot flash boot_a boot.img
    fastboot flash boot_b boot.img
    fastboot flash dtb_a dtb.img
    fastboot flash dtb_b dtb.img
    fastboot flash dtbo_a dtbo.img
    fastboot flash dtbo_b dtbo.img
    fastboot flash system_a system.img_sparsechunk.0
    fastboot flash system_a system.img_sparsechunk.1
    fastboot flash system_a system.img_sparsechunk.2
    fastboot flash system_a system.img_sparsechunk.3
    fastboot flash system_a system.img_sparsechunk.4
    fastboot flash system_a system.img_sparsechunk.5
    fastboot flash system_a system.img_sparsechunk.6
    fastboot flash system_a system.img_sparsechunk.7
    fastboot flash system_a system.img_sparsechunk.8
    fastboot flash system_a system.img_sparsechunk.9
    fastboot flash system_b system_other.img_sparsechunk.0
    fastboot flash system_b system_other.img_sparsechunk.1
    fastboot flash vendor_a vendor.img_sparsechunk.0
    fastboot flash vendor_a vendor.img_sparsechunk.1
    fastboot flash vendor_b vendor.img_sparsechunk.0
    fastboot flash vendor_b vendor.img_sparsechunk.1
    fastboot erase userdata
    fastboot erase metadata
    fastboot oem fb_mode_clear
    fastboot reboot

    If you use the online flashfile.xml convertor you will get something like this.
    Which is missing many of the slot b commands.

    Code:
    fastboot getvar max-sparse-size
    fastboot oem fb_mode_set
    fastboot flash gpt PGPT
    fastboot flash preloader preloader.bin
    fastboot flash lk_a lk.img
    fastboot flash tee_a tee.img
    fastboot flash md1img_a md1img.img
    fastboot erase nvdata
    fastboot flash spmfw_a spmfw.img
    fastboot flash scp_a scp.img
    fastboot flash sspm_a sspm.img
    fastboot flash cam_vpu1_a cam_vpu1.img
    fastboot flash cam_vpu2_a cam_vpu2.img
    fastboot flash cam_vpu3_a cam_vpu3.img
    fastboot flash vbmeta_a vbmeta.img
    fastboot flash oem_a oem.img
    fastboot flash logo_a logo.bin
    fastboot flash boot_a boot.img
    fastboot flash dtb_a dtb.img
    fastboot flash dtbo_a dtbo.img
    fastboot flash system_a system.img_sparsechunk.0
    fastboot flash system_a system.img_sparsechunk.1
    fastboot flash system_a system.img_sparsechunk.2
    fastboot flash system_a system.img_sparsechunk.3
    fastboot flash system_a system.img_sparsechunk.4
    fastboot flash system_a system.img_sparsechunk.5
    fastboot flash system_a system.img_sparsechunk.6
    fastboot flash system_a system.img_sparsechunk.7
    fastboot flash system_a system.img_sparsechunk.8
    fastboot flash system_a system.img_sparsechunk.9
    fastboot flash system_a system.img_sparsechunk.10
    fastboot flash system_b system_other.img_sparsechunk.0
    fastboot flash system_b system_other.img_sparsechunk.1
    fastboot flash system_b system_other.img_sparsechunk.2
    fastboot flash vendor_a vendor.img_sparsechunk.0
    fastboot flash vendor_a vendor.img_sparsechunk.1
    fastboot erase userdata
    fastboot erase metadata
    fastboot oem fb_mode_clear
    echo -----------------------------------------------------------------------------------------------
    echo English - Process concluded!
    echo Português - Processo concluído!
    echo English - Press any key to restart the phone!
    echo Português - Pressione qualquer tecla para reiniciar o celular!
    echo -----------------------------------------------------------------------------------------------
    pause
    fastboot reboot
    exit