[X 2014 Q&A, Help & Troubleshooting] deadwolf666:
Hey, Ive received the device from a friend after he tried to unlock frp lock. For some reason he flashed a different firmware and now the device is in a bootloop.

Getvar all:

(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) version: 0.5
(bootloader) version-bootloader: 6020
(bootloader) product: victara
(bootloader) secure: yes
(bootloader) hwrev: 0x82BF
(bootloader) radio: 0x1
(bootloader) emmc: 16GB Sandisk REV=07 PRV=01 TYPE=57
(bootloader) ram: 2048MB Elpida S8 SDRAM DIE=4Gb
(bootloader) cpu: MSM8974AC ES1.1
(bootloader) serialno: ***********
(bootloader) cid: 0x0001
(bootloader) channelid: 0x84
(bootloader) uid: 64BF660E0B000000000000000000
(bootloader) unlocked: no
(bootloader) iswarrantyvoid: no
(bootloader) mot_sst: 0
(bootloader) max-download-size: 536870912
(bootloader) reason: Volume down key pressed
(bootloader) imei: **********
(bootloader) meid:
(bootloader) date: 10-30-2014
(bootloader) sku: XT1097
(bootloader) iccid: *********
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time: "Tue Sep 13 18:56:47 UTC 2016"
[B](bootloader) ro.build.fingerprint[0]: motorola/victara_att/victara:5.1/L
(bootloader) ro.build.fingerprint[1]: PES23.32-21.9-8/5:user/release-key
(bootloader) ro.build.fingerprint[2]: s
(bootloader) ro.build.version.full[0]: Blur_Version.23.221.8.victara_att[/B]
(bootloader) ro.build.version.full[1]: .att.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.045
(bootloader) version-baseband: MSM8974BP_42352121.25.09.24R DFLT_FSG
(bootloader) kernel.version[0]: Linux version 3.4.42-gdc3b1f6 (hudsoncm@
(bootloader) kernel.version[1]: ilclbld34) (gcc version 4.8 (GCC) ) #1 S
(bootloader) kernel.version[2]: MP PREEMPT Wed Sep 14 04:43:25 CDT 2016
(bootloader) sdi.git: git=MBM-NG-V60.20-0-g582b967
(bootloader) sbl1.git: git=MBM-NG-V60.20-0-g5147b20
(bootloader) rpm.git: git=MBM-NG-V60.20-0-gc54d917
(bootloader) tz.git: git=MBM-NG-V60.20-0-gc8cfdbe
(bootloader) aboot.git: git=MBM-NG-V60.20-0-g78a2c4f
(bootloader) qe: qe 0/0
(bootloader) ro.carrier: att
all: listed above
finished. total time: 0.075s

After some reading and trying I understand that I cant downgrade or flash other cid.

The only firmware that does not give any error is :

XT1097_VICTARA_ATT_5.1_LPES23.32-21.9-8_cid1_CFC

with this script:

fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.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 system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
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
pause
fastboot reboot

but even with this one the phone does not boot.

what else can I try ?