[Xiaomi Mi 4i] duniatri:
At the end, I found out I have to use deep flash cable, and managed to make my device detected again by MiFlash.

At MiFlash I choose 'clean all', and finished successfully.

But when I restarted my phone, it was directly went to fastboot mode again :(

here is the log from MiFlash:

[0,00 951ae93b]:image path:\\Mac\Home\Desktop\mia1\mi4i\ferrari_global_images_V8.5.3.0.LXIMIED_20170926.0000.00_5.0_global

[0,01 951ae93b]:env android path:C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android

[0,01 951ae93b]:script :\\Mac\Home\Desktop\mia1\mi4i\ferrari_global_images_V8.5.3.0.LXIMIED_20170926.0000.00_5.0_global\flash_all.bat

[0,03 951ae93b]:Physical Memory Usage:2142208 Byte

[0,08 951ae93b]:C:\XiaoMi\XiaoMiFlash>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b getvar product 2>&1 | findstr /r /c:"^product: *MSM8916" || echo Missmatching image and device

[0,25 951ae93b]:product: MSM8916

[0,25 951ae93b]:C:\XiaoMi\XiaoMiFlash>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b getvar product 2>&1 | findstr /r /c:"^product: *MSM8916" || exit /B 1

[0,28 951ae93b]:product: MSM8916

[0,28 951ae93b]:C:\XiaoMi\XiaoMiFlash>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b getvar soc_id 2>&1 | findstr /r /c:"^soc_id: *239" || echo Missmatching image and device in soc_id

[0,30 951ae93b]:soc_id: 239

[0,31 951ae93b]:C:\XiaoMi\XiaoMiFlash>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b getvar soc_id 2>&1 | findstr /r /c:"^soc_id: *239" || exit /B 1

[0,33 951ae93b]:soc_id: 239

[0,34 951ae93b]:C:\XiaoMi\XiaoMiFlash>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b flash tz \\Mac\Home\Desktop\mia1\mi4i\ferrari_global_images_V8.5.3.0.LXIMIED_20170926.0000.00_5.0_global\images\tz.mbn

[0,39 951ae93b]:target reported max download size of 268435456 bytes

[0,39 951ae93b]:sending 'tz' (496 KB)...

[0,39 951ae93b]:C:\XiaoMi\XiaoMiFlash>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b flash tzbak \\Mac\Home\Desktop\mia1\mi4i\ferrari_global_images_V8.5.3.0.LXIMIED_20170926.0000.00_5.0_global\images\tz.mbn

[0,41 951ae93b]:writing 'tz'...

[0,41 951ae93b]:eek:KAY [ 0.016s]

[0,41 951ae93b]:finished. total time: 0.032s

[0,45 951ae93b]:target reported max download size of 268435456 bytes

[0,45 951ae93b]:sending 'tzbak' (496 KB)...

[0,45 951ae93b]:C:\XiaoMi\XiaoMiFlash>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b flash hyp \\Mac\Home\Desktop\mia1\mi4i\ferrari_global_images_V8.5.3.0.LXIMIED_20170926.0000.00_5.0_global\images\hyp.mbn

[0,47 951ae93b]:writing 'tzbak'...

[0,48 951ae93b]:eek:KAY [ 0.016s]

[0,48 951ae93b]:finished. total time: 0.032s

[0,50 951ae93b]:target reported max download size of 268435456 bytes

[0,50 951ae93b]:C:\XiaoMi\XiaoMiFlash>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b flash hypbak \\Mac\Home\Desktop\mia1\mi4i\ferrari_global_images_V8.5.3.0.LXIMIED_20170926.0000.00_5.0_global\images\hyp.mbn

[0,50 951ae93b]:eek:KAY [ -0.000s]

[0,51 951ae93b]:writing 'hyp'...

[0,51 951ae93b]:eek:KAY [ -0.000s]

[0,53 951ae93b]:finished. total time: -0.000s

[0,53 951ae93b]:target reported max download size of 268435456 bytes

[0,53 951ae93b]:sending 'hypbak' (72 KB)...

[0,55 951ae93b]:eek:KAY [ 0.016s]

[0,55 951ae93b]:C:\XiaoMi\XiaoMiFlash>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b flash sbl1 \\Mac\Home\Desktop\mia1\mi4i\ferrari_global_images_V8.5.3.0.LXIMIED_20170926.0000.00_5.0_global\images\sbl1.mbn

[0,55 951ae93b]:eek:KAY [ 0.000s]

[0,56 951ae93b]:finished. total time: 0.016s

[0,59 951ae93b]:target reported max download size of 268435456 bytes

[0,59 951ae93b]:sending 'sbl1' (281 KB)...

[0,59 951ae93b]:eek:KAY [ 0.016s]

lash>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b flash sbl1bak \\Mac\Home\Desktop\mia1\mi4i\ferrari_global_images_V8.5.3.0.LXIMIED_20170926.0000.00_5.0_global\images\sbl1.mbn

[0,61 951ae93b]:writing 'sbl1'...

[0,61 951ae93b]:eek:KAY [ 0.000s]

[0,62 951ae93b]:finished. total time: 0.016s

[0,64 951ae93b]:target reported max download size of 268435456 bytes

[0,64 951ae93b]:sending 'sbl1bak' (281 KB)...

[0,64 951ae93b]:eek:KAY [ -0.000s]

lash>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b flash rpm \\Mac\Home\Desktop\mia1\mi4i\ferrari_global_images_V8.5.3.0.LXIMIED_20170926.0000.00_5.0_global\images\rpm.mbn

[0,66 951ae93b]:writing 'sbl1bak'...

[0,66 951ae93b]:eek:KAY [ 0.016s]

[0,66 951ae93b]:finished. total time: 0.016s

[0,69 951ae93b]:target reported max download size of 268435456 bytes

[0,69 951ae93b]:sending 'rpm' (155 KB)...

[0,70 951ae93b]:eek:KAY [ -0.000s]

[0,70 951ae93b]:C:\XiaoMi\XiaoMiFlash>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b flash rpmbak \\Mac\Home\Desktop\mia1\mi4i\ferrari_global_images_V8.5.3.0.LXIMIED_20170926.0000.00_5.0_global\images\rpm.mbn

[0,70 951ae93b]:writing 'rpm'...

[0,70 951ae93b]:eek:KAY [ 0.016s]

[0,72 951ae93b]:finished. total time: 0.016s

[0,73 951ae93b]:target reported max download size of 268435456 bytes

[0,73 951ae93b]:sending 'rpmbak' (155 KB)...

[0,73 951ae93b]:eek:KAY [ -0.000s]

[0,75 951ae93b]:writing 'rpmbak'...

>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b flash modem \\Mac\Home\Desktop\mia1\mi4i\ferrari_global_images_V8.5.3.0.LXIMIED_20170926.0000.00_5.0_global\images\NON-HLOS.bin

[0,75 951ae93b]:eek:KAY [ -0.000s]

[0,75 951ae93b]:finished. total time: -0.000s

[3,08 951ae93b]:target reported max download size of 268435456 bytes

[3,09 951ae93b]:sending 'modem' (51329 KB)...

[3,09 951ae93b]:eek:KAY [ 1.609s]

[3,09 951ae93b]:writing 'modem'...

[3,11 951ae93b]:eek:KAY [ 0.579s]

lash>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b flash aboot \\Mac\Home\Desktop\mia1\mi4i\ferrari_global_images_V8.5.3.0.LXIMIED_20170926.0000.00_5.0_global\images\emmc_appsboot.mbn

[3,11 951ae93b]:finished. total time: 2.188s

[3,22 951ae93b]:target reported max download size of 268435456 bytes

[3,23 951ae93b]:sending 'aboot' (2117 KB)...

[3,23 951ae93b]:eek:KAY [ 0.078s]

lash>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b flash abootbak \\Mac\Home\Desktop\mia1\mi4i\ferrari_global_images_V8.5.3.0.LXIMIED_20170926.0000.00_5.0_global\images\emmc_appsboot.mbn

[3,23 951ae93b]:writing 'aboot'...

[3,25 951ae93b]:eek:KAY [ 0.016s]

[3,25 951ae93b]:finished. total time: 0.094s

[3,36 951ae93b]:target reported max download size of 268435456 bytes

[3,36 951ae93b]:sending 'abootbak' (2117 KB)...

[3,36 951ae93b]:eek:KAY [ 0.078s]

[3,37 951ae93b]:writing 'abootbak'...

[3,37 951ae93b]:eek:KAY [ 0.032s]

lash>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b erase boot

[3,37 951ae93b]:finished. total time: 0.110s

[3,41 951ae93b]:erasing 'boot'...

[3,41 951ae93b]:eek:KAY [ -0.000s]

[3,41 951ae93b]:C:\XiaoMi\XiaoMiFlash>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b erase sec

[3,41 951ae93b]:finished. total time: -0.000s

[3,44 951ae93b]:erasing 'sec'...

[3,44 951ae93b]:eek:KAY [ 0.016s]

lash>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b erase config

[3,45 951ae93b]:finished. total time: 0.016s

[3,47 951ae93b]:erasing 'config'...

[3,47 951ae93b]:eek:KAY [ 0.016s]

[3,47 951ae93b]:finished. total time: 0.016s

mi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b flash misc \\Mac\Home\Desktop\mia1\mi4i\ferrari_global_images_V8.5.3.0.LXIMIED_20170926.0000.00_5.0_global\images\misc.img

[3,50 951ae93b]:target reported max download size of 268435456 bytes

[3,50 951ae93b]:sending 'misc' (8 KB)...

[3,50 951ae93b]:C:\XiaoMi\XiaoMiFlash>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b flash system \\Mac\Home\Desktop\mia1\mi4i\ferrari_global_images_V8.5.3.0.LXIMIED_20170926.0000.00_5.0_global\images\system.img

[3,50 951ae93b]:eek:KAY [ 0.000s]

[3,51 951ae93b]:writing 'misc'...

[3,51 951ae93b]:eek:KAY [ 0.016s]

[3,53 951ae93b]:finished. total time: 0.016s

[76,73 951ae93b]:target reported max download size of 268435456 bytes

[76,75 951ae93b]:erasing 'system'...

[76,75 951ae93b]:eek:KAY [ 1.860s]

[76,75 951ae93b]:sending sparse 'system' (259690 KB)...

[76,76 951ae93b]:eek:KAY [ 8.953s]

[76,78 951ae93b]:writing 'system'...

[76,78 951ae93b]:eek:KAY [ 2.923s]

[76,78 951ae93b]:sending sparse 'system' (257635 KB)...

[76,78 951ae93b]:eek:KAY [ 9.874s]

[76,80 951ae93b]:writing 'system'...

[76,80 951ae93b]:eek:KAY [ 2.938s]

[76,80 951ae93b]:sending sparse 'system' (257636 KB)...

[76,81 951ae93b]:eek:KAY [ 9.250s]

[76,81 951ae93b]:writing 'system'...

[76,81 951ae93b]:eek:KAY [ 2.938s]

[76,83 951ae93b]:sending sparse 'system' (257635 KB)...

[76,83 951ae93b]:eek:KAY [ 9.094s]

[76,83 951ae93b]:writing 'system'...

[76,84 951ae93b]:eek:KAY [ 2.938s]

[76,84 951ae93b]:sending sparse 'system' (256334 KB)...

[76,84 951ae93b]:eek:KAY [ 8.985s]

[76,86 951ae93b]:writing 'system'...

[76,86 951ae93b]:eek:KAY [ 2.968s]

[76,86 951ae93b]:sending sparse 'system' (43144 KB)...

[76,87 951ae93b]:eek:KAY [ 1.516s]

[76,87 951ae93b]:writing 'system'...

[76,87 951ae93b]:eek:KAY [ 0.484s]

[76,89 951ae93b]:finished. total time: 64.719s

i\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b flash cache \\Mac\Home\Desktop\mia1\mi4i\ferrari_global_images_V8.5.3.0.LXIMIED_20170926.0000.00_5.0_global\images\cache.img

[77,33 951ae93b]:target reported max download size of 268435456 bytes

[77,33 951ae93b]:erasing 'cache'...

[77,34 951ae93b]:eek:KAY [ 0.000s]

lash>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b flash userdata \\Mac\Home\Desktop\mia1\mi4i\ferrari_global_images_V8.5.3.0.LXIMIED_20170926.0000.00_5.0_global\images\userdata.img

[77,34 951ae93b]:sending 'cache' (8336 KB)...

[77,36 951ae93b]:eek:KAY [ 0.281s]

[77,36 951ae93b]:writing 'cache'...

[77,37 951ae93b]:eek:KAY [ 0.094s]

[77,39 951ae93b]:finished. total time: 0.375s

[100,30 951ae93b]:target reported max download size of 268435456 bytes

[100,30 951ae93b]:erasing 'userdata'...

[100,31 951ae93b]:eek:KAY [ 0.062s]

[100,31 951ae93b]:sending sparse 'userdata' (256033 KB)...

[100,31 951ae93b]:eek:KAY [ 9.954s]

[100,31 951ae93b]:writing 'userdata'...

[100,33 951ae93b]:eek:KAY [ 2.923s]

[100,33 951ae93b]:sending sparse 'userdata' (177378 KB)...

[100,33 951ae93b]:eek:KAY [ 5.952s]

[100,34 951ae93b]:writing 'userdata'...

[100,34 951ae93b]:eek:KAY [ 2.001s]

[100,34 951ae93b]:finished. total time: 20.892s

[100,37 951ae93b]:C:\XiaoMi\XiaoMiFlash>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b flash recovery \\Mac\Home\Desktop\mia1\mi4i\ferrari_global_images_V8.5.3.0.LXIMIED_20170926.0000.00_5.0_global\images\recovery.img

[101,52 951ae93b]:target reported max download size of 268435456 bytes

[101,52 951ae93b]:sending 'recovery' (24752 KB)...

[101,53 951ae93b]:eek:KAY [ 0.781s]

[101,53 951ae93b]:C:\XiaoMi\XiaoMiFlash>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b flash boot \\Mac\Home\Desktop\mia1\mi4i\ferrari_global_images_V8.5.3.0.LXIMIED_20170926.0000.00_5.0_global\images\boot.img

[101,53 951ae93b]:eek:KAY [ 0.282s]

[101,55 951ae93b]:finished. total time: 1.063s

[102,55 951ae93b]:target reported max download size of 268435456 bytes

[102,55 951ae93b]:sending 'boot' (22174 KB)...

[102,56 951ae93b]:C:\XiaoMi\XiaoMiFlash>"C:\Xiaomi\XiaoMiFlash\Source\ThirdParty\Google\Android\fastboot.exe" -s 951ae93b reboot

[102,56 951ae93b]:eek:KAY [ 0.703s]

[102,58 951ae93b]:writing 'boot'...

[102,59 951ae93b]:eek:KAY [ 0.250s]

[102,59 951ae93b]:finished. total time: 0.953s

[102,61 951ae93b]:rebooting...

[102,61 951ae93b]:process exit.

[102,62 951ae93b]:flash done

Anybody know what's wrong? Why I can't boot into system?

Then I tried to use MiPCSuite. Again, my device was recognised in fastboot mode, and MiPCSuite automatically downloaded the latest stable MIUI ROM + flashed it to my phone.

But the result was still the same, when I restarted my phone, it went directly to fastboot mode.

What's happened to my phone? :(