[Moto G6 Plus Guides, News, & Discussion] nam2long:
Correct me if I am wrong but does this need a file called "programmer.mbn"

I rand the command below this first time and got the following error in the next code box, Then I ran the same thing with sudo per the 3rd code box but I get the error in the 4th code box. After researching I found multiple people stating it needs to be ran a bunch of times but I want to make sure I am not doing something wrong. so I have a few questions listed below the fourth code box?

1.

$ ./qboot blank-flash singleimage.bin
Motorola qboot utility version 3.86
[ 0.000] Opening device: /dev/ttyUSB0
[ 0.000] ERROR: device_open()->error opening device
[ 0.000] Check qboot_log.txt for more details
[ 0.000] Total time: 0.000s
FAILED: qb_flash_singleimage()->device_open()->error opening device

2. Error Code

**** Log buffer [000001] 2019-01-14_02:49:26 ****

[ 0.000] Opening device: /dev/ttyUSB0
[ 0.000] ERROR: device_open()->error opening device
[ 0.000] Check qboot_log.txt for more details
[ 0.000] Total time: 0.000s
[ 0.000]
[ 0.000] qboot version 3.86
[ 0.000]
[ 0.000] DEVICE {
[ 0.000] name = "/dev/ttyUSB0",
[ 0.000] flags = "0x60",
[ 0.000] addr = "0x41EF7270",
[ 0.000] serial_nix.device_pathname = "/sys/bus/usb/devices/3-2/3-2:1.0/ttyUSB0",
[ 0.000] api.bnr = "0x164CFD0",
[ 0.000] }
[ 0.000]
[ 0.000]
[ 0.000] Backup & Restore {
[ 0.000] num_entries = 0,
[ 0.000] restoring = "false",
[ 0.000] backup_error = "not started",
[ 0.000] restore_error = "not started",
[ 0.000] }
[ 0.000]

3. Re-Run with Sudo

sudo ./qboot blank-flash singleimage.bin
Motorola qboot utility version 3.86
[ 0.000] Opening device: /dev/ttyUSB0
[ 0.000] Detecting device
[ 34.624] ERROR: sahara_greet_device()->change_mode()->do_hello()->IO error
[ 34.624] Check qboot_log.txt for more details
[ 34.624] Total time: 34.624s
FAILED: qb_flash_singleimage()->sahara_greet_device()->change_mode()->do_hello()->IO error

4. Error code after second run

**** Log buffer [000001] 2019-01-14_02:53:09 ****

[ 0.000] Opening device: /dev/ttyUSB0
[ 0.000] Detecting device
[ 34.624] ERROR: sahara_greet_device()->change_mode()->do_hello()->IO error
[ 34.624] Check qboot_log.txt for more details
[ 34.624] Total time: 34.624s
[ 34.624]
[ 34.624] qboot version 3.86
[ 34.624]
[ 34.624] DEVICE {
[ 34.624] name = "/dev/ttyUSB0",
[ 34.624] flags = "0x60",
[ 34.624] addr = "0xDFF47FB0",
[ 34.624] serial_nix.device_pathname = "/sys/bus/usb/devices/3-2/3-2:1.0/ttyUSB0",
[ 34.624] api.bnr = "0x1408FD0",
[ 34.624] }
[ 34.624]
[ 34.624]
[ 34.624] Backup & Restore {
[ 34.624] num_entries = 0,
[ 34.624] restoring = "false",
[ 34.624] backup_error = "not started",
[ 34.624] restore_error = "not started",
[ 34.624] }
[ 34.624]

Questions

Do I have to keep running this thing for ever like the energizer bunny?

Should I run it on different OSes (Windows and Linux) instead of just Ubuntu 18?

Is the Programer.mbn file required for this?

Is there another way to unbrick or is this one the only way?

Is this the most upto date version? (qboot version 3.86)

P.S I have a Dual Sim Moto G6 Plus

P.S.S I reran a couple times more and got the below output:

