[Moto G Original Android Development] suhridkhan:
I am posting here a detailed description of what's going on with my phone ( Moto G 4g LTE XT1045 US). Maybe somebody might be able to help. :fingers-crossed:

It gives the 'Preflash validation' error...

To start over, I used the 'bootloader broker' script... It gives few error, but bootloader breaks successfully !

if you want to broke your bootloader push one key
Press any key to continue . . .
target max-sparse-size: 256MB
sending 'fsg' (102 KB)...
OKAY [ 0.031s]
writing 'fsg'...
OKAY [ 5.594s]
finished. total time: 5.625s
target max-sparse-size: 256MB
sending 'rpm' (200 KB)...
OKAY [ 0.031s]
writing 'rpm'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.328s
target max-sparse-size: 256MB
sending 'sbl1' (264 KB)...
OKAY [ 0.063s]
writing 'sbl1'...
OKAY [ 0.063s]
finished. total time: 0.125s
target max-sparse-size: 256MB
sending 'sdi' (32 KB)...
OKAY [ 0.063s]
writing 'sdi'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.375s
target max-sparse-size: 256MB
sending 'tz' (400 KB)...
OKAY [ 0.078s]
writing 'tz'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.422s
rebooting...

finished. total time: 0.000s
Bootloader broken YAY!
Press any key to continue . . .

Installing the driver part went smoothly. It was originally on 4.4.3, the only firmware available for this version. There is no MBM-Cl tool for 4.4.3 on the OP, I tried both 4.4.2 and 4.4.4 . The later seemed to work and the phone booted in fastboot mode, in locked bootloader status code zero.

Including both of them here

C:\Users\suhrid\Desktop\Save\MBM-CI_4.4.2>.\qboot.exe blank-flash
opening device: \\.\COM4
OKAY [ 0.002s]
greeting device for command mode
OKAY [ 0.001s]
identifying device
...serial = 0xACEA5C
...chip-id = 0x805 (MSM8926)
...chip-rev = 0x0
...sv-sbl = 0x0
OKAY [ 0.005s]
finding files
...programmer = programmer.mbn
...singleimage = singleimage.bin
OKAY [ 0.003s]
validating files
OKAY [ 0.017s]
switching to download mode
OKAY [ 0.001s]
greeting device for image downloading
OKAY [ 0.001s]
sending programmer
OKAY [ 0.012s]
flashing singleimage
FAILED (blank-flash:sdl-transfer-image:sdl-hello:error sending packet)
C:\Users\suhrid\Desktop\Save\MBM-CI_4.4.2>pause
Press any key to continue . . .

C:\Users\suhrid\Desktop\Save\MBM-CI_4.4.4>.\qboot.exe blank-flash
opening device: \\.\COM4
OKAY [ 0.000s]
greeting device for command mode
OKAY [ 0.000s]
identifying device
...serial = 0xACEA5C
...chip-id = 0x805 (MSM8926)
...chip-rev = 0x0
...sv-sbl = 0x0
OKAY [ 0.000s]
finding files
...programmer = programmer_8926.mbn
...singleimage = singleimage_8926.bin
OKAY [ 0.016s]
validating files
OKAY [ 0.000s]
switching to download mode
OKAY [ -0.000s]
greeting device for image downloading
OKAY [ -0.000s]
sending programmer
OKAY [ 0.016s]
flashing singleimage
100%
OKAY [ 4.664s]
rebooting target
OKAY [ -0.000s]
finished. total time: 4.727s
C:\Users\suhrid\Desktop\Save\MBM-CI_4.4.4>pause
Press any key to continue . . .

The problem is that the next step 'flashing bootloader' doesn't work, not within the MBM-CL tool or in the in the firmware.

So I went ahead and went to the next step. Flashing the partition table for my original US 4.4.3 firmware doesn't work at all (maybe because I used the MBM-CL tool for the 4.4.4 version?). Gives that Preflash validation error. So I tried the EU 4.4.4 firmware, and in this case the partition table flashes okay, but after that while flashing the boot.img gives the same error.

G:\Moto G 4g\RET-US-4.4.3>mfastboot flash partition gpt.bin
target max-sparse-size: 256MB
sending 'partition' (32 KB)...
OKAY [ 0.031s]
writing 'partition'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.359s

G:\Moto G 4g\RET-EU-4.4.4>mfastboot flash partition gpt.bin
target max-sparse-size: 256MB
sending 'partition' (32 KB)...
OKAY [ 0.047s]
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
(bootloader) Flashing primary GPT image...
(bootloader) Flashing backup GPT image...
OKAY [ 0.391s]
finished. total time: 0.438s

G:\Moto G 4g\RET-EU-4.4.4>mfastboot flash motoboot motoboot.img
target max-sparse-size: 256MB
sending 'motoboot' (1953 KB)...
OKAY [ 0.109s]
writing 'motoboot'...
(bootloader) flashing tz ...
(bootloader) flashing rpm ...
(bootloader) flashing sdi ...
(bootloader) flashing aboot ...
(bootloader) flashing sbl1 ...
OKAY [ 1.297s]
finished. total time: 1.406s

