[Xiaomi Redmi 5A Questions & Answers] Unreal_Hawkz:
Hello everyone!!! (Please let me know if this is the correct place for posting this then I will be able to post it in the appropriate place !!!)

I have office tomorrow and due to national holidays service centre is not opening until Sunday!!! I would very gratefu if someone was to help me out.

So here it goes.. I have unlocked the bootloader using mi flash tool downloaded from http://en.miui.com/unlock/download_en.html .

After that I downloaded the fastboot global rom

ugglite_global_images_V9.2.1.0.NDFMIEK_20180102.0000.00_7.1_global_4fe773096b

(I could use playstore on Chinese rom and I am aware there are some tool/post regarding installation of playstore in Chinese rom) from http://en.miui.com/a-234.html

I used the MIFlash tool from the same site (http://en.miui.com/a-234.html) which happened to be version 2017.4.25.0...

There was a

Mismatched image error

which I solved by commenting out the first two lines of

flash_all.bat
flash_all_except_storage.bat
flash_all_lock.bat
flash_all_lock_crc.bat
flash_factory.bat

Flashing was done 100%(green progressbar)....

Now the device won't boot...no recovery...no nothing....no charging....

Although when connected to usb in windows device manager it shows

Android HS-USB QDLoader 9008 (COM20)

and in the flash tool it shows COM20.....

I am showing the log of successful flash

[11:55:27 PM 59faae62]:MiFlash 2017.4.25.0
[11:55:27 PM 59faae62]:image path:G:\Zack\u
[11:55:27 PM 59faae62]:env android path:"C:\XiaoMi\XiaoMiFlash\Source\ThirdParty\Google\Android"
[11:55:27 PM 59faae62]:script :G:\Zack\u\flash_all_lock.bat
[11:55:27 PM 59faae62]:Physical Memory Usage:909312 Byte
[11:55:27 PM 59faae62]:$REM fastboot -s 59faae62 getvar product 2>&1 | findstr /r /c:"^product: *ugglite" || echo Missmatching image and device
[11:55:27 PM 59faae62]:$REM fastboot -s 59faae62 getvar product 2>&1 | findstr /r /c:"^product: *ugglite" || exit /B 1
[11:55:27 PM 59faae62]:$fastboot -s 59faae62 flash tz G:\Zack\u\images\tz.mbn ||
[11:55:28 PM 59faae62]:target reported max download size of 535822336 bytes
[11:55:28 PM 59faae62]:sending 'tz' (1499 KB)...
[11:55:28 PM 59faae62]:eek:KAY [ 0.055s]
[11:55:28 PM 59faae62]:writing 'tz'...
[11:55:28 PM 59faae62]:eek:KAY [ 0.033s]
[11:55:28 PM 59faae62]:finished. total time: 0.088s
[11:55:28 PM 59faae62]:$fastboot -s 59faae62 flash sbl1 G:\Zack\u\images\sbl1.mbn ||
[11:55:28 PM 59faae62]:target reported max download size of 535822336 bytes
[11:55:28 PM 59faae62]:sending 'sbl1' (337 KB)...
[11:55:28 PM 59faae62]:eek:KAY [ 0.013s]
[11:55:28 PM 59faae62]:writing 'sbl1'...
[11:55:28 PM 59faae62]:eek:KAY [ 0.010s]
[11:55:28 PM 59faae62]:finished. total time: 0.024s
[11:55:28 PM 59faae62]:$fastboot -s 59faae62 flash rpm G:\Zack\u\images\rpm.mbn ||
[11:55:28 PM 59faae62]:target reported max download size of 535822336 bytes
[11:55:28 PM 59faae62]:sending 'rpm' (180 KB)...
[11:55:28 PM 59faae62]:eek:KAY [ 0.009s]
[11:55:28 PM 59faae62]:writing 'rpm'...
[11:55:28 PM 59faae62]:eek:KAY [ 0.008s]
[11:55:28 PM 59faae62]:finished. total time: 0.017s
[11:55:28 PM 59faae62]:$fastboot -s 59faae62 flash aboot G:\Zack\u\images\emmc_appsboot.mbn ||
[11:55:28 PM 59faae62]:target reported max download size of 535822336 bytes
[11:55:28 PM 59faae62]:sending 'aboot' (588 KB)...
[11:55:28 PM 59faae62]:eek:KAY [ 0.022s]
[11:55:28 PM 59faae62]:writing 'aboot'...
[11:55:28 PM 59faae62]:eek:KAY [ 0.011s]
[11:55:28 PM 59faae62]:finished. total time: 0.033s
[11:55:28 PM 59faae62]:$fastboot -s 59faae62 flash devcfg G:\Zack\u\images\devcfg.mbn ||
[11:55:28 PM 59faae62]:target reported max download size of 535822336 bytes
[11:55:28 PM 59faae62]:sending 'devcfg' (59 KB)...
[11:55:28 PM 59faae62]:eek:KAY [ 0.004s]
[11:55:28 PM 59faae62]:writing 'devcfg'...
[11:55:28 PM 59faae62]:eek:KAY [ 0.007s]
[11:55:28 PM 59faae62]:finished. total time: 0.011s
[11:55:28 PM 59faae62]:$fastboot -s 59faae62 flash keymaster G:\Zack\u\images\keymaster.mbn ||
[11:55:28 PM 59faae62]:target reported max download size of 535822336 bytes
[11:55:28 PM 59faae62]:sending 'keymaster' (220 KB)...
[11:55:28 PM 59faae62]:eek:KAY [ 0.010s]
[11:55:28 PM 59faae62]:writing 'keymaster'...
[11:55:28 PM 59faae62]:eek:KAY [ 0.008s]
[11:55:28 PM 59faae62]:finished. total time: 0.018s
[11:55:28 PM 59faae62]:$fastboot -s 59faae62 flash cmnlib G:\Zack\u\images\cmnlib.mbn ||
[11:55:28 PM 59faae62]:target reported max download size of 535822336 bytes
[11:55:28 PM 59faae62]:sending 'cmnlib' (196 KB)...
[11:55:28 PM 59faae62]:eek:KAY [ 0.009s]
[11:55:28 PM 59faae62]:writing 'cmnlib'...
[11:55:28 PM 59faae62]:eek:KAY [ 0.010s]
[11:55:28 PM 59faae62]:finished. total time: 0.019s
[11:55:28 PM 59faae62]:$fastboot -s 59faae62 flash cmnlib64 G:\Zack\u\images\cmnlib64.mbn ||
[11:55:29 PM 59faae62]:target reported max download size of 535822336 bytes
[11:55:29 PM 59faae62]:sending 'cmnlib64' (249 KB)...
[11:55:29 PM 59faae62]:eek:KAY [ 0.010s]
[11:55:29 PM 59faae62]:writing 'cmnlib64'...
[11:55:29 PM 59faae62]:eek:KAY [ 0.010s]
[11:55:29 PM 59faae62]:finished. total time: 0.020s
[11:55:29 PM 59faae62]:$fastboot -s 59faae62 flash tzbak G:\Zack\u\images\tz.mbn ||
[11:55:29 PM 59faae62]:target reported max download size of 535822336 bytes
[11:55:29 PM 59faae62]:sending 'tzbak' (1499 KB)...
[11:55:29 PM 59faae62]:eek:KAY [ 0.056s]
[11:55:29 PM 59faae62]:writing 'tzbak'...
[11:55:29 PM 59faae62]:eek:KAY [ 0.017s]
[11:55:29 PM 59faae62]:finished. total time: 0.073s
[11:55:29 PM 59faae62]:$fastboot -s 59faae62 flash sbl1bak G:\Zack\u\images\sbl1.mbn ||
[11:55:29 PM 59faae62]:target reported max download size of 535822336 bytes
[11:55:29 PM 59faae62]:$fastboot -s 59faae62 flash rpmbak G:\Zack\u\images\rpm.mbn ||
[11:55:29 PM 59faae62]:sending 'sbl1bak' (337 KB)...
[11:55:29 PM 59faae62]:eek:KAY [ 0.014s]
[11:55:29 PM 59faae62]:writing 'sbl1bak'...
[11:55:29 PM 59faae62]:eek:KAY [ 0.009s]
[11:55:29 PM 59faae62]:finished. total time: 0.023s
[11:55:29 PM 59faae62]:target reported max download size of 535822336 bytes
[11:55:29 PM 59faae62]:sending 'rpmbak' (180 KB)...
[11:55:29 PM 59faae62]:eek:KAY [ 0.008s]
[11:55:29 PM 59faae62]:writing 'rpmbak'...
[11:55:29 PM 59faae62]:eek:KAY [ 0.009s]
[11:55:29 PM 59faae62]:finished. total time: 0.017s
[11:55:29 PM 59faae62]:$fastboot -s 59faae62 flash abootbak G:\Zack\u\images\emmc_appsboot.mbn ||
[11:55:29 PM 59faae62]:target reported max download size of 535822336 bytes
[11:55:29 PM 59faae62]:sending 'abootbak' (588 KB)...
[11:55:29 PM 59faae62]:eek:KAY [ 0.023s]
[11:55:29 PM 59faae62]:writing 'abootbak'...
[11:55:29 PM 59faae62]:eek:KAY [ 0.011s]
[11:55:29 PM 59faae62]:finished. total time: 0.034s
[11:55:29 PM 59faae62]:$fastboot -s 59faae62 flash devcfgbak G:\Zack\u\images\devcfg.mbn ||
[11:55:29 PM 59faae62]:target reported max download size of 535822336 bytes
[11:55:29 PM 59faae62]:sending 'devcfgbak' (59 KB)...
[11:55:29 PM 59faae62]:eek:KAY [ 0.004s]
[11:55:29 PM 59faae62]:writing 'devcfgbak'...
[11:55:29 PM 59faae62]:eek:KAY [ 0.007s]
[11:55:29 PM 59faae62]:finished. total time: 0.011s
[11:55:29 PM 59faae62]:$fastboot -s 59faae62 flash keymasterbak G:\Zack\u\images\keymaster.mbn ||
[11:55:29 PM 59faae62]:target reported max download size of 535822336 bytes
[11:55:29 PM 59faae62]:sending 'keymasterbak' (220 KB)...
[11:55:29 PM 59faae62]:eek:KAY [ 0.010s]
[11:55:29 PM 59faae62]:writing 'keymasterbak'...
[11:55:29 PM 59faae62]:eek:KAY [ 0.008s]
[11:55:29 PM 59faae62]:finished. total time: 0.018s
[11:55:29 PM 59faae62]:$fastboot -s 59faae62 flash cmnlibbak G:\Zack\u\images\cmnlib.mbn ||
[11:55:30 PM 59faae62]:target reported max download size of 535822336 bytes
[11:55:30 PM 59faae62]:sending 'cmnlibbak' (196 KB)...
[11:55:30 PM 59faae62]:eek:KAY [ 0.009s]
[11:55:30 PM 59faae62]:writing 'cmnlibbak'...
[11:55:30 PM 59faae62]:eek:KAY [ 0.009s]
[11:55:30 PM 59faae62]:finished. total time: 0.018s
[11:55:30 PM 59faae62]:$fastboot -s 59faae62 flash cmnlib64bak G:\Zack\u\images\cmnlib64.mbn ||
[11:55:30 PM 59faae62]:target reported max download size of 535822336 bytes
[11:55:30 PM 59faae62]:sending 'cmnlib64bak' (249 KB)...
[11:55:30 PM 59faae62]:eek:KAY [ 0.011s]
[11:55:30 PM 59faae62]:writing 'cmnlib64bak'...
[11:55:30 PM 59faae62]:eek:KAY [ 0.009s]
[11:55:30 PM 59faae62]:finished. total time: 0.020s
[11:55:30 PM 59faae62]:$fastboot -s 59faae62 erase boot
[11:55:30 PM 59faae62]:erasing 'boot'...
[11:55:30 PM 59faae62]:eek:KAY [ 0.012s]
[11:55:30 PM 59faae62]:finished. total time: 0.012s
[11:55:30 PM 59faae62]:$fastboot -s 59faae62 flash modem G:\Zack\u\images\NON-HLOS.bin ||
[11:55:35 PM 59faae62]:target reported max download size of 535822336 bytes
[11:55:35 PM 59faae62]:sending 'modem' (86016 KB)...
[11:55:35 PM 59faae62]:eek:KAY [ 3.067s]
[11:55:35 PM 59faae62]:writing 'modem'...
[11:55:35 PM 59faae62]:eek:KAY [ 1.053s]
[11:55:35 PM 59faae62]:finished. total time: 4.120s
[11:55:35 PM 59faae62]:$fastboot -s 59faae62 flash system G:\Zack\u\images\system.img ||
[11:59:04 PM 59faae62]:target reported max download size of 535822336 bytes
[11:59:04 PM 59faae62]:erasing 'system'...
[11:59:04 PM 59faae62]:eek:KAY [ 0.137s]
[11:59:04 PM 59faae62]:sending sparse 'system' 1/5 (513789 KB)...
[11:59:04 PM 59faae62]:eek:KAY [ 25.784s]
[11:59:04 PM 59faae62]:writing 'system' 1/5...
[11:59:04 PM 59faae62]:eek:KAY [ 3.490s]
[11:59:04 PM 59faae62]:sending sparse 'system' 2/5 (519102 KB)...
[11:59:04 PM 59faae62]:eek:KAY [ 26.051s]
[11:59:04 PM 59faae62]:writing 'system' 2/5...
[11:59:04 PM 59faae62]:eek:KAY [ 3.613s]
[11:59:04 PM 59faae62]:sending sparse 'system' 3/5 (522029 KB)...
[11:59:04 PM 59faae62]:eek:KAY [ 26.742s]
[11:59:04 PM 59faae62]:writing 'system' 3/5...
[11:59:04 PM 59faae62]:eek:KAY [ 3.814s]
[11:59:04 PM 59faae62]:sending sparse 'system' 4/5 (513959 KB)...
[11:59:04 PM 59faae62]:eek:KAY [ 26.938s]
[11:59:04 PM 59faae62]:writing 'system' 4/5...
[11:59:04 PM 59faae62]:eek:KAY [ 4.106s]
[11:59:04 PM 59faae62]:sending sparse 'system' 5/5 (141103 KB)...
[11:59:04 PM 59faae62]:eek:KAY [ 7.178s]
[11:59:04 PM 59faae62]:writing 'system' 5/5...
[11:59:04 PM 59faae62]:eek:KAY [ 0.954s]
[11:59:04 PM 59faae62]:finished. total time: 128.845s
[11:59:04 PM 59faae62]:$fastboot -s 59faae62 flash cache G:\Zack\u\images\cache.img ||
[11:59:05 PM 59faae62]:target reported max download size of 535822336 bytes
[11:59:05 PM 59faae62]:erasing 'cache'...
[11:59:05 PM 59faae62]:eek:KAY [ 0.020s]
[11:59:05 PM 59faae62]:sending 'cache' (6248 KB)...
[11:59:05 PM 59faae62]:eek:KAY [ 0.228s]
[11:59:05 PM 59faae62]:writing 'cache'...
[11:59:05 PM 59faae62]:eek:KAY [ 0.043s]
[11:59:05 PM 59faae62]:finished. total time: 0.291s
[11:59:05 PM 59faae62]:$fastboot -s 59faae62 flash userdata G:\Zack\u\images\userdata.img ||
[11:59:25 PM 59faae62]:target reported max download size of 535822336 bytes
[11:59:25 PM 59faae62]:erasing 'userdata'...
[11:59:25 PM 59faae62]:eek:KAY [ 1.025s]
[11:59:25 PM 59faae62]:sending 'userdata' (367357 KB)...
[11:59:25 PM 59faae62]:eek:KAY [ 13.248s]
[11:59:25 PM 59faae62]:writing 'userdata'...
[11:59:25 PM 59faae62]:eek:KAY [ 2.338s]
[11:59:25 PM 59faae62]:finished. total time: 16.611s
[11:59:25 PM 59faae62]:$fastboot -s 59faae62 flash recovery G:\Zack\u\images\recovery.img ||
[11:59:27 PM 59faae62]:target reported max download size of 535822336 bytes
[11:59:27 PM 59faae62]:sending 'recovery' (33601 KB)...
[11:59:27 PM 59faae62]:eek:KAY [ 1.212s]
[11:59:27 PM 59faae62]:writing 'recovery'...
[11:59:27 PM 59faae62]:eek:KAY [ 0.218s]
[11:59:27 PM 59faae62]:finished. total time: 1.431s
[11:59:27 PM 59faae62]:$fastboot -s 59faae62 flash boot G:\Zack\u\images\boot.img ||
[11:59:29 PM 59faae62]:target reported max download size of 535822336 bytes
[11:59:29 PM 59faae62]:sending 'boot' (32245 KB)...
[11:59:29 PM 59faae62]:eek:KAY [ 1.160s]
[11:59:29 PM 59faae62]:writing 'boot'...
[11:59:29 PM 59faae62]:eek:KAY [ 0.211s]
[11:59:29 PM 59faae62]:finished. total time: 1.371s
[11:59:29 PM 59faae62]:$fastboot -s 59faae62 flash dsp G:\Zack\u\images\adspso.bin ||
[11:59:30 PM 59faae62]:target reported max download size of 535822336 bytes
[11:59:30 PM 59faae62]:sending 'dsp' (16384 KB)...
[11:59:30 PM 59faae62]:eek:KAY [ 0.591s]
[11:59:30 PM 59faae62]:writing 'dsp'...
[11:59:30 PM 59faae62]:eek:KAY [ 0.115s]
[11:59:30 PM 59faae62]:finished. total time: 0.706s
[11:59:30 PM 59faae62]:$fastboot -s 59faae62 flash mdtp G:\Zack\u\images\mdtp.img ||
[11:59:31 PM 59faae62]:target reported max download size of 535822336 bytes
[11:59:31 PM 59faae62]:sending 'mdtp' (13426 KB)...
[11:59:31 PM 59faae62]:eek:KAY [ 0.484s]
[11:59:31 PM 59faae62]:writing 'mdtp'...
[11:59:31 PM 59faae62]:eek:KAY [ 0.088s]
[11:59:31 PM 59faae62]:finished. total time: 0.573s
[11:59:31 PM 59faae62]:$fastboot -s 59faae62 erase splash
[11:59:31 PM 59faae62]:erasing 'splash'...
[11:59:31 PM 59faae62]:eek:KAY [ 0.011s]
[11:59:31 PM 59faae62]:finished. total time: 0.011s
[11:59:31 PM 59faae62]:$fastboot -s 59faae62 flash splash G:\Zack\u\images\splash.img ||
[11:59:31 PM 59faae62]:target reported max download size of 535822336 bytes
[11:59:31 PM 59faae62]:sending 'splash' (351 KB)...
[11:59:31 PM 59faae62]:eek:KAY [ 0.014s]
[11:59:31 PM 59faae62]:writing 'splash'...
[11:59:31 PM 59faae62]:eek:KAY [ 0.010s]
[11:59:31 PM 59faae62]:finished. total time: 0.024s
[11:59:31 PM 59faae62]:$fastboot -s 59faae62 erase DDR
[11:59:32 PM 59faae62]:erasing 'DDR'...
[11:59:32 PM 59faae62]:eek:KAY [ 0.006s]
[11:59:32 PM 59faae62]:finished. total time: 0.006s
[11:59:32 PM 59faae62]:$fastboot -s 59faae62 flash cust G:\Zack\u\images\cust.img
[11:59:47 PM 59faae62]:target reported max download size of 535822336 bytes
[11:59:47 PM 59faae62]:sending 'cust' (276594 KB)...
[11:59:47 PM 59faae62]:eek:KAY [ 9.988s]
[11:59:47 PM 59faae62]:writing 'cust'...
[11:59:47 PM 59faae62]:eek:KAY [ 2.594s]
[11:59:47 PM 59faae62]:finished. total time: 12.582s
[11:59:47 PM 59faae62]:$fastboot -s 59faae62 erase config
[11:59:47 PM 59faae62]:erasing 'config'...
[11:59:47 PM 59faae62]:eek:KAY [ 0.007s]
[11:59:47 PM 59faae62]:finished. total time: 0.007s
[11:59:47 PM 59faae62]:$fastboot -s 59faae62 oem lock
[11:59:47 PM 59faae62]:...
[11:59:47 PM 59faae62]:eek:KAY [ 0.003s]
[11:59:47 PM 59faae62]:finished. total time: 0.003s
[11:59:47 PM 59faae62]:$fastboot -s 59faae62 reboot
[11:59:47 PM 59faae62]:rebooting...
[11:59:47 PM 59faae62]:finished. total time: 0.033s
[11:59:47 PM 59faae62]:flash done
[11:59:47 PM 59faae62]:flash done
[11:59:47 PM 59faae62]:process exit.
[11:59:47 PM 59faae62]:flashSuccess True
[11:59:47 PM 59faae62]:isFactory False CheckCPUID False
[11:59:47 PM 59faae62]:before:flashSuccess is True set IsUpdate:True set IsDone True
[11:59:47 PM 59faae62]:after:flashSuccess is True set IsUpdate:false set IsDone true

and the COM20 port unsuccessful flash attempts( gives packet read error)

[12:51:23 AM COM20]:MiFlash 2017.4.25.0
[12:54:19 AM COM20]:[COM20]:start flash.
[12:54:20 AM COM20]:cannot receive hello packet,MiFlash is trying to reset status!
[12:54:21 AM COM20]:cannot receive hello packet,MiFlash is trying to reset status!
[12:54:22 AM COM20]:cannot receive hello packet,MiFlash is trying to reset status!
[12:54:23 AM COM20]:cannot receive hello packet,MiFlash is trying to reset status!
[12:54:24 AM COM20]:cannot receive hello packet,MiFlash is trying to reset status!
[12:54:25 AM COM20]:cannot receive hello packet,MiFlash is trying to reset status!
[12:54:26 AM COM20]:cannot receive hello packet,MiFlash is trying to reset status!
[12:54:27 AM COM20]:cannot receive hello packet,MiFlash is trying to reset status!
[12:54:28 AM COM20]:try to reset status.
[12:54:29 AM COM20]:Switch mode back
[12:54:29 AM COM20]:cannot receive hello packet,MiFlash is trying to reset status!
[12:54:30 AM COM20]:try to reset status.
[12:54:30 AM COM20]:Switch mode back
[12:54:30 AM COM20]:cannot receive hello packet,MiFlash is trying to reset status!
[12:54:31 AM COM20]:try to reset status.
[12:54:32 AM COM20]:Switch mode back
[12:54:32 AM COM20]:cannot receive hello packet
[12:54:32 AM COM20]:flashSuccess False
[12:54:32 AM COM20]:isFactory False CheckCPUID False
[12:54:32 AM COM20]:before:flashSuccess is False set IsUpdate:True set IsDone True
[12:54:32 AM COM20]:after:flashSuccess is False set IsUpdate:false set IsDone true

Please help!!!

Best Regards!!!