sudo ./qboot blank-flash singleimage.bin -f force
< waiting for device >
Motorola qboot utility version 3.86
[ 0.000] Opening device: /dev/ttyUSB0
[ 0.000] Detecting device
[ 0.003] ...cpu.id = 172 (0xac)
[ 0.003] ...cpu.sn = 3826368091 (0xe411be5b)
[ 0.003] Opening singleimage
[ 0.003] Loading package
[ 0.005] ...filename = pkg.xml
[ 0.007] Loading programmer
[ 0.007] ...filename = programmer.elf
[ 0.007] Sending programmer
[ 0.181] Handling things over to programmer
[ 0.181] Identifying CPU version
[ 0.181] Waiting for firehose to get ready
[ 3.182] serial_write(), line 280: Input/output error
[ 62.009] Waiting for firehose to get ready
[123.065] ...SDM630 unknown
[123.065] Determining target secure state
[123.065] Waiting for firehose to get ready
[184.121] ...secure = no
[184.162] Initializing storage
[184.163] Waiting for firehose to get ready
[245.209] Configuring device...
[245.209] Waiting for firehose to get ready
[306.265] Waiting for firehose to get ready
[367.321] Waiting for firehose to get ready
[428.377] Waiting for firehose to get ready
[489.433] Initializing storage
[489.436] Waiting for firehose to get ready
[550.489] Configuring device...
[550.489] Waiting for firehose to get ready
[611.545] Waiting for firehose to get ready
[672.601] Waiting for firehose to get ready
[733.657] Waiting for firehose to get ready
[794.713] Waiting for firehose to get ready
[855.769] Configuring device...
[855.769] Waiting for firehose to get ready
[916.825] Waiting for firehose to get ready
[977.881] Waiting for firehose to get ready
[1038.937] Waiting for firehose to get ready
[1099.993] ERROR: do_package()->do_recipe()->do_configure()->fh_send()->get_fh()->no response
[1099.993] Check qboot_log.txt for more details
[1099.993] Total time: 1099.993s
[1099.993] There were some hiccups in backup and restore.
[1099.993] Please save the following files and see a Bootloader member.
[1099.993] 1) ./qboot_log.txt
[1099.993] 2) ./backup_0xE411BE5B_2019-01-14_032252.img
[1099.993]
FAILED: qb_flash_singleimage()->do_package()->do_recipe()->do_configure()->fh_send()->get_fh()->no response

ERROR LOG:

**** Log buffer [000001] 2019-01-14_03:19:48 ****