G:\Moto G 4g\RET-EU-4.4.4>mfastboot flash logo logo.bin
target max-sparse-size: 256MB
sending 'logo' (1060 KB)...
OKAY [ 0.094s]
writing 'logo'...
OKAY [ 0.109s]
finished. total time: 0.203s

G:\Moto G 4g\RET-EU-4.4.4>mfastboot flash boot boot.img
target max-sparse-size: 256MB
sending 'boot' (10240 KB)...
OKAY [ 0.406s]
writing 'boot'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.422s

I am also including the result log of 'getvar all' before and after the partition table.

before

mfastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 4113(*)
(bootloader) product: peregrine
(bootloader) secure: yes
(bootloader) hwrev: 0x82D0
(bootloader) radio: 0x1
(bootloader) emmc: 8GB Sandisk REV=06 PRV=07 TYPE=17
(bootloader) ram: 1024MB Samsung S4 SDRAM DIE=4Gb
(bootloader) cpu: MSM8926
(bootloader) serialno: fef62f
(bootloader) cid: 0xFFFF
(bootloader) channelid: 0xDEAD
(bootloader) uid: 5CEAAC0015000000000000000000
(bootloader) unlocked: Not supported
(bootloader) iswarrantyvoid: Not supported
(bootloader) mot_sst: 8
(bootloader) max-download-size: 536870912
(bootloader) reason: Failed to initialize partition table
(bootloader) imei:
(bootloader) meid:
(bootloader) date:
(bootloader) sku:
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time:
(bootloader) ro.build.fingerprint:
(bootloader) ro.build.version.full:
(bootloader) ro.build.version.qcom:
(bootloader) version-baseband:
(bootloader) kernel.version:
(bootloader) sdi.git:
(bootloader) sbl1.git:
(bootloader) rpm.git:
(bootloader) tz.git:
(bootloader) aboot.git: git=MBM-NG-V41.13-0-g7dc8e78
(bootloader) qe:
(bootloader) ro.carrier:
all: listed above
finished. total time: 0.047s

after

mfastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 4113(*)
(bootloader) product: peregrine
(bootloader) secure: yes
(bootloader) hwrev: 0x82D0
(bootloader) radio: 0x1
(bootloader) emmc: 8GB Sandisk REV=06 PRV=07 TYPE=17
(bootloader) ram: 1024MB Samsung S4 SDRAM DIE=4Gb
(bootloader) cpu: MSM8926
(bootloader) serialno: TA95000QIY
(bootloader) cid: 0xFFFF
(bootloader) channelid: 0xDEAD
(bootloader) uid: 5CEAAC0015000000000000000000
(bootloader) unlocked: Not supported
(bootloader) iswarrantyvoid: Not supported
(bootloader) mot_sst: 8
(bootloader) max-download-size: 536870912
(bootloader) reason: Failed to initialize partition table
(bootloader) imei:
(bootloader) meid:
(bootloader) date:
(bootloader) sku:
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time: "Thu Jan 1 7:31:42 UTC 1970"
(bootloader) ro.build.fingerprint[0]: motorola/peregrine_retus/peregrine
(bootloader) ro.build.fingerprint[1]: :4.4.3/KXB21.14-L1.23-4/1:user/rel
(bootloader) ro.build.fingerprint[2]: ease-keys
(bootloader) ro.build.version.full[0]: Blur_Version.21.23.4.peregrine_re
(bootloader) ro.build.version.full[1]: tus.retus.en.US
(bootloader) ro.build.version.qcom[0]: AU_LINUX_ANDROID_LNX.LA.3.5.1_RB1
(bootloader) ro.build.version.qcom[1]: .04.04.02.048.020
(bootloader) version-baseband:
(bootloader) kernel.version[0]: Linux version 3.4.42-gbdf1753-00001-g7a4
(bootloader) kernel.version[1]: 365d (hudsoncm@ilclbld31) (gcc version 4
(bootloader) kernel.version[2]: .7 (GCC) ) #1 SMP PREEMPT Fri May 23 16:
(bootloader) kernel.version[3]: 38:14 CDT 2014
(bootloader) sdi.git: git=MBM-NG-V41.13-0-gdc5aeaf
(bootloader) sbl1.git: git=MBM-NG-V41.13-0-g683cb0c
(bootloader) rpm.git: git=MBM-NG-V41.13-0-g71b1aae
(bootloader) tz.git: git=MBM-NG-V41.13-0-ga27c415
(bootloader) aboot.git: git=MBM-NG-V41.13-0-g7dc8e78
(bootloader) qe: qe 1/1
(bootloader) ro.carrier: retus
all: listed above
finished. total time: 0.094s

With my limited understanding, it looks like it's stuck somewhere between 4.4.3 and 4.4.4. :confused:

Any help/suggestion will be highly appreciated...