[GUIDE] Flashing rom Using Miflash Mi2/3


Jul 19, 2013
122
13
30
Hey guys.
I have a problem with Miflash.
My phone (m2s) had once been flashed with the "aries_core_recovery_single".
All is good but now I wish to install Miui again with unified storage.
When I flashed it with a fastboot package, it doesn't complete successfully with the following error:
Code:
208be3c6    0.00    start flash D:\Documents\Downloads\Compressed\Android\aries_beta_images_4.9.19_4.4_cn
208be3c6    0.09 

208be3c6    0.11    $fastboot -s 208be3c6 getvar soc-id  2>&1  | findstr /r /c:"^soc-id: *109"  || echo Missmatching image and device

208be3c6    0.27    soc-id: 109

208be3c6    0.30 

208be3c6    0.34    $fastboot -s 208be3c6 getvar soc-id  2>&1  | findstr /r /c:"^soc-id: *109"  || exit /B 1

208be3c6    0.36    soc-id: 109

208be3c6    0.39 

208be3c6    0.42    $fastboot -s 208be3c6 flash tz "D:\Documents\Downloads\Compressed\Android\aries_beta_images_4.9.19_4.4_cn\images\tz.mbn"  ||

208be3c6    0.44    sending 'tz' (196 KB)...

208be3c6    0.47    OKAY [  0.009s]

208be3c6    0.48    writing 'tz'...

208be3c6    0.52    OKAY [  0.010s]

208be3c6    0.55    finished. total time: 0.019s

208be3c6    0.58 

208be3c6    0.63    $fastboot -s 208be3c6 flash sbl1 "D:\Documents\Downloads\Compressed\Android\aries_beta_images_4.9.19_4.4_cn\images\sbl1.mbn"  ||

208be3c6    0.66    sending 'sbl1' (82 KB)...

208be3c6    0.69    OKAY [  0.005s]

208be3c6    0.72    writing 'sbl1'...

208be3c6    0.75    OKAY [  0.012s]

208be3c6    0.78    finished. total time: 0.017s

208be3c6    0.83 

208be3c6    0.86    $fastboot -s 208be3c6 flash sbl2 "D:\Documents\Downloads\Compressed\Android\aries_beta_images_4.9.19_4.4_cn\images\sbl2.mbn"  ||

208be3c6    0.89    sending 'sbl2' (128 KB)...

208be3c6    0.92    OKAY [  0.007s]

208be3c6    0.95    writing 'sbl2'...

208be3c6    0.98    OKAY [  0.007s]

208be3c6    1.01    finished. total time: 0.014s

208be3c6    1.05 

208be3c6    1.09    $fastboot -s 208be3c6 flash sbl3 "D:\Documents\Downloads\Compressed\Android\aries_beta_images_4.9.19_4.4_cn\images\sbl3.mbn"  ||

208be3c6    1.13    sending 'sbl3' (296 KB)...

208be3c6    1.17    OKAY [  0.012s]

208be3c6    1.20    writing 'sbl3'...

208be3c6    1.23    OKAY [  0.013s]

208be3c6    1.26    finished. total time: 0.025s

208be3c6    1.31 

208be3c6    1.39    $fastboot -s 208be3c6 flash rpm "D:\Documents\Downloads\Compressed\Android\aries_beta_images_4.9.19_4.4_cn\images\rpm.mbn"  ||

208be3c6    1.45    sending 'rpm' (136 KB)...

208be3c6    1.53    OKAY [  0.007s]

208be3c6    1.56    writing 'rpm'...

208be3c6    1.59    OKAY [  0.008s]

208be3c6    1.63    finished. total time: 0.015s

208be3c6    1.66 

208be3c6    1.70    $fastboot -s 208be3c6 flash aboot "D:\Documents\Downloads\Compressed\Android\aries_beta_images_4.9.19_4.4_cn\images\emmc_appsboot.mbn"  ||

208be3c6    1.75    sending 'aboot' (1020 KB)...

208be3c6    1.78    OKAY [  0.034s]

208be3c6    1.81    writing 'aboot'...

208be3c6    1.84    OKAY [  0.075s]

208be3c6    1.88    finished. total time: 0.109s

208be3c6    1.91 

208be3c6    1.95    $fastboot -s 208be3c6 erase boot  ||

208be3c6    1.97    erasing 'boot'...

208be3c6    2.02    OKAY [  0.015s]

208be3c6    2.05    finished. total time: 0.015s

208be3c6    2.08 

208be3c6    2.11    $fastboot -s 208be3c6 flash misc "D:\Documents\Downloads\Compressed\Android\aries_beta_images_4.9.19_4.4_cn\images\misc.img"  ||

208be3c6    2.14    sending 'misc' (8 KB)...

208be3c6    2.17    OKAY [  0.004s]

208be3c6    2.22    writing 'misc'...

208be3c6    2.25    OKAY [  0.003s]

208be3c6    2.28    finished. total time: 0.007s

208be3c6    2.31 

