[Xiaomi Mi A2 / 6X Questions & Answers] tombxxtra:
Hi All,

The issue i am encountering (with my mi a2 ) is the following:

Start: All was working, and i did a restart of the phone;

Effect: The phone did not start up any more and kept hanging on -android one- splash

Analysis: I can still start the phone in fastboot mode, and can still connect with ADB and fastboot

(this is correctly installed and working with my other M2 phones.. also cables are correct and using usb 2 etc..)

Problem: When flashing, every second flash command seems to fail:

example log:

E:\platform-tools>fastboot flash storsec storsec.mbn

Sending 'storsec' (48 KB) OKAY [ 0.011s]

Writing 'storsec' OKAY [ 0.001s]

Finished. Total time: 0.020s

E:\platform-tools>fastboot flash mdtpsecapp_b mdtpsecapp.img

Sending 'mdtpsecapp_b' (1057 KB) FAILED (remote: 'Error flashing partition.')

fastboot: error: Command failed

E:\platform-tools>fastboot flash mdtpsecapp_b mdtpsecapp.img

Sending 'mdtpsecapp_b' (1057 KB) OKAY [ 0.026s]

Writing 'mdtpsecapp_b' OKAY [ 0.001s]

Finished. Total time: 0.031s

E:\platform-tools>fastboot flash mdtpsecapp_a mdtpsecapp.img

Sending 'mdtpsecapp_a' (1057 KB) FAILED (remote: 'Error flashing partition.')

fastboot: error: Command failed

E:\platform-tools>fastboot flash mdtpsecapp_a mdtpsecapp.img

Sending 'mdtpsecapp_a' (1057 KB) OKAY [ 0.035s]

Writing 'mdtpsecapp_a' OKAY [ 0.000s]

Finished. Total time: 0.040s

In theory just repeating the flash commands will get it done; HOWEVER some flashes have bigger images like system

E:\platform-tools>fastboot flash system_a system.img

Sending sparse 'system_a' 1/6 (516064 KB) FAILED (remote: 'Error flashing partition.')

fastboot: error: Command failed

E:\platform-tools>fastboot flash system_a system.img

Sending sparse 'system_a' 1/6 (516064 KB) OKAY [ 11.452s]

Writing 'system_a' OKAY [ 0.000s]

Sending sparse 'system_a' 2/6 (514680 KB) FAILED (remote: 'Error flashing partition.')

fastboot: error: Command failed

After the first flashed chunk the second part fails and the link between phone and pc hangs; I need to reboot the phone in fastboot again to get control again;

(sadly i cannot directly flash part 2of 6 since its one command)

------------------------------------------

Additional findings:

When i try to boot the twrp image for my phone (below latest version)

E:\platform-tools>fastboot boot twrp-3.7.0_9-0-jasmine_sprout.img

Sending 'boot.img' (32164 KB) OKAY [ 0.738s]

Booting OKAY [ 10.315s]

Finished. Total time: 11.079s

The flash goes well (because its the first flash command) and the phone restarts to boot;

Sometimes it actually boots in the twrp menu but 98% of the times it hangs on the twrp splash screen

Additional findings:

I read something about encryption etc so i tried to wipe stuff (with wipe command)

This always seem to result in a hang on erasing cache

(COULD BE that cache is not used or available in Mi a2??)

E:\platform-tools>fastboot -w

Erasing 'userdata' OKAY [ 0.053s]

mke2fs 1.46.2 (28-Feb-2021)

Creating filesystem with 12285943 4k blocks and 3072000 inodes

Filesystem UUID: 50443726-8896-11ed-ab67-67ab2caed3b8

Superblock backups stored on blocks:

32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,

4096000, 7962624, 11239424

Allocating group tables: done

Writing inode tables: done

Creating journal (65536 blocks): done

Writing superblocks and filesystem accounting information: done

Sending 'userdata' (260 KB) OKAY [ 0.008s]

Writing 'userdata' OKAY [ 0.001s]

Erasing 'cache' ^C

------------------------------------

ALL in all i cannot get my phone to work anymore since flashing seems to hang every second flash command

This also means i cannot get a working stable STOCK rom put back on my phone;

Does anybody have some ideas or tips on how to fix this?

Personally i think there is something wrong with the memory disk inside the phone? Corrupted? Bad sectors?

Maybe i should look in the direction of formatting something?

All input / help will be appreciated;

Regards

Tom