[Moto G Power Guides, News, & Discussion] powershift:
I followed the steps to boot to the twrp image and when clicking reboot a message at the top of the screen said no os was installed. I did the reboot anyway and also booted into the phone normally just to verify and it did have an os installed. The OS loaded fine. I ran `adb reboot fastboot` to perform the flash and fastboot hits errors. It gives me an error on the first step (as well as the second).

anon@dev:~/android/builds/moto_stock_android10$ fastboot getvar max-sparse-size
getvar:max-sparse-size FAILED (remote: 'Unknown variable')
Finished. Total time: 0.001s
anon@dev:~/android/builds/moto_stock_android10$ fastboot oem fb_mode_set
FAILED (remote: 'Command not supported in default implementation')
fastboot: error: Command failed
anon@dev:~/android/builds/moto_stock_android10$

I picked boot to bootloader and that put me back at the original fastboot where I could execute fastboot commands like the getvar. But then it would't flash the bootloader again with the same error.

anon@dev:~/android/builds/moto_stock_android10$ fastboot flash bootloader bootloader.img
Sending 'bootloader' (14204 KB) OKAY [ 0.638s]
Writing 'bootloader' (bootloader) Validating 'bootloader.default.xml'
(bootloader) Preflash validation failed
(bootloader) Preflash validation failed
(bootloader) Cancelling 'bootloader.default.xml'
FAILED (remote: '')
fastboot: error: Command failed
anon@dev:~/android/builds/moto_stock_android10$

Since the fastbootd let me boot into regular fastboot, I tried the steps again but soon realized I'd be in the same situation as before. But this time I'm posting the full output. I'm not sure about switching partitions as I'm afraid I will get stuck trying to switch back to the correct partition if it fails.

This is the android 10 flash steps (minus bootloader flash since that fails validation) from fastboot:

