[Moto Z Play Guides, News, & Discussion] erick0023:
I use it command.

sudo ./qboot blank-flash singleimage.bin

See this terminal information in ubuntu 17.10.

erick@erick-Vostro-5470:~/Downloads/blankflash$ sudo ./qboot blank-flash singleimage.bin
[sudo] senha para erick:
< waiting for device >
Motorola qboot utility version 3.40
[ 0.000] Opening device: /dev/ttyUSB0
[ 0.000] Detecting device
[ 4.013] ERROR: sahara_greet_device()->change_mode()->do_hello()->IO error
[ 4.013] Check qboot_log.txt for more details
[ 4.013] Total time: 4.013s
FAILED: qb_flash_singleimage()->sahara_greet_device()->change_mode()->do_hello()->IO error
erick@erick-Vostro-5470:~/Downloads/blankflash$ sudo ./qboot blank-flash singleimage.bin
Motorola qboot utility version 3.40
[ 0.000] Opening device: /dev/ttyUSB0
[ 0.000] Detecting device
[ 4.017] ERROR: sahara_greet_device()->change_mode()->do_hello()->IO error
[ 4.017] Check qboot_log.txt for more details
[ 4.017] Total time: 4.017s
FAILED: qb_flash_singleimage()->sahara_greet_device()->change_mode()->do_hello()->IO error
erick@erick-Vostro-5470:~/Downloads/blankflash$ sudo ./qboot blank-flash singleimage.bin
Motorola qboot utility version 3.40
[ 0.000] Opening device: /dev/ttyUSB0
[ 0.000] Detecting device
[ 4.022] ERROR: sahara_greet_device()->change_mode()->do_hello()->IO error
[ 4.022] Check qboot_log.txt for more details
[ 4.022] Total time: 4.022s
FAILED: qb_flash_singleimage()->sahara_greet_device()->change_mode()->do_hello()->IO error
erick@erick-Vostro-5470:~/Downloads/blankflash$ sudo ./qboot blank-flash singleimage.bin
Motorola qboot utility version 3.40
[ 0.000] Opening device: /dev/ttyUSB0
[ 0.000] Detecting device
[ 4.043] ERROR: sahara_greet_device()->change_mode()->do_hello()->IO error
[ 4.043] Check qboot_log.txt for more details
[ 4.043] Total time: 4.043s
FAILED: qb_flash_singleimage()->sahara_greet_device()->change_mode()->do_hello()->IO error
erick@erick-Vostro-5470:~/Downloads/blankflash$ sudo ./qboot blank-flash singleimage.bin
Motorola qboot utility version 3.40
[ 0.000] Opening device: /dev/ttyUSB0
[ 0.000] Detecting device
[ 4.036] ERROR: sahara_greet_device()->change_mode()->do_hello()->IO error
[ 4.036] Check qboot_log.txt for more details
[ 4.036] Total time: 4.036s
FAILED: qb_flash_singleimage()->sahara_greet_device()->change_mode()->do_hello()->IO error
erick@erick-Vostro-5470:~/Downloads/blankflash$
erick@erick-Vostro-5470:~/Downloads/blankflash$ sudo ./qboot blank-flash singleimage.bin
Motorola qboot utility version 3.40
[ 0.000] Opening device: /dev/ttyUSB0
[ 0.000] Detecting device
[ 4.015] ERROR: sahara_greet_device()->change_mode()->do_hello()->IO error
[ 4.015] Check qboot_log.txt for more details
[ 4.015] Total time: 4.015s
FAILED: qb_flash_singleimage()->sahara_greet_device()->change_mode()->do_hello()->IO error
erick@erick-Vostro-5470:~/Downloads/blankflash$ sudo ./qboot blank-flash singleimage.bin
Motorola qboot utility version 3.40
[ 0.000] Opening device: /dev/ttyUSB0
[ 0.000] Detecting device
[ 4.023] ERROR: sahara_greet_device()->change_mode()->do_hello()->IO error
[ 4.023] Check qboot_log.txt for more details
[ 4.023] Total time: 4.023s
FAILED: qb_flash_singleimage()->sahara_greet_device()->change_mode()->do_hello()->IO error
erick@erick-Vostro-5470:~/Downloads/blankflash$ sudo ./qboot blank-flash singleimage.bin
Motorola qboot utility version 3.40
[ 0.000] Opening device: /dev/ttyUSB0
[ 0.000] Detecting device
[ 4.024] ERROR: sahara_greet_device()->change_mode()->do_hello()->IO error
[ 4.024] Check qboot_log.txt for more details
[ 4.024] Total time: 4.024s
FAILED: qb_flash_singleimage()->sahara_greet_device()->change_mode()->do_hello()->IO error
erick@erick-Vostro-5470:~/Downloads/blankflash$ sudo ./qboot blank-flash singleimage.bin
Motorola qboot utility version 3.40
[ 0.000] Opening device: /dev/ttyUSB0
[ 0.000] Detecting device
[ 4.036] ERROR: sahara_greet_device()->change_mode()->do_hello()->IO error
[ 4.036] Check qboot_log.txt for more details
[ 4.036] Total time: 4.036s
FAILED: qb_flash_singleimage()->sahara_greet_device()->change_mode()->do_hello()->IO error
erick@erick-Vostro-5470:~/Downloads/blankflash$ sudo ./qboot blank-flash singleimage.bin
Motorola qboot utility version 3.40
[ 0.000] Opening device: /dev/ttyUSB0
[ 0.000] Detecting device
[ 4.037] ERROR: sahara_greet_device()->change_mode()->do_hello()->IO error
[ 4.037] Check qboot_log.txt for more details
[ 4.037] Total time: 4.037s
FAILED: qb_flash_singleimage()->sahara_greet_device()->change_mode()->do_hello()->IO error
erick@erick-Vostro-5470:~/Downloads/blankflash$ sudo ./qboot blank-flash singleimage.bin
< waiting for device >
Motorola qboot utility version 3.40
[ 0.000] Opening device: /dev/ttyUSB0
[ 0.000] Detecting device
[ 4.029] ERROR: sahara_greet_device()->change_mode()->do_hello()->IO error
[ 4.029] Check qboot_log.txt for more details
[ 4.029] Total time: 4.029s
FAILED: qb_flash_singleimage()->sahara_greet_device()->change_mode()->do_hello()->IO error
erick@erick-Vostro-5470:~/Downloads/blankflash$ sudo ./qboot blank-flash singleimage.bin
Motorola qboot utility version 3.40
[ 0.000] Opening device: /dev/ttyUSB0
[ 0.000] Detecting device
[ 0.003] ...cpu.id = 70 (0x46)
[ 0.003] ...cpu.sn = 2551762972 (0x9818d01c)
[ 0.003] Opening singleimage
[ 0.062] Loading package
[ 0.068] ...filename = singleimage.pkg.xml
[ 0.072] Loading programmer
[ 0.074] ...filename = programmer.mbn
[ 0.074] Sending programmer
[ 0.279] Handling things over to programmer
[ 0.279] Identifying CPU version
[ 0.284] Waiting for firehose to get ready
[ 3.298] ...MSM8953 1.1
[ 3.298] Determining target secure state
[ 3.299] ...secure = yes
[ 3.310] Configuring device...
[ 3.314] Flashing GPT...
[ 3.314] Flashing partition:0 with gpt_main0.bin
[ 3.314] Initializing storage
[ 3.328] ...blksz = 512
[ 3.391] Re-initializing storage...
[ 3.391] Initializing storage
[ 3.446] Flashing bootloader...
[ 3.463] Flashing aboot with emmc_appsboot.mbn
[ 3.729] Flashing rpm with rpm.mbn
[ 3.803] Flashing tz with tz.mbn
[ 4.094] Flashing devcfg with devcfg.mbn
[ 4.124] Flashing cmnlib with cmnlib.mbn
[ 4.201] Flashing cmnlib64 with cmnlib64.mbn
[ 4.273] Flashing keymaster with keymaster.mbn
[ 4.344] Flashing prov with prov.mbn
[ 4.415] Flashing sbl1 with sbl1.mbn
[ 4.537] Rebooting to fastboot
[ 4.539] Total time: 4.539s
erick@erick-Vostro-5470:~/Downloads/blankflash$

My story

I had downgraded (LineageOS 7.1) to 6.0 (stock) which requested via OTA to upgrade to 7.0. I did. And my phone brick.

I pulled the cable out and replaced it with several button sequences and executed the command script. And one of the sequences was successful at the very moment when the command began again.

(Sorry my english)

That is, it has some sequence that starts the emergency download mode. This is what should be missing for the blankflash to work 100%.

That is, this blankflash is functional. it works! :)