[Android Q&A, Help & Troubleshooting] tim_attard:
Hello all,

Really trying to root my redmi A2 and getting stuck on fastboot commands not working. adb devices/reboot bootloader works, reboots into fastboot and cmd sees device under fastboot devices but no other fastboot command works. Get the following when trying to unlock the bootloader.

The developer options are on, oem unlock on, and usb debugging on. Tried a different pc port and have succesfully just rooted and flashed a different android device.

Any ideas?

C:\platform-tools>fastboot flashing unlock

FAILED (remote: 'unknown command')

fastboot: error: Command failed

C:\platform-tools>fastboot oem unlock

FAILED (remote: 'Unlock failed, data invalid')

fastboot: error: Command failed

C:\platform-tools>fastboot getvar all

(bootloader) max-download-size: 0x8000000

(bootloader) fuse: yes

(bootloader) cpuid: 5161c656e7eca453a5a1048973658ad723cd440f

(bootloader) variant:

(bootloader) logical-block-size: 0x200

(bootloader) erase-block-size: 0x80000

(bootloader) hw-revision: ca00

(bootloader) battery-soc-ok: yes

(bootloader) battery-voltage: 3802mV

(bootloader) partition-size:sgpt: 8000

(bootloader) partition-type:sgpt: raw data

(bootloader) partition-size:flashinfo: 1000000

(bootloader) partition-type:flashinfo: raw data

(bootloader) partition-size:otp: 2b00000

(bootloader) partition-type:otp: raw data

(bootloader) partition-size:userdata: 60f0f8000

(bootloader) partition-type:userdata: f2fs

(bootloader) partition-size:vbmeta_vendor_b: 800000

(bootloader) partition-type:vbmeta_vendor_b: raw data

(bootloader) partition-size:vbmeta_system_b: 800000

(bootloader) partition-type:vbmeta_system_b: raw data

(bootloader) partition-size:vbmeta_b: 800000

(bootloader) partition-type:vbmeta_b: raw data

(bootloader) partition-size:super: e0000000

(bootloader) partition-type:super: raw data

(bootloader) partition-size:logo_b: 800000

(bootloader) partition-type:logo_b: raw data

(bootloader) partition-size:test: 200000

(bootloader) partition-type:test: raw data

(bootloader) partition-size:tee_b: 500000

(bootloader) partition-type:tee_b: raw data

(bootloader) partition-size:dtbo_b: 800000

(bootloader) partition-type:dtbo_b: raw data

(bootloader) partition-size:init_boot_b: 800000

(bootloader) partition-type:init_boot_b: raw data

(bootloader) partition-size:boot_b: 4000000

(bootloader) partition-type:boot_b: raw data

(bootloader) partition-size:lk_b: 200000

(bootloader) partition-type:lk_b: raw data

(bootloader) partition-size:gz_b: 1000000

(bootloader) partition-type:gz_b: raw data

(bootloader) partition-size:sspm_b: 100000

(bootloader) partition-type:sspm_b: raw data

(bootloader) partition-size:scp_b: 100000

(bootloader) partition-type:scp_b: raw data

(bootloader) partition-size:spmfw_b: 100000

(bootloader) partition-type:spmfw_b: raw data

(bootloader) partition-size:md1img_b: 6400000

(bootloader) partition-type:md1img_b: raw data

(bootloader) partition-size:vbmeta_vendor_a: a00000

(bootloader) partition-type:vbmeta_vendor_a: raw data

(bootloader) partition-size:vbmeta_system_a: 800000

(bootloader) partition-type:vbmeta_system_a: raw data

(bootloader) partition-size:vbmeta_a: 800000

(bootloader) partition-type:vbmeta_a: raw data

(bootloader) partition-size:logo_a: 800000

(bootloader) partition-type:logo_a: raw data

(bootloader) partition-size:tee_a: 500000

(bootloader) partition-type:tee_a: raw data

(bootloader) partition-size:dtbo_a: 800000

(bootloader) partition-type:dtbo_a: raw data

(bootloader) partition-size:init_boot_a: 800000

(bootloader) partition-type:init_boot_a: raw data

(bootloader) partition-size:boot_a: 4000000

(bootloader) partition-type:boot_a: raw data

(bootloader) partition-size:lk_a: 200000

(bootloader) partition-type:lk_a: raw data

(bootloader) partition-size:gz_a: 1000000

(bootloader) partition-type:gz_a: raw data

(bootloader) partition-size:sspm_a: 100000

(bootloader) partition-type:sspm_a: raw data

(bootloader) partition-size:scp_a: 100000

(bootloader) partition-type:scp_a: raw data

(bootloader) partition-size:spmfw_a: 100000

(bootloader) partition-type:spmfw_a: raw data

(bootloader) partition-size:md1img_a: 6400000

(bootloader) partition-type:md1img_a: raw data

(bootloader) partition-size:nvram: 4280000

(bootloader) partition-type:nvram: raw data

(bootloader) partition-size:efuse: 80000

(bootloader) partition-type:efuse: raw data

(bootloader) partition-size:proinfo: 300000

(bootloader) partition-type:proinfo: raw data

(bootloader) partition-size:sec1: 200000

(bootloader) partition-type:sec1: raw data

