[Moto G5S Plus Guides, News, & Discussion] tanta.yogee:
i accidentally flashed moto g5 rom on my g5s plus now i am not able to flash any stock rom as these are the errors

C:\fastboot_adb(1.0.32)_071114_r21>fastboot devices

ZY3227JMK6 fastboot

C:\fastboot_adb(1.0.32)_071114_r21>fastboot flash partition gpt.bin

target reported max download size of 536870912 bytes

sending 'partition' (45 KB)...

OKAY [ 0.007s]

writing 'partition'...

(bootloader) Validating 'gpt.default.xml'

(bootloader) Security version downgrade

(bootloader) Image primary_gpt failed validation

(bootloader) Preflash validation failed

(bootloader) Cancelling 'gpt.default.xml'

FAILED (remote failure)

finished. total time: 0.097s

C:\fastboot_adb(1.0.32)_071114_r21>fastboot flash bootloader bootloader.img

target reported max download size of 536870912 bytes

sending 'bootloader' (5115 KB)...

OKAY [ 0.118s]

writing 'bootloader'...

(bootloader) Validating 'bootloader.default.xml'

(bootloader) Committing 'bootloader.default.xml'

(bootloader) - flashing 'emmc_appsboot.mbn' to 'aboot'

(bootloader) - flashing 'rpm.mbn' to 'rpm'

(bootloader) - flashing 'tz.mbn' to 'tz'

(bootloader) - flashing 'devcfg.mbn' to 'devcfg'

(bootloader) - flashing 'cmnlib.mbn' to 'cmnlib'

(bootloader) - flashing 'cmnlib64.mbn' to 'cmnlib64'

(bootloader) - flashing 'keymaster.mbn' to 'keymaster'

(bootloader) - flashing 'prov.mbn' to 'prov'

(bootloader) - flashing 'sbl1.mbn' to 'sbl1'

OKAY [ 0.675s]

finished. total time: 0.797s

C:\fastboot_adb(1.0.32)_071114_r21>fastboot flash logo logo.bin

target reported max download size of 536870912 bytes

sending 'logo' (2192 KB)...

OKAY [ 0.053s]

writing 'logo'...

OKAY [ 0.106s]

finished. total time: 0.161s

C:\fastboot_adb(1.0.32)_071114_r21>fastboot flash boot boot.img

target reported max download size of 536870912 bytes

sending 'boot' (16384 KB)...

OKAY [ 0.378s]

writing 'boot'...

(bootloader) Image signed with key bad key

OKAY [ 0.347s]

finished. total time: 0.728s

C:\fastboot_adb(1.0.32)_071114_r21>fastboot flash recovery recovery.img

target reported max download size of 536870912 bytes

sending 'recovery' (20580 KB)...

OKAY [ 0.469s]

writing 'recovery'...

(bootloader) Image signed with key bad key

OKAY [ 0.420s]

finished. total time: 0.890s

C:\fastboot_adb(1.0.32)_071114_r21>fastboot flash dsp adspso.bin

target reported max download size of 536870912 bytes

sending 'dsp' (16384 KB)...

OKAY [ 0.354s]

writing 'dsp'...

OKAY [ 0.215s]

finished. total time: 0.572s

C:\fastboot_adb(1.0.32)_071114_r21>mfastboot oem fb_mode_set

'mfastboot' is not recognized as an internal or external command,

operable program or batch file.

C:\fastboot_adb(1.0.32)_071114_r21>fastboot flash oem oem.img

target reported max download size of 536870912 bytes

sending 'oem' (335890 KB)...

OKAY [ 7.178s]

writing 'oem'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 7.224s

C:\fastboot_adb(1.0.32)_071114_r21>fastboot flash system system.img_sparsechunk.0

target reported max download size of 536870912 bytes

sending 'system' (504257 KB)...

OKAY [ 10.803s]

writing 'system'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 10.869s

C:\fastboot_adb(1.0.32)_071114_r21>fastboot flash system system.img_sparsechunk.1

target reported max download size of 536870912 bytes

sending 'system' (503878 KB)...

OKAY [ 10.782s]

writing 'system'...

OKAY [ 4.285s]

finished. total time: 15.069s

C:\fastboot_adb(1.0.32)_071114_r21>fastboot flash system system.img_sparsechunk.2

target reported max download size of 536870912 bytes

sending 'system' (519870 KB)...

OKAY [ 11.114s]

writing 'system'...

OKAY [ 5.444s]

finished. total time: 16.560s

C:\fastboot_adb(1.0.32)_071114_r21>fastboot flash system system.img_sparsechunk.3

target reported max download size of 536870912 bytes

sending 'system' (522900 KB)...

OKAY [ 11.188s]

writing 'system'...

OKAY [ 4.110s]

finished. total time: 15.300s

C:\fastboot_adb(1.0.32)_071114_r21>fastboot flash system system.img_sparsechunk.4

target reported max download size of 536870912 bytes

sending 'system' (524018 KB)...

OKAY [ 11.216s]

writing 'system'...

OKAY [ 5.097s]

finished. total time: 16.315s

C:\fastboot_adb(1.0.32)_071114_r21>fastboot flash system system.img_sparsechunk.5

target reported max download size of 536870912 bytes

sending 'system' (482943 KB)...

OKAY [ 10.335s]

writing 'system'...

(bootloader) Invalid sparse image data

(bootloader) Failed to flash sparse image

FAILED (remote failure)

finished. total time: 12.150s

C:\fastboot_adb(1.0.32)_071114_r21>fastboot flash system system.img_sparsechunk.6

error: cannot load 'system.img_sparsechunk.6'

C:\fastboot_adb(1.0.32)_071114_r21>fastboot flash modem NON-HLOS.bin

target reported max download size of 536870912 bytes

sending 'modem' (75356 KB)...

OKAY [ 1.619s]

writing 'modem'...

OKAY [ 0.812s]

finished. total time: 2.434s

C:\fastboot_adb(1.0.32)_071114_r21>fastboot erase modemst1

erasing 'modemst1'...

OKAY [ 0.036s]

finished. total time: 0.037s

C:\fastboot_adb(1.0.32)_071114_r21>fastboot erase modemst2

erasing 'modemst2'...

OKAY [ 0.035s]

finished. total time: 0.036s

C:\fastboot_adb(1.0.32)_071114_r21>fastboot flash fsg fsg.mbn

target reported max download size of 536870912 bytes

sending 'fsg' (2552 KB)...

OKAY [ 0.060s]

writing 'fsg'...

OKAY [ 0.111s]

finished. total time: 0.173s

C:\fastboot_adb(1.0.32)_071114_r21>fastboot erase cache

erasing 'cache'...

OKAY [ 0.021s]

finished. total time: 0.022s

C:\fastboot_adb(1.0.32)_071114_r21>fastboot erase userdata

erasing 'userdata'...

OKAY [ 0.297s]

finished. total time: 0.299s

C:\fastboot_adb(1.0.32)_071114_r21>fastboot erase customize

erasing 'customize'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 0.011s

C:\fastboot_adb(1.0.32)_071114_r21>fastboot erase clogo

erasing 'clogo'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 0.010s

C:\fastboot_adb(1.0.32)_071114_r21>fastboot oem fb_mode_clear

...

OKAY [ 0.004s]

finished. total time: 0.006s

please help