[GUIDE][FASTBOOT] FLASHING FASTBOOT MiUI ROMS

Sk.D

Senior Member
Nov 16, 2012
1,070
1,241
0
City Of Dreams!!
Introduction:



Hey friends, as we know we can flash fastboot Miui Roms which comes with complete package and then we have to flash it with MiPHONE.exe. There are no other methods to flash roms Via PC! Roms can also be flashed with stock recovery, custom recovery but there should be a zip in sd card!Sometimes it even happen that we want to flash a rom/mod/zip and it fails! At that time we can restore via backup or flashing rom again.But what if there is NO ROM/BACKUP in SD CARD and ur in BOOTLOOP.
I tried numerous time flashing Miui fastboot rom via mi PHONE, but every time it gave me error 'The system cannot find the file specified.(0x80070002)' , I know i was doing somewhere wrong.Atlast I gave up and wanted to try different.



So I will be sharing with you a method to flash Miui Fastboot Roms by fastboot commands via ADB. Yes you can do it easily. Just enter the commands and hit enter.

Prerequisite :



Computer :p
Minimal adb and fastboot zip
MIUI FASBOOT ROM
Mi FLASH
(For installing usb drivers)








Steps to be performed :



1)Download minimal adb and fastboot zip and install it.

2) Also install Miflash for necessary usb drivers!

3)Download MIUI Fastboot roms zip and extract it in same folder where Minimal adb fastboot were installed.

FOR EXAMPLE : Mine path is C:\Program Files (x86)\Minimal ADB and Fastboot.
4)So extract files inside Minimal ADB and Fastboot FOLDER

5) Now go to Minimal Adb and Fastboot folder and HOLD 'Left Shift Button' and 'Right Click'
anywhere on folder area and there you can see OPEN COMMAND WINDOW HERE.

6) Follow the commands given below : Ps Enter commands one by one!!





Code:
fastboot flash tz tz.mbn
fastboot flash dbi sdi.mbn
fastboot flash sbl1 sbl1.mbn
fastboot flash rpm rpm.mbn
fastboot flash aboot emmc_appsboot.mbn
fastboot erase boot
fastboot flash misc misc.img
fastboot flash modem NON-HLOS.bin
fastboot flash system system.img
fastboot flash cache cache.img
fastboot flash userdata userdata.img
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot reboot
7) The phone will automatically reboot after entering last commands , so have patience!

ENJOY!!!!!!

ps :Btw this helped me fix my otg which was giving me error!
 
Last edited:

Pi3rluigi

Senior Member
Sep 21, 2011
739
179
0
Turin
Can I suggest another solution, but not tested?
Just flash a CWM recovery .img, restart in recovery and use the sideload flash option to push and flash the .zip file of a rom.
All will be simplier if you use a Mac, no drivers needed, just ADB and platform-tools
 
Last edited:

Sk.D

Senior Member
Nov 16, 2012
1,070
1,241
0
City Of Dreams!!
Can I suggest another solution, but not tested?
Just flash a CWM recovery .img, restart in recovery and use the sideload flash option to push and flash the .zip file of a rom.
All will be simplier if you use a Mac, no drivers needed, just ADB and platform-tools
Everyone doesnt have a Mac bro, I know it can be done via other methods too. Many people at this particular moment opt for easy way. this is damn easy , just download files put it in adb folder and hit command and done!!!
Since we have only one method for using via pc [ that also failed for me, maybe i was doing wrong] so i thought for doing this way!!
 
  • Like
Reactions: cellfixpdkt

Pallmalli

Senior Member
Apr 10, 2011
198
37
0
fastboot flash tz tz.mbn
fastboot flash dbi sdi.mbn
fastboot flash sbl1 sbl1.mbn
fastboot flash rpm rpm.mbn
fastboot flash aboot emmc_appsboot.mbn
fastboot erase boot
fastboot flash misc misc.img
fastboot flash modem NON-HLOS.bin
fastboot flash system system.img
fastboot flash cache cache.img
fastboot flash userdata userdata.img
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot reboot

After all the commands except erase boot and reboot I get en error: target report max download size of 671088640 bytes error cannot flash..............
Any help would be deeply apreciated

SOLVED!!!! Using this.
http://forum.xda-developers.com/showthread.php?t=2277112
 
Last edited:

createthinx

New member
Sep 29, 2015
1
0
0
Does it works to with Mi4..?
i've tried anything,,but its useless, lucky i'm not bricked my phone,
i just want to upgrade from MIUI5 to MIUI6, i've try flashing with standart procedure on the xiaomi web, but useless.
in fastboot mode, my phone is not detected, neither when i plug in and use Mi PC Suite,
now i'm running on MIUI-V6.2.4.0.KXDCNBJ
can you help me, ?
 

kitorrin

New member
Nov 22, 2015
1
1
0
Hi there,

I tried this with my Redmi Note 2 (I misunderstood the thread and thought it was for ALL Xiaomi) and the phone is in a loop of rebooting all the time. Like searching the boot but doesn't find it! :S

How can I reinstall the boot?
PLEASE help...
 
Last edited:
  • Like
Reactions: Sk.D

uppersky

Member
May 16, 2013
31
19
0
Introduction:



Hey friends, as we know we can flash fastboot Miui Roms which comes with complete package and then we have to flash it with MiPHONE.exe. There are no other methods to flash roms Via PC! Roms can also be flashed with stock recovery, custom recovery but there should be a zip in sd card!Sometimes it even happen that we want to flash a rom/mod/zip and it fails! At that time we can restore via backup or flashing rom again.But what if there is NO ROM/BACKUP in SD CARD and ur in BOOTLOOP.
I tried numerous time flashing Miui fastboot rom via mi PHONE, but every time it gave me error 'The system cannot find the file specified.(0x80070002)' , I know i was doing somewhere wrong.Atlast I gave up and wanted to try different.



So I will be sharing with you a method to flash Miui Fastboot Roms by fastboot commands via ADB. Yes you can do it easily. Just enter the commands and hit enter.

Prerequisite :



Computer :p
Minimal adb and fastboot zip
MIUI FASBOOT ROM
Mi FLASH
(For installing usb drivers)








Steps to be performed :



1)Download minimal adb and fastboot zip and install it.

2) Also install Miflash for necessary usb drivers!

3)Download MIUI Fastboot roms zip and extract it in same folder where Minimal adb fastboot were installed.

FOR EXAMPLE : Mine path is C:\Program Files (x86)\Minimal ADB and Fastboot.
4)So extract files inside Minimal ADB and Fastboot FOLDER

5) Now go to Minimal Adb and Fastboot folder and HOLD 'Left Shift Button' and 'Right Click'
anywhere on folder area and there you can see OPEN COMMAND WINDOW HERE.

6) Follow the commands given below : Ps Enter commands one by one!!





Code:
fastboot flash tz tz.mbn
fastboot flash dbi sdi.mbn
fastboot flash sbl1 sbl1.mbn
fastboot flash rpm rpm.mbn
fastboot flash aboot emmc_appsboot.mbn
fastboot erase boot
fastboot flash misc misc.img
fastboot flash modem NON-HLOS.bin
fastboot flash system system.img
fastboot flash cache cache.img
fastboot flash userdata userdata.img
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot reboot
7) The phone will automatically reboot after entering last commands , so have patience!

ENJOY!!!!!!

ps :Btw this helped me fix my otg which was giving me error!
thanks bro, it work on my mi3, i skip flash userdata.img
 
  • Like
Reactions: Dzol Cp

Virendra326

New member
Jul 28, 2016
1
0
0
fastboot flash tz tz.mbn
fastboot flash dbi sdi.mbn
fastboot flash sbl1 sbl1.mbn
fastboot flash rpm rpm.mbn
fastboot flash aboot emmc_appsboot.mbn
fastboot erase boot
fastboot flash misc misc.img
fastboot flash modem NON-HLOS.bin
fastboot flash system system.img
fastboot flash cache cache.img
fastboot flash userdata userdata.img
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot reboot

After all above commands running successful
After reboot
To start Android, enter your password
 

amitai_weil

New member
Sep 6, 2016
1
0
0
More detalies

Hi,
Can you please be more specific about:

1. which mode does the phone need to be in while procedure? stay in boot-loop? boatloader mode? is recovery mode ok? download mode?

2. What files exactly to move to the minimal adb folder? there is the tgz file which extracts to the tar file which extracts to a folder - does that folder need to be copied? or the images file in that folder?

When trying to enter the lines some of them weren't exepted/missing.
Thanks,
Amitai
 
Last edited:

elephaaantastic

New member
Sep 18, 2016
1
0
0
thank you SO MUCH for this tutorial, it worked perfectly for me.
@amitai, the phone needs to be in fastboot-mode, you can get there by typing "adb reboot bootloader" into commands (your phone has to be connected via USB); you will also be needing the FASTBOOT-ROM which you can get on the official miui website ... you also have to unpack them twice to get to the files. just copy all the files into the minimal adb folder. it does NOT work with normal miui roms, only with fastboot-roms!
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone