[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] PSMDRT:
Hi. I've tried flashing the following commands one by one as suggested here

fastboot oem fb_mode_set

fastboot flash partition gpt.bin

fastboot flash bootloader bootloader.img

fastboot flash logo logo.bin

fastboot flash boot boot.img

fastboot flash recovery recovery.img

fastboot flash dsp adspso.bin

fastboot flash oem oem.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 modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbn

fastboot erase cache

fastboot erase userdata

fastboot erase customize

fastboot erase clogo

fastboot oem fb_mode_clear

fastboot reboot

Here is the output I got.

Microsoft Windows [Version 10.0.15063]

(c) 2017 Microsoft Corporation. All rights reserved.

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem fb_mode_set

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

...

OKAY [ 0.016s]

finished. total time: 0.016s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash partition gpt.bin

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:partition: not found

target reported max download size of 536870912 bytes

sending 'partition' (45 KB)...

OKAY [ -0.000s]

writing 'partition'...

(bootloader) Validating 'gpt.default.xml'

(bootloader) Committing 'gpt.default.xml'

(bootloader) - flashing 'gpt_main0.bin' to 'partition:0'

(bootloader) Flashing primary GPT image...

(bootloader) Flashing backup GPT image...

OKAY [ 0.188s]

finished. total time: 0.188s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash bootloader bootloader.img

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:bootloader: not found

target reported max download size of 536870912 bytes

sending 'bootloader' (5115 KB)...

OKAY [ 0.172s]

writing 'bootloader'...

(bootloader) Validating 'bootloader.default.xml'

(bootloader) Security version downgrade

(bootloader) Image tz failed validation

(bootloader) Preflash validation failed

(bootloader) Security version downgrade

(bootloader) Image devcfg failed validation

(bootloader) Preflash validation failed

(bootloader) Cancelling 'bootloader.default.xml'

FAILED (remote failure)

finished. total time: 0.474s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash logo logo.bin

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:logo: not found

target reported max download size of 536870912 bytes

sending 'logo' (2186 KB)...

OKAY [ 0.063s]

writing 'logo'...

OKAY [ 0.063s]

finished. total time: 0.141s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash boot boot.img

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:boot: not found

target reported max download size of 536870912 bytes

sending 'boot' (16384 KB)...

OKAY [ 0.552s]

writing 'boot'...

(bootloader) Image signed with key bad key

OKAY [ 0.308s]

finished. total time: 0.864s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash recovery recovery.img

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:recovery: not found

target reported max download size of 536870912 bytes

sending 'recovery' (20580 KB)...

OKAY [ 0.687s]

writing 'recovery'...

(bootloader) Image signed with key bad key

OKAY [ 0.431s]

finished. total time: 1.120s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash dsp adspso.bin

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:dsp: not found

target reported max download size of 536870912 bytes

sending 'dsp' (16384 KB)...

OKAY [ 0.533s]

writing 'dsp'...

OKAY [ 0.175s]

finished. total time: 0.712s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash oem oem.img

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:oem: not found

target reported max download size of 536870912 bytes

sending 'oem' (94831 KB)...

OKAY [ 3.015s]

writing 'oem'...

OKAY [ 0.754s]

finished. total time: 3.786s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.0

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:system: not found

target reported max download size of 536870912 bytes

sending 'system' (517379 KB)...

OKAY [ 16.527s]

writing 'system'...

OKAY [ 4.168s]

finished. total time: 20.696s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.1

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:system: not found

target reported max download size of 536870912 bytes

sending 'system' (500979 KB)...

OKAY [ 16.014s]

writing 'system'...

OKAY [ 4.084s]

finished. total time: 20.098s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.2

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:system: not found

target reported max download size of 536870912 bytes

sending 'system' (523539 KB)...

OKAY [ 16.705s]

writing 'system'...

OKAY [ 3.706s]

finished. total time: 20.411s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.3

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:system: not found

target reported max download size of 536870912 bytes

sending 'system' (506655 KB)...

OKAY [ 16.171s]

writing 'system'...

OKAY [ 3.825s]

finished. total time: 19.996s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.4

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:system: not found

target reported max download size of 536870912 bytes

sending 'system' (444811 KB)...

OKAY [ 14.185s]

writing 'system'...

OKAY [ 3.462s]

finished. total time: 17.662s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash modem NON-HLOS.bin

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:modem: not found

target reported max download size of 536870912 bytes

sending 'modem' (75160 KB)...

OKAY [ 2.409s]

writing 'modem'...

OKAY [ 0.640s]

finished. total time: 3.051s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase modemst1

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:modemst1: not found

erasing 'modemst1'...

OKAY [ 0.031s]

finished. total time: 0.031s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase modemst2

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:modemst2: not found

erasing 'modemst2'...

OKAY [ 0.031s]

finished. total time: 0.031s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash fsg fsg.mbn

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:fsg: not found

target reported max download size of 536870912 bytes

sending 'fsg' (2500 KB)...

OKAY [ 0.094s]

writing 'fsg'...

OKAY [ 0.077s]

finished. total time: 0.171s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase cache

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:cache: not found

erasing 'cache'...

OKAY [ 0.016s]

finished. total time: 0.016s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase userdata

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:userdata: not found

erasing 'userdata'...

OKAY [ 0.063s]

finished. total time: 0.063s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase customize

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:customize: not found

erasing 'customize'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 0.016s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot erase clogo

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:clogo: not found

erasing 'clogo'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 0.016s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem fb_mode_clear

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

...

OKAY [ -0.000s]

finished. total time: 0.016s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot reboot

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

rebooting...

finished. total time: 0.031s

C:\Program Files (x86)\Minimal ADB and Fastboot>

I don't think this has worked for me because all I can see is this response on loop. Th device isn't booting properly.

[IMG="Image for representation purpose only"]https://forums.lenovo.com/lnv/attachments/lnv/230/6035/1/IMG-20170528-WA0015.jpg[/IMG]