(bootloader) partition-size:persist: 3000000

(bootloader) partition-type:persist: ext4

(bootloader) partition-size:seccfg: 800000

(bootloader) partition-type:seccfg: raw data

(bootloader) partition-size:protect2: 85e000

(bootloader) partition-type:protect2: ext4

(bootloader) partition-size:protect1: 800000

(bootloader) partition-type:protect1: ext4

(bootloader) partition-size:metadata: 2000000

(bootloader) partition-type:metadata: raw data

(bootloader) partition-size:md_udc: 169a000

(bootloader) partition-type:md_udc: ext4

(bootloader) partition-size:nvdata: 4000000

(bootloader) partition-type:nvdata: ext4

(bootloader) partition-size:nvcfg: 2000000

(bootloader) partition-type:nvcfg: ext4

(bootloader) partition-size:frp: 100000

(bootloader) partition-type:frp: raw data

(bootloader) partition-size:rescue: 1400000

(bootloader) partition-type:rescue: raw data

(bootloader) partition-size:cust: 20000000

(bootloader) partition-type:cust: raw data

(bootloader) partition-size:ffu: 800000

(bootloader) partition-type:ffu: raw data

(bootloader) partition-size:mem: 400000

(bootloader) partition-type:mem: raw data

(bootloader) partition-size:gsort: 1000000

(bootloader) partition-type:gsort: raw data

(bootloader) partition-size:expdb: 1400000

(bootloader) partition-type:expdb: raw data

(bootloader) partition-size:para: 80000

(bootloader) partition-type:para: raw data

(bootloader) partition-size:boot_para: 100000

(bootloader) partition-type:boot_para: raw data

(bootloader) partition-size:countrycode: 200000

(bootloader) partition-type:countrycode: raw data

(bootloader) partition-size:misc: 80000

(bootloader) partition-type:misc: raw data

(bootloader) partition-size:pgpt: 8000

(bootloader) partition-type:pgpt: raw data

(bootloader) partition-size:preloader_b: 40000

(bootloader) partition-type:preloader_b: raw data

(bootloader) partition-size:preloader_a: 40000

(bootloader) partition-type:preloader_a: raw data

(bootloader) partition-size:preloader: 40000

(bootloader) partition-type:preloader: raw data

(bootloader) serialno: ----------------------

(bootloader) off-mode-charge: 1

(bootloader) warranty: no

(bootloader) unlocked: no

(bootloader) secure: yes

(bootloader) tokenversion: 2

(bootloader) crc: 1

(bootloader) kernel: lk

(bootloader) product: cloud

(bootloader) is-userspace: no

(bootloader) slot-retry-count:b: 1

(bootloader) slot-retry-count:a: 1

(bootloader) slot-unbootable:b: no

(bootloader) slot-unbootable:a: no

(bootloader) slot-successful:b: yes

(bootloader) slot-successful:a: yes

(bootloader) slot-count: 2

(bootloader) current-slot: b

(bootloader) has-slot:sgpt: no

(bootloader) has-slot:flashinfo: no

(bootloader) has-slot:otp: no

(bootloader) has-slot:userdata: no

(bootloader) has-slot:super: no

(bootloader) has-slot:test: no

(bootloader) has-slot:vbmeta_vendor: yes

(bootloader) has-slot:vbmeta_system: yes

(bootloader) has-slot:vbmeta: yes

(bootloader) has-slot:logo: yes

(bootloader) has-slot:tee: yes

(bootloader) has-slot:dtbo: yes

(bootloader) has-slot:init_boot: yes

(bootloader) has-slot:boot: yes

(bootloader) has-slot:lk: yes

(bootloader) has-slot:gz: yes

(bootloader) has-slot:sspm: yes

(bootloader) has-slot:scp: yes

(bootloader) has-slot:spmfw: yes

(bootloader) has-slot:md1img: yes

(bootloader) has-slot:nvram: no

(bootloader) has-slot:efuse: no

(bootloader) has-slot:proinfo: no

(bootloader) has-slot:sec1: no

(bootloader) has-slot:persist: no

(bootloader) has-slot:seccfg: no

(bootloader) has-slot:protect2: no

(bootloader) has-slot:protect1: no

(bootloader) has-slot:metadata: no

(bootloader) has-slot:md_udc: no

(bootloader) has-slot:nvdata: no

(bootloader) has-slot:nvcfg: no

(bootloader) has-slot:frp: no

(bootloader) has-slot:rescue: no

(bootloader) has-slot:cust: no

(bootloader) has-slot:ffu: no

(bootloader) has-slot:mem: no

(bootloader) has-slot:gsort: no

(bootloader) has-slot:expdb: no

(bootloader) has-slot:para: no

(bootloader) has-slot:boot_para: no

(bootloader) has-slot:countrycode: no

(bootloader) has-slot:misc: no

(bootloader) has-slot:pgpt: no

(bootloader) has-slot:preloader: yes

(bootloader) version-baseband: MOLY.LR12A.R3.MP.V236.4.P15

(bootloader) version-bootloader: water-1ffdc80b0-20230508144503-20230523

(bootloader) version-preloader:

(bootloader) anti: 1

(bootloader) version: 0.5

(bootloader) rpmblock_support: yes