anon@dev:~/android/builds/moto_stock_android10$ fastboot flash vbmeta vbmeta.img
fastboot flash radio radio.img
fastboot flash bluetooth BTFM.bin
fastboot flash dsp dspso.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash dtbo dtbo.img
fastboot flash recovery recovery.img
fastboot flash super super.img_sparsechunk.0
fastboot flash super super.img_sparsechunk.1
fastboot flash super super.img_sparsechunk.2
fastboot flash super super.img_sparsechunk.3
fastboot flash super super.img_sparsechunk.4
fastboot flash super super.img_sparsechunk.5
fastboot flash super super.img_sparsechunk.6
fastboot flash super super.img_sparsechunk.7
fastboot flash super super.img_sparsechunk.8
fastboot flash super super.img_sparsechunk.9
fastboot flash super super.img_sparsechunk.10
fastboot flash super super.img_sparsechunk.11
fastboot flash super super.img_sparsechunk.12
fastboot flash super super.img_sparsechunk.13
fastboot flash super super.img_sparsechunk.14
fastboot flash super super.img_sparsechunk.15
fastboot erase carrier
fastboot erase userdata
fastboot erase metadata
fastboot erase ddr
fastboot oem fb_mode_clear
Sending 'vbmeta_a' (4 KB) OKAY [ 0.002s]
Writing 'vbmeta_a' (bootloader) WARNING: vbmeta_a anti rollback downgrade, 10 vs 19
OKAY [ 0.008s]
Finished. Total time: 0.014s
Sending 'radio' (199565 KB) OKAY [ 8.389s]
Writing 'radio' (bootloader) Validating 'radio.default.xml'
(bootloader) Committing 'radio.default.xml'
(bootloader) - flashing 'NON-HLOS.bin' to 'modem'
(bootloader) - flashing 'fsg.mbn' to 'fsg'
(bootloader) - erasing 'modemst1'
(bootloader) - erasing 'modemst2'
OKAY [ 0.885s]
Finished. Total time: 9.277s
Sending 'bluetooth_a' (4608 KB) OKAY [ 0.191s]
Writing 'bluetooth_a' OKAY [ 0.026s]
Finished. Total time: 0.222s
Sending 'dsp_a' (32768 KB) OKAY [ 1.339s]
Writing 'dsp_a' OKAY [ 0.155s]
Finished. Total time: 1.495s
Sending 'logo_a' (5040 KB) OKAY [ 0.208s]
Writing 'logo_a' OKAY [ 0.028s]
Finished. Total time: 0.238s
Sending 'boot_a' (65536 KB) OKAY [ 2.695s]
Writing 'boot_a' OKAY [ 0.501s]
Finished. Total time: 3.199s
Sending 'dtbo_a' (24576 KB) OKAY [ 1.000s]
Writing 'dtbo_a' OKAY [ 0.132s]
Finished. Total time: 1.134s
Sending 'recovery_a' (65536 KB) OKAY [ 2.696s]
Writing 'recovery_a' OKAY [ 0.715s]
Finished. Total time: 3.414s
Sending 'super' (262140 KB) OKAY [ 11.207s]
Writing 'super' OKAY [ 0.058s]
Finished. Total time: 11.273s
Sending 'super' (262004 KB) OKAY [ 10.803s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 12.273s
Sending 'super' (261856 KB) OKAY [ 11.226s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 12.234s
Sending 'super' (262140 KB) OKAY [ 10.922s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 11.912s
Sending 'super' (262140 KB) OKAY [ 11.318s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 12.462s
Sending 'super' (262140 KB) OKAY [ 11.323s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 12.356s
Sending 'super' (262140 KB) OKAY [ 10.933s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 11.917s
Sending 'super' (262140 KB) OKAY [ 10.724s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 11.829s
Sending 'super' (256100 KB) OKAY [ 10.430s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 11.451s
Sending 'super' (262140 KB) OKAY [ 10.694s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 11.723s
Sending 'super' (262140 KB) OKAY [ 10.652s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 11.655s
Sending 'super' (262140 KB) OKAY [ 10.695s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 11.743s
Sending 'super' (262140 KB) OKAY [ 10.705s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 11.733s
Sending 'super' (262140 KB) OKAY [ 11.408s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 12.392s
Sending 'super' (235444 KB) OKAY [ 9.652s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 10.626s
Sending 'super' (36112 KB) OKAY [ 1.486s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 2.553s
Erasing 'carrier' OKAY [ 0.059s]
Finished. Total time: 0.140s
Erasing 'userdata' OKAY [ 0.352s]
Finished. Total time: 0.353s
Erasing 'metadata' OKAY [ 0.049s]
Finished. Total time: 0.050s
Erasing 'ddr' OKAY [ 0.064s]
Finished. Total time: 0.065s
OKAY [ 0.006s]
Finished. Total time: 0.006s
anon@dev:~/android/builds/moto_stock_android10$

After those flash steps and rebooting, the blue Motorola splash screen appears for a minute, then the splash screen blinks and the phone reboots. It will keep doing that and never boot.

This is what a successful flash of android 11 looks like:

anon@dev:~/android/builds/moto_android11_known-good$ fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash vbmeta vbmeta.img
fastboot flash radio radio.img
fastboot flash bluetooth BTFM.bin
fastboot flash dsp dspso.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash dtbo dtbo.img
fastboot flash recovery recovery.img
fastboot flash super super.img_sparsechunk.0
fastboot flash super super.img_sparsechunk.1
fastboot flash super super.img_sparsechunk.2
fastboot flash super super.img_sparsechunk.3
fastboot flash super super.img_sparsechunk.4
fastboot flash super super.img_sparsechunk.5
fastboot flash super super.img_sparsechunk.6
fastboot flash super super.img_sparsechunk.7
fastboot flash super super.img_sparsechunk.8
fastboot flash super super.img_sparsechunk.9
fastboot flash super super.img_sparsechunk.10
fastboot flash super super.img_sparsechunk.11
fastboot flash super super.img_sparsechunk.12
fastboot flash super super.img_sparsechunk.13
fastboot flash super super.img_sparsechunk.14
fastboot flash super super.img_sparsechunk.15
fastboot flash super super.img_sparsechunk.16
fastboot erase carrier
fastboot erase userdata
fastboot erase metadata
fastboot erase ddr
fastboot oem fb_mode_clear
max-sparse-size: 268435456
Finished. Total time: 0.000s
OKAY [ 0.005s]
Finished. Total time: 0.005s
Sending 'partition' (37 KB) OKAY [ 0.005s]
Writing 'partition' (bootloader) Validating 'gpt.default.xml'
(bootloader) Committing 'gpt.default.xml'
(bootloader) - flashing 'gpt_main0.bin' to 'partition:0'
OKAY [ 0.358s]
Finished. Total time: 0.364s
Sending 'bootloader' (14204 KB) OKAY [ 0.659s]
Writing 'bootloader' (bootloader) Validating 'bootloader.default.xml'
(bootloader) Committing 'bootloader.default.xml'
(bootloader) - flashing 'cmnlib.mbn' to 'cmnlib'
(bootloader) - flashing 'cmnlib64.mbn' to 'cmnlib64'
(bootloader) - flashing 'keymaster.mbn' to 'keymaster'
(bootloader) - flashing 'hyp.mbn' to 'hyp'
(bootloader) - flashing 'tz.mbn' to 'tz'
(bootloader) - flashing 'devcfg.mbn' to 'devcfg'
(bootloader) - flashing 'uefi_sec.mbn' to 'uefisecapp'
(bootloader) - flashing 'prov64.mbn' to 'prov'
(bootloader) - flashing 'rpm.mbn' to 'rpm'
(bootloader) - flashing 'abl.elf' to 'abl'
(bootloader) - flashing 'qupfw.elf' to 'qupfw'
(bootloader) - flashing 'xbl_config.elf' to 'xbl_config'
(bootloader) - flashing 'xbl.elf' to 'xbl'
OKAY [ 0.310s]
Finished. Total time: 0.972s
Sending 'vbmeta_a' (4 KB) OKAY [ 0.001s]
Writing 'vbmeta_a' OKAY [ 0.009s]
Finished. Total time: 0.014s
Sending 'radio' (199933 KB) OKAY [ 8.692s]
Writing 'radio' (bootloader) Validating 'radio.default.xml'
(bootloader) Committing 'radio.default.xml'
(bootloader) - flashing 'NON-HLOS.bin' to 'modem'
(bootloader) - flashing 'fsg.mbn' to 'fsg'
(bootloader) - erasing 'modemst1'
(bootloader) - erasing 'modemst2'
OKAY [ 0.876s]
Finished. Total time: 9.571s
Sending 'bluetooth_a' (4608 KB) OKAY [ 0.210s]
Writing 'bluetooth_a' OKAY [ 0.036s]
Finished. Total time: 0.247s
Sending 'dsp_a' (32768 KB) OKAY [ 1.416s]
Writing 'dsp_a' OKAY [ 0.150s]
Finished. Total time: 1.567s
Sending 'logo_a' (5040 KB) OKAY [ 0.224s]
Writing 'logo_a' OKAY [ 0.029s]
Finished. Total time: 0.255s
Sending 'boot_a' (65536 KB) OKAY [ 2.826s]
Writing 'boot_a' OKAY [ 0.579s]
Finished. Total time: 3.408s
Sending 'dtbo_a' (24576 KB) OKAY [ 1.009s]
Writing 'dtbo_a' OKAY [ 0.140s]
Finished. Total time: 1.152s
Sending 'recovery_a' (65536 KB) OKAY [ 2.658s]
Writing 'recovery_a' OKAY [ 0.806s]
Finished. Total time: 3.467s
Sending 'super' (262140 KB) OKAY [ 10.781s]
Writing 'super' OKAY [ 0.059s]
Finished. Total time: 10.851s
Sending 'super' (262140 KB) OKAY [ 11.494s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 12.966s
Sending 'super' (262140 KB) OKAY [ 10.741s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 11.762s
Sending 'super' (262140 KB) OKAY [ 11.367s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 12.402s
Sending 'super' (245908 KB) OKAY [ 10.289s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 11.295s
Sending 'super' (231856 KB) OKAY [ 9.780s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 10.717s
Sending 'super' (262084 KB) OKAY [ 10.990s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 11.990s
Sending 'super' (262140 KB) OKAY [ 10.781s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 11.792s
Sending 'super' (262140 KB) OKAY [ 10.733s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 11.851s
Sending 'super' (236420 KB) OKAY [ 9.672s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 10.651s
Sending 'super' (233344 KB) OKAY [ 9.536s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 10.446s
Sending 'super' (262124 KB) OKAY [ 10.760s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 11.609s
Sending 'super' (262120 KB) OKAY [ 10.724s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 11.696s
Sending 'super' (262124 KB) OKAY [ 11.174s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 12.177s
Sending 'super' (262124 KB) OKAY [ 11.010s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 11.993s
Sending 'super' (262140 KB) OKAY [ 10.774s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 11.814s
Sending 'super' (115728 KB) OKAY [ 4.729s]
Writing 'super' OKAY [ 0.001s]
Finished. Total time: 5.750s
Erasing 'carrier' OKAY [ 0.042s]
Finished. Total time: 0.582s
Erasing 'userdata' OKAY [ 0.099s]
Finished. Total time: 0.101s
Erasing 'metadata' OKAY [ 0.069s]
Finished. Total time: 0.070s
Erasing 'ddr' OKAY [ 0.044s]
Finished. Total time: 0.045s
OKAY [ 0.006s]
Finished. Total time: 0.006s
anon@dev:~/android/builds/moto_android11_known-good$

The phone is now running fresh Android 11 fine, but I still want to get Android 10 on there. Any ideas?