208be3c6    2.34    $fastboot -s 208be3c6 flash modem+modem1 "D:\Documents\Downloads\Compressed\Android\aries_beta_images_4.9.19_4.4_cn\images\NON-HLOS.bin"  ||

208be3c6    5.76    sending 'modem+modem1' (51910 KB)...

208be3c6    5.80    OKAY [  1.628s]

208be3c6    5.83    writing 'modem+modem1'...

208be3c6    5.86    FAILED (remote: partition table doesn't exist)

CDeviceReport::HasError(67): Unspecified error(0x80004005)
CDeviceReport::GetStatus(124): Unspecified error(0x80004005)
CDeviceReport::HasError(67): Unspecified error(0x80004005)
So I thought of reverting to the old partition first by using "aries_core_recovery".
Then I received this error below:
Code:
208be3c6    0.00    start flash D:\Xiaomi\MiPhoneManager\Download\Rom\aries\5.7.2\rom
208be3c6    0.05 

208be3c6    0.08    $fastboot -s 208be3c6 getvar soc-id  2>&1  | findstr /r /c:"^soc-id: *109"  || echo Missmatching image and device

208be3c6    0.13    soc-id: 109

208be3c6    0.16 

208be3c6    0.19    $fastboot -s 208be3c6 getvar soc-id  2>&1  | findstr /r /c:"^soc-id: *109"  || exit /B 1

208be3c6    0.22    soc-id: 109

208be3c6    0.25 

208be3c6    0.28    $fastboot -s 208be3c6 flash partition "D:\Xiaomi\MiPhoneManager\Download\Rom\aries\5.7.2\rom\images\gpt_both0.bin"  ||

208be3c6    0.34    sending 'partition' (33 KB)...

208be3c6    0.38    OKAY [  0.058s]

208be3c6    0.41    writing 'partition'...

208be3c6    0.44    OKAY [  0.116s]

208be3c6    0.47    finished. total time: 0.173s

208be3c6    0.52 

208be3c6    0.55    $fastboot -s 208be3c6 flash tz "D:\Xiaomi\MiPhoneManager\Download\Rom\aries\5.7.2\rom\images\tz.mbn"  ||

208be3c6    0.58    sending 'tz' (196 KB)...

208be3c6    0.63    OKAY [  0.063s]

208be3c6    0.66    writing 'tz'...

208be3c6    0.69    OKAY [  0.094s]

208be3c6    0.72    finished. total time: 0.156s

208be3c6    0.75 

208be3c6    0.78    $fastboot -s 208be3c6 flash sbl1 "D:\Xiaomi\MiPhoneManager\Download\Rom\aries\5.7.2\rom\images\sbl1.mbn"  ||

208be3c6    0.81    sending 'sbl1' (82 KB)...

208be3c6    0.84    OKAY [  0.059s]

208be3c6    0.89    writing 'sbl1'...

208be3c6    0.92    OKAY [  0.087s]

208be3c6    0.95    finished. total time: 0.146s

208be3c6    0.98 

208be3c6    1.01    $fastboot -s 208be3c6 flash sbl2 "D:\Xiaomi\MiPhoneManager\Download\Rom\aries\5.7.2\rom\images\sbl2.mbn"  ||

208be3c6    1.05    sending 'sbl2' (128 KB)...

208be3c6    1.08    OKAY [  0.033s]

208be3c6    1.13    writing 'sbl2'...

208be3c6    1.16    OKAY [  0.062s]

208be3c6    1.19    finished. total time: 0.095s

208be3c6    1.22 

208be3c6    1.26    $fastboot -s 208be3c6 flash sbl3 "D:\Xiaomi\MiPhoneManager\Download\Rom\aries\5.7.2\rom\images\sbl3.mbn"  ||

208be3c6    1.30    sending 'sbl3' (296 KB)...

208be3c6    1.33    OKAY [  0.065s]

208be3c6    1.36    writing 'sbl3'...

208be3c6    1.39    OKAY [  0.094s]

208be3c6    1.42    finished. total time: 0.159s

208be3c6    1.45 

208be3c6    1.50    $fastboot -s 208be3c6 flash rpm "D:\Xiaomi\MiPhoneManager\Download\Rom\aries\5.7.2\rom\images\rpm.mbn"  ||

208be3c6    1.53    sending 'rpm' (136 KB)...

208be3c6    1.56    OKAY [  0.061s]

208be3c6    1.59    writing 'rpm'...

208be3c6    1.63    OKAY [  0.117s]

208be3c6    1.66    finished. total time: 0.178s

208be3c6    1.69 

208be3c6    1.73    $fastboot -s 208be3c6 flash aboot "D:\Xiaomi\MiPhoneManager\Download\Rom\aries\5.7.2\rom\images\emmc_appsboot.mbn"  ||

208be3c6    1.76    sending 'aboot' (1083 KB)...

208be3c6    1.80    OKAY [  0.090s]

208be3c6    1.83    writing 'aboot'...

208be3c6    1.88    OKAY [  0.140s]

208be3c6    1.91    finished. total time: 0.230s

208be3c6    1.94 

208be3c6    1.97    $fastboot -s 208be3c6 erase boot  ||

208be3c6    2.00    erasing 'boot'...

208be3c6    2.03    OKAY [  0.056s]

208be3c6    2.06    finished. total time: 0.057s

208be3c6    2.09 

208be3c6    2.14    $fastboot -s 208be3c6 flash misc "D:\Xiaomi\MiPhoneManager\Download\Rom\aries\5.7.2\rom\images\misc.img"  ||

208be3c6    2.17    sending 'misc' (8 KB)...

208be3c6    2.20    OKAY [  0.058s]

208be3c6    2.23    writing 'misc'...

208be3c6    2.27    OKAY [  0.085s]

208be3c6    2.31    finished. total time: 0.143s

208be3c6    2.34 

208be3c6    2.38    $fastboot -s 208be3c6 flash modem+modem1 "D:\Xiaomi\MiPhoneManager\Download\Rom\aries\5.7.2\rom\images\NON-HLOS.bin"  ||

208be3c6    6.22    sending 'modem+modem1' (51910 KB)...

208be3c6    6.26    OKAY [  1.655s]

208be3c6    6.30    writing 'modem+modem1'...

208be3c6    6.33    OKAY [  2.764s]

208be3c6    6.36    finished. total time: 4.418s

208be3c6    6.39 

208be3c6    6.42    $fastboot -s 208be3c6 flash system+system1 "D:\Xiaomi\MiPhoneManager\Download\Rom\aries\5.7.2\rom\images\system.img"  ||

208be3c6    57.53    sending 'system+system1' (464012 KB)...

208be3c6    57.58    OKAY [ 14.557s]

208be3c6    57.61    writing 'system+system1'...

208be3c6    57.66    OKAY [ 36.428s]

208be3c6    57.69    finished. total time: 50.985s

208be3c6    57.72 

208be3c6    57.75    $fastboot -s 208be3c6 flash cache "D:\Xiaomi\MiPhoneManager\Download\Rom\aries\5.7.2\rom\images\cache.img"  ||

208be3c6    58.25    sending 'cache' (8336 KB)...

208be3c6    58.27    FAILED (command write failed (Unknown error))

CDeviceReport::HasError(67): Unspecified error(0x80004005)
CDeviceReport::GetStatus(124): Unspecified error(0x80004005)
CDeviceReport::HasError(67): Unspecified error(0x80004005)
Looking at the "flash_all.bat", it still has a few more actions to execute after that.
Code:
fastboot %* getvar soc-id 2>&1 | findstr /r /c:"^soc-id: *109" || echo Missmatching image and device
fastboot %* getvar soc-id 2>&1 | findstr /r /c:"^soc-id: *109" || exit /B 1
fastboot %* flash partition "%~dp0images\gpt_both0.bin" || @echo "Flash partition error" && exit /B 1
fastboot %* flash tz "%~dp0images\tz.mbn" || @echo "Flash tz error" && exit /B 1
fastboot %* flash sbl1 "%~dp0images\sbl1.mbn" || @echo "Flash sbl1 error" && exit /B 1
fastboot %* flash sbl2 "%~dp0images\sbl2.mbn" || @echo "Flash sbl2 error" && exit /B 1
fastboot %* flash sbl3 "%~dp0images\sbl3.mbn" || @echo "Flash sbl3 error" && exit /B 1
fastboot %* flash rpm "%~dp0images\rpm.mbn" || @echo "Flash rpm error" && exit /B 1
fastboot %* flash aboot "%~dp0images\emmc_appsboot.mbn" || @echo "Flash aboot error" && exit /B 1
fastboot %* erase boot || @echo "Erase boot error" && exit /B 1
fastboot %* flash misc "%~dp0images\misc.img" || @echo "Flash misc error" && exit /B 1
fastboot %* flash modem+modem1 "%~dp0images\NON-HLOS.bin" || @echo "Flash modem error" && exit /B 1
fastboot %* flash system+system1 "%~dp0images\system.img" || @echo "Flash system error" && exit /B 1
fastboot %* flash cache "%~dp0images\cache.img" || @echo "Flash cache error" && exit /B 1
fastboot %* flash userdata "%~dp0images\userdata.img" || @echo "Flash userdata error" && exit /B 1
fastboot %* flash recovery "%~dp0images\recovery.img" || @echo "Flash recovery error" && exit /B 1
fastboot %* flash boot+boot1 "%~dp0images\boot.img" || @echo "Flash boot error" && exit /B 1
fastboot %* reboot || @echo "Reboot error" && exit /B 1
Can anyone please help? Thank you.
 
Dec 9, 2013
37
8
30
i need help if possible thanks in advance, my MI2S is on bootloop now, i was trying to update to
4.12.5 - FINAL MIUIv5, so i can update to Miui 6, but unfortunately i didn't see that i need to use Miflash, so the phone now is stuck at CWM, my question is can i use miflash to flash
4.12.5 - FINAL MIUIv5 now or i have to do something first? i am trying to get A Mi2s Fastboot package from the link mentioned in the original post but the website saying (Sorry, you do not have permission to access the forum) even if i am logged in, can anyone help me please?