[General Questions and Answers] mhshojaee:
adb and fastboot both work on my device but when fastboot: downgrade security errors and Variable not supported! :

PS C:\moto> fastboot flash partition gpt.bin

>> fastboot flash bootloader motoboot.img

>> fastboot flash logo logo.bin

>> fastboot flash boot boot.img

>> fastboot flash recovery recovery.img

>> mfastboot flash system system.img

>> fastboot flash modem NON-HLOS.bin

>> fastboot erase modemst1

>> fastboot erase modemst2

>> fastboot flash fsg fsg.mbn

>> fastboot erase cache

>> fastboot erase userdata

>> fastboot reboot

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

target reported max download size of 805306368 bytes

sending 'partition' (32 KB)...

OKAY [ 0.265s]

writing 'partition'...

FAILED (remote failure)

finished. total time: 1.160s

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

target reported max download size of 805306368 bytes

sending 'bootloader' (1604 KB)...

OKAY [ 0.426s]

writing 'bootloader'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 0.540s

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

target reported max download size of 805306368 bytes

sending 'logo' (245 KB)...

OKAY [ 0.373s]

writing 'logo'...

OKAY [ 0.999s]

finished. total time: 1.380s

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

target reported max download size of 805306368 bytes

sending 'boot' (10240 KB)...

OKAY [ 0.995s]

writing 'boot'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 2.259s

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

target reported max download size of 805306368 bytes

sending 'recovery' (10240 KB)...

OKAY [ 1.007s]

writing 'recovery'...

OKAY [ 1.862s]

finished. total time: 2.882s

(bootloader) Variable not supported!

target max-download-size: 768MB

Multi-Flash is enabled!

sending 'system' (262144 KB)...

OKAY [ 16.742s]

writing 'system'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 17.774s

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

target reported max download size of 805306368 bytes

sending 'modem' (54272 KB)...

OKAY [ 3.766s]

writing 'modem'...

OKAY [ 3.571s]

finished. total time: 7.344s

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

erasing 'modemst1'...

OKAY [ 0.501s]

finished. total time: 0.504s

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

erasing 'modemst2'...

OKAY [ 0.500s]

finished. total time: 0.503s

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

target reported max download size of 805306368 bytes

sending 'fsg' (1223 KB)...

OKAY [ 0.435s]

writing 'fsg'...

OKAY [ 0.924s]

finished. total time: 1.366s

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

erasing 'cache'...

OKAY [ 0.815s]

finished. total time: 0.817s

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

erasing 'userdata'...

OKAY [ 1.066s]

finished. total time: 1.070s

(bootloader) Variable not supported!

(bootloader) Variable not supported!

(bootloader) Variable not supported!

rebooting...

still stuck on boot loop...