[ 0.000] Opening device: /dev/ttyUSB0
[ 0.000] Detecting device
[ 0.003] ...cpu.id = 172 (0xac)
[ 0.003] ...cpu.sn = 3826368091 (0xe411be5b)
[ 0.003] Opening singleimage
[ 0.003] Loading package
[ 0.005] ...filename = pkg.xml
[ 0.007] Loading programmer
[ 0.007] ...filename = programmer.elf
[ 0.007] Sending programmer
[ 0.181] Handling things over to programmer
[ 0.181] Identifying CPU version
[ 0.181] Waiting for firehose to get ready
[ 3.182] serial_write(), line 280: Input/output error
[ 62.009] Waiting for firehose to get ready
[123.065] ...SDM630 unknown
[123.065] Determining target secure state
[123.065] Waiting for firehose to get ready
[184.121] ...secure = no
[184.162] Initializing storage
[184.163] Waiting for firehose to get ready
[245.209] Configuring device...
[245.209] Waiting for firehose to get ready
[306.265] Waiting for firehose to get ready
[367.321] Waiting for firehose to get ready
[428.377] Waiting for firehose to get ready
[489.433] Initializing storage
[489.436] Waiting for firehose to get ready
[550.489] Configuring device...
[550.489] Waiting for firehose to get ready
[611.545] Waiting for firehose to get ready
[672.601] Waiting for firehose to get ready
[733.657] Waiting for firehose to get ready
[794.713] Waiting for firehose to get ready
[855.769] Configuring device...
[855.769] Waiting for firehose to get ready
[916.825] Waiting for firehose to get ready
[977.881] Waiting for firehose to get ready
[1038.937] Waiting for firehose to get ready
[1099.993] ERROR: do_package()->do_recipe()->do_configure()->fh_send()->get_fh()->no response
[1099.993] Check qboot_log.txt for more details
[1099.993] Total time: 1099.993s
[1099.993] There were some hiccups in backup and restore.
[1099.993] Please save the following files and see a Bootloader member.
[1099.993] 1) ./qboot_log.txt
[1099.993] 2) ./backup_0xE411BE5B_2019-01-14_032252.img
[1099.993]
[1099.993]
[1099.993] qboot version 3.86
[1099.993]
[1099.993] DEVICE {
[1099.993] name = "/dev/ttyUSB0",
[1099.993] flags = "0x60",
[1099.993] addr = "0x43E9FEA0",
[1099.993] serial_nix.device_pathname = "/sys/bus/usb/devices/3-2/3-2:1.0/ttyUSB0",
[1099.993] sahara.current_mode = "0",
[1099.993] api.buffer = "0x7F680F1AB010",
[1099.993] cpu.serial = "3826368091",
[1099.993] cpu.id = "172",
[1099.993] cpu.sv_sbl = "1",
[1099.993] cpu.name = "SDM630",
[1099.993] storage.type = "eMMC",
[1099.993] sahara.programmer = "programmer.elf",
[1099.993] module.firehose = "0x1AC2270",
[1099.993] cpu.ver = "0",
[1099.993] cpu.vername = "unknown",
[1099.993] api.bnr = "0x1ACFD10",
[1099.993] }
[1099.993]
[1099.993]
[1099.993] Backup & Restore {
[1099.993] num_entries = 32,
[1099.993] restoring = "false",
[1099.993] restore_error = "not started",
[1099.993] entries[00] = { skipped = 0, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="cid"},
[1099.993] entries[01] = { skipped = 0, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="frp"},
[1099.994] entries[02] = { skipped = 0, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="hw"},
[1099.994] entries[03] = { skipped = 0, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="misc"},
[1099.994] entries[04] = { skipped = 0, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="persist"},
[1099.994] entries[05] = { skipped = 0, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="utags"},
[1099.994] entries[06] = { skipped = 0, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="devinfo"},
[1099.994] entries[07] = { skipped = 0, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="sp"},
[1099.994] entries[08] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="abl_a"},
[1099.994] entries[09] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="cmnlib_a"},
[1099.994] entries[10] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="cmnlib64_a"},
[1099.994] entries[11] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="devcfg_a"},
[1099.994] entries[12] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="hyp_a"},
[1099.994] entries[13] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="keymaster_a"},
[1099.994] entries[14] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="storsec_a"},
[1099.994] entries[15] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="tz_a"},
[1099.994] entries[16] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="rpm_a"},
[1099.994] entries[17] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="pmic_a"},
[1099.994] entries[18] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="prov_a"},
[1099.994] entries[19] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="xbl_a"},
[1099.994] entries[20] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="abl_b"},
[1099.994] entries[21] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="cmnlib_b"},
[1099.994] entries[22] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="cmnlib64_b"},
[1099.994] entries[23] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="devcfg_b"},
[1099.994] entries[24] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="hyp_b"},
[1099.994] entries[25] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="keymaster_b"},
[1099.994] entries[26] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="storsec_b"},
[1099.994] entries[27] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="tz_b"},
[1099.994] entries[28] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="rpm_b"},
[1099.994] entries[29] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="pmic_b"},
[1099.994] entries[30] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="prov_b"},
[1099.994] entries[31] = { skipped = 1, backup_tried = 0, backup_failed = 0, restore_tried = 0, restore_failed = 0, name ="xbl_b"},
[1099.994] simg = {
[1099.994] filename = "backup_0xE411BE5B_2019-01-14_032252.img",
[1099.994] entries[00] = { size = 606912, name = "programmer.elf" },
[1099.994] }
[1099.994] }
[1099.994]