[Moto G 2015 Q&A, Help & Troubleshooting] bhu999:
thanks [MENTION=1006674]lost101[/MENTION] for the reply sir

but as in locked boot loader status code 2

all comments were flashing successfully but in the end on final reboot its stuck on boot loader warning logo again screen goes off again boot loader warning logo comes this process repeats

also i am not able to boot into stock recovery which agains open boot loader

following are the commands

C:\Users\Bhupesh\Desktop\Moto>fastboot flash partition gpt.bin

target reported max download size of 268435456 bytes

sending 'partition' (32 KB)...

OKAY [ 0.016s]

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.733s]

finished. total time: 0.749s

C:\Users\Bhupesh\Desktop\Moto>fastboot flash bootloader bootloader.img

target reported max download size of 268435456 bytes

sending 'bootloader' (2546 KB)...

OKAY [ 0.094s]

writing 'bootloader'...

(bootloader) flashing sbl1 ...

(bootloader) flashing aboot ...

(bootloader) flashing tz ...

(bootloader) flashing hyp ...

(bootloader) flashing rpm ...

OKAY [ 1.624s]

finished. total time: 1.718s

C:\Users\Bhupesh\Desktop\Moto>fastboot flash logo logo.bin

target reported max download size of 268435456 bytes

sending 'logo' (1352 KB)...

OKAY [ 0.047s]

writing 'logo'...

OKAY [ 0.094s]

finished. total time: 0.156s

C:\Users\Bhupesh\Desktop\Moto>fastboot flash boot boot.img

target reported max download size of 268435456 bytes

sending 'boot' (16384 KB)...

OKAY [ 0.562s]

writing 'boot'...

OKAY [ 0.938s]

finished. total time: 1.500s

C:\Users\Bhupesh\Desktop\Moto>fastboot flash recovery recovery.img

target reported max download size of 268435456 bytes

sending 'recovery' (16484 KB)...

OKAY [ 0.562s]

writing 'recovery'...

OKAY [ 0.954s]

finished. total time: 1.515s

C:\Users\Bhupesh\Desktop\Moto>fastboot flash system system.img_sparsechunk.0

target reported max download size of 268435456 bytes

sending 'system' (262142 KB)...

OKAY [ 8.713s]

writing 'system'...

OKAY [ 11.861s]

finished. total time: 20.574s

C:\Users\Bhupesh\Desktop\Moto>fastboot flash system system.img_sparsechunk.1

target reported max download size of 268435456 bytes

sending 'system' (245933 KB)...

OKAY [ 8.190s]

writing 'system'...

OKAY [ 7.958s]

finished. total time: 16.164s

C:\Users\Bhupesh\Desktop\Moto>fastboot flash system system.img_sparsechunk.2

target reported max download size of 268435456 bytes

sending 'system' (249279 KB)...

OKAY [ 8.300s]

writing 'system'...

OKAY [ 7.769s]

finished. total time: 16.069s

C:\Users\Bhupesh\Desktop\Moto>fastboot flash system system.img_sparsechunk.3

target reported max download size of 268435456 bytes

sending 'system' (262142 KB)...

OKAY [ 8.726s]

writing 'system'...

OKAY [ 9.734s]

finished. total time: 18.461s

C:\Users\Bhupesh\Desktop\Moto>fastboot flash system system.img_sparsechunk.4

target reported max download size of 268435456 bytes

sending 'system' (63875 KB)...

OKAY [ 2.150s]

writing 'system'...

OKAY [ 11.283s]

finished. total time: 13.436s

C:\Users\Bhupesh\Desktop\Moto>fastboot flash modem NON-HLOS.bin

target reported max download size of 268435456 bytes

sending 'modem' (36984 KB)...

OKAY [ 1.237s]

writing 'modem'...

OKAY [ 1.056s]

finished. total time: 2.298s

C:\Users\Bhupesh\Desktop\Moto>fastboot erase modemst1

erasing 'modemst1'...

OKAY [ 0.020s]

finished. total time: 0.020s

C:\Users\Bhupesh\Desktop\Moto>fastboot erase modemst2

erasing 'modemst2'...

OKAY [ 0.010s]

finished. total time: 0.020s

C:\Users\Bhupesh\Desktop\Moto>fastboot flash fsg fsg.mbn

target reported max download size of 268435456 bytes

sending 'fsg' (2159 KB)...

OKAY [ 0.078s]

writing 'fsg'...

OKAY [ 0.094s]

finished. total time: 0.172s

C:\Users\Bhupesh\Desktop\Moto>fastboot erase cache

erasing 'cache'...

OKAY [ 0.062s]

finished. total time: 0.062s

C:\Users\Bhupesh\Desktop\Moto>fastboot erase userdata

erasing 'userdata'...

OKAY [ 3.973s]

finished. total time: 3.976s

C:\Users\Bhupesh\Desktop\Moto>fastboot reboot

rebooting...

finished. total time: 0.008s

C:\Users\Bhupesh\Desktop\Moto>

also while

C:\Users\Bhupesh\Desktop\Moto>fastboot oem unlock

...

(bootloader) Check 'Allow OEM Unlock' in Developer Options.

FAILED (remote failure)

finished. total time: 0.017s

thanks in advance