[GUIDE][FASTBOOT] FLASHING FASTBOOT MiUI ROMS - Mi 3 General

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
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!​

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

Pi3rluigi said:
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
Click to expand...
Click to collapse
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!!

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

can u tell me how u solved the max download size limit error.

Can you tell me how to create fastboot rom?

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, ?

thanks a lot it works! with the help of Pallmalli post

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...

Cannot Load
It say cannot load xxx.mbn
please help

i was entered the commands like u... but it showing error: cannot load 'tz.mbn'

oooh man, ur rock!!!

Sk.D said:
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
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!​
Click to expand...
Click to collapse
thanks bro, it work on my mi3, i skip flash userdata.img

Hello, please help me - When i type first command - FAILED (remote: unknown command).. any solution please? REDMI 2 2GB RAM

Hi, is this method still applicable for miui 7 or 8? thanks in advance
Sent from my MI 3W using Tapatalk

from where can i download MIUI Fastboot roms zip

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

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

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!

any update about this Guide? Because we tried use on Xiaomi Mi 5 after first boot, Local Setting only Display China. And another issues two and third step is error (not available)
fastboot flash dbi sdi.mbn
fastboot flash sbl1 sbl1.mbn
Any clues?

Related

[tut]G2 baseband repair with adb/fastboot

hi guys
DO IT ON YOUR OWN RISK
i'm here with a trick which i found yesterday in error and trial
if anyone has unknown baseband in g2 then he must try this simple trick. trick is that you must tot back to sotck version(mine was d800 20c). then root it and take efs backup and secure it on pc or cloud and install WRONG version autorec recovery installer(i installed ls980 version) and install recovery with it. it will brick your phone and lead you to fastboot screen.don't worry it is not scary and i will tell you how to recover it. download adb+fastboot and pda net drivers and usb drivers for your phone.(just google them).
after installing drivers,connect g2 to pc and in the folder where adb.exe and fastboot.exe are located,open command prompt(shift+right click). in cmd, enter fastboot reboot if your device restarts then you can proceed and if not then reinstall drivers and pda net.
after device restarts to fastboot screen, enter following commands without coma
"fastboot erase modemst1" and press enter
then
"fastboot erase modemst2" and press enter
and your baseband is repaired(imei may or may not recover). to recover your brick, download lg kdz extractor and open your tot file in it(remember to open version you installed on mobile)
when tot is opened, tick following files and extract them
aboot
boot
dbi
recovery
laf
sbl1
tz
rpm
and press extract and copy them to folder where adb and fastboot is located and open cmd promot
in cmd enter these commands one by one
fastboot erase aboot
fastboot flash aboot aboot.bin
fastboot erase boot
fastboot flash boot boot.bin
fastboot erase dbi
fastboot flash dbi dbi.bin
fastboot erase recovery
fastboot flash recovery recovery.bin
fastboot erase laf
fastboot flash laf laf.bin
fastboot erase sbl1
fastboot flash sbl1 sbl1.bin
fastboot erase tz
fastboot flash tz tz.bin
fastboot erase rpm
fastboot flash rpm rpm.bin
fastboot reboot
and wulaa your phone is back
i am new here so plz someone simplify it and add links
sory for bad english

Flashed Device With FastBoot Now Internal Storage Shows 0.00b

Hello. I wanted to flash a stock ROM on my Xiaomi Mi3 (Not Mi3W) and I downloaded an official stock ROM and flashed it using Fastboot.
Here's where I think I messed up. I used the "fastboot erase userdata" on the phone and when it booted up, The system storage is showing fine when I go to settings > storage but the internal storage is showing up as 0.00b and I cannot install any applications.
I've tried reflashing but nothing is working. Any ideas on how I can get it to work? Thanks.
Try to flash again with fastboot but with following comands:
Enter the following commands below by order:
fastboot erase cache
fastboot erase userdata
fastboot erase system
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot reboot-bootloader
boot.img ,recovery.img and system.img it should be inside your stock firmware.
Teddy Lo said:
Try to flash again with fastboot but with following comands:
Enter the following commands below by order:
fastboot erase cache
fastboot erase userdata
fastboot erase system
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot reboot-bootloader
boot.img ,recovery.img and system.img it should be inside your stock firmware.
Click to expand...
Click to collapse
After much Googling, I was finally able to 'reset' the whole android partition system by flashing a CWM recovery, booting into it, and using ADB to fix it all.
Thank you for bothering to reply my at all. You're amazing.
You Welcome

MetroPCS Moto E5 Plus Root And Recovery Solution

So with the help of @CodyF86 with his lovely twrp recovery I have had trouble flashing to the metro variant of this device so I found a firmware where I can flash it without messing up my modem and my LTE Metro Connection so this is for those who cannot boot up.
So first you will need to use Cody's guide on booting up twrp to along with fstab and all the other stuff on his guide before doing this.
After you did his guide now it's time for mine if you can't boot up properly and mind you the LTE works and wifi but I can't seem to find out why it feels a bit slow but anyway.
Step 1. Download this update and put it(unzip file) into your adb/fastboot folder on your computer. https://drive.google.com/file/d/1kW-FAfXccQMBMX3DuGJ_p2r0moDiCYtR/view?usp=drivesdk
Step 2. Put your phone into fastboot mode
Step 3. Flash these in order
fastboot flash boot boot.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash oem oem.img
fastboot erase userdata
fastboot erase DDR
fastboot flash logo logo.bin
fastboot reboot
After that's done follow Cody's guide again and make sure you do it step by step and flash ONLY MAGISK 16.7
TheAmbition267 said:
So with the help of @CodyF86 with his lovely twrp recovery I have had trouble flashing to the metro variant of this device so I found a firmware where I can flash it without messing up my modem and my LTE Metro Connection so this is for those who cannot boot up.
So first you will need to use Cody's guide on booting up twrp to along with fstab and all the other stuff on his guide before doing this.
After you did his guide now it's time for mine if you can't boot up properly and mind you the LTE works and wifi but I can't seem to find out why it feels a bit slow but anyway.
Step 1. Download this update and put it(unzip file) into your adb/fastboot folder on your computer. https://drive.google.com/file/d/1kW-FAfXccQMBMX3DuGJ_p2r0moDiCYtR/view?usp=drivesdk
Step 2. Put your phone into fastboot mode
Step 3. Flash these in order
fastboot flash boot boot.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash oem oem.img
fastboot erase userdata
fastboot erase DDR
fastboot flash logo logo.bin
fastboot reboot
After that's done follow Cody's guide again and make sure you do it step by step and flash ONLY MAGISK 16.7
Click to expand...
Click to collapse
I keep getting cannot open error. any help would be greatly apprecciated

Boot Animation Stuck after Camera 2 api & Dm verity flash via twrp

Hello there! I unlock my bootloader and install twrp in my redmi 6 pro(sakura). Then i install havoc os and it was running completely fine . Then i flash camera to api & dm verity by twrp. After flashing and rebooting, my phone stuck on havoc animation after redmi sign . Then i wipe everything and then i flash lineage os and it also stuck on lineage animation. Whichever os i flash, it stuck on that Animation. It's non root device. Still it stuck on os animation. How to solve? Please Help
connect to pc via usb
open cmd window in adb and fastboot folder
reboot your device to fastboot mode using hardware keys
type fastboot devices to test connection
then download your stock rom from the internet
extract it
enterthe firmware file
copy recovery.img system.img cache.img userdata.img and boot.img
paste them in the adb folder
now in cmd window type
fastboot erase boot
fastboot flash boot boot.img
fastboot erase recovery
fastboot flash recovery recovery.img
fastboot erase userdata
fastboot flash userdata userdata.img
fastboot erase cache
fastboot flash cache cache.img
fastboot erase system
fastboot flash system system.img
and you're all done, your phone should be able to start now
brother i am very new . adb and fastboot folder means ? is it platform tools folder
brother i am very new .adb and fastboot folder means ? is it platform tools folder ?
narwhhal27 said:
connect to pc via usb
open cmd window in adb and fastboot folder
reboot your device to fastboot mode using hardware keys
type fastboot devices to test connection
then download your stock rom from the internet
extract it..
enterthe firmware file
copy recovery.img system.img cache.img userdata.img and boot.img
paste them in the adb folder
now in cmd window type
fastboot erase boot
fastboot flash boot boot.img
fastboot erase recovery
fastboot flash recovery recovery.img
fastboot erase userdata
fastboot flash userdata userdata.img
fastboot erase cache
fastboot flash cache cache.img
fastboot erase system
fastboot flash system system.img
and you're all done, your phone should be able to start now
Click to expand...
Click to collapse

How To Guide [Chinese Version] Install RMX3300 A.19 stock firmware from global

Disclaimer: I am not responsible for bricked devices, dead SD cards, etc!
Warning: I didn't test this procedure, I did backup the images from stock Chinese version before installing global version but I didn't flash it back. Please test at your own risks!
1. Make sure your bootloader is unlocked
2. Download the images provided in the link below
3. Boot your device to recovery (hold volume up and power until reboot)
4. Wipe data
5. Boot your device to bootloader (hold volume down and power until reboot)
6. Connect your device to PC (make sure you have installed fastboot on your PC)
7. From windows command prompt cd into the folder containing the images
8. Run the following commands to flash all images
Code:
fastboot flash boot boot.img
fastboot flash dtbo dtbo.img
fastboot flash engineering_cdt engineering_cdt.img
fastboot flash metadata metadata.img
fastboot flash oplusreserve2 oplusreserve2.img
fastboot flash recovery recovery.img
fastboot flash splash splash.img
fastboot flash super super.img
fastboot flash vbmeta_system vbmeta_system.img
fastboot flash vbmeta_vendor vbmeta_vendor.img
fastboot flash vendor_boot vendor_boot.img
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot -w
When flashing super.img, if you get the message Invalid sparse file format at header magic, this is fine.
9. You should then be able to boot into system
Stock RMX3300 Chinese images: https://mega.nz/folder/Ilk2CBwb#VMlU6A8wcFJVU0twOD6vTA
All Stock RMX3300 Chinese images (slot B was the correct one when it was backed up): https://mega.nz/folder/d1dxEBTa#nzKU4KuhnDcHjK7MX_D2eA
myogui said:
免責聲明:我不對設備變磚、SD 卡死等負責!
警告:我沒有測試這個程序,我在安裝全球版本之前備份了庫存中文版本的圖像,但我沒有將其閃回。請您自擔風險進行測試!
1.確保您的引導加載程序已解鎖
2.下載以下鏈接中提供的圖片
3.引導您的設備進行恢復(保持音量和電源直到重新啟動)
4.擦除數據
5.將您的設備引導至引導加載程序(按住音量和電源直到重新啟動)
6.將您的設備連接到PC(確保您已在PC上安裝了fastboot)
7. 從 windows 命令提示符 cd 進入包含圖像的文件夾
8.運行以下命令刷寫所有鏡像
Code:
fastboot flash boot boot.img
fastboot flash dtbo dtbo.img
fastboot flash engineering_cdt engineering_cdt.img
fastboot flash 元數據 metadata.img
fastboot flash oplusreserve2 oplusreserve2.img
fastboot flash recovery recovery.img
fastboot flash splash splash.img
fastboot flash super super.img
fastboot flash vbmeta_system vbmeta_system.img
fastboot flash vbmeta_vendor vbmeta_vendor.img
fastboot flash vendor_boot vendor_boot.img
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
快速啟動 -w
刷新 super.img 時,如果您在 header magic 處收到 Invalid sparse file format 消息,這很好。
9.然後您應該能夠引導進入系統
庫存RMX3300中文圖片:https ://mega.nz/folder/Ilk2CBwb#VMlU6A8wcFJVU0twOD6vTA
All Stock RMX3300中文圖片(備份時槽B是正確的):https ://mega.nz/folder/d1dxEBTa#nzKU4KuhnDcHjK7MX_D2eA
Click to expand...
Click to collapse
非常感謝你, 我會嘗試
wronkians said:
非常感謝你, 我會嘗試
Click to expand...
Click to collapse
Good luck mate!
myogui said:
Disclaimer: I am not responsible for bricked devices, dead SD cards, etc!
Warning: I didn't test this procedure, I did backup the images from stock Chinese version before installing global version but I didn't flash it back. Please test at your own risks!
1. Make sure your bootloader is unlocked
2. Download the images provided in the link below
3. Boot your device to recovery (hold volume up and power until reboot)
4. Wipe data
5. Boot your device to bootloader (hold volume down and power until reboot)
6. Connect your device to PC (make sure you have installed fastboot on your PC)
7. From windows command prompt cd into the folder containing the images
8. Run the following commands to flash all images
Code:
fastboot flash boot boot.img
fastboot flash dtbo dtbo.img
fastboot flash engineering_cdt engineering_cdt.img
fastboot flash metadata metadata.img
fastboot flash oplusreserve2 oplusreserve2.img
fastboot flash recovery recovery.img
fastboot flash splash splash.img
fastboot flash super super.img
fastboot flash vbmeta_system vbmeta_system.img
fastboot flash vbmeta_vendor vbmeta_vendor.img
fastboot flash vendor_boot vendor_boot.img
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot -w
When flashing super.img, if you get the message Invalid sparse file format at header magic, this is fine.
9. You should then be able to boot into system
Stock RMX3300 Chinese images: https://mega.nz/folder/Ilk2CBwb#VMlU6A8wcFJVU0twOD6vTA
All Stock RMX3300 Chinese images (slot B was the correct one when it was backed up): https://mega.nz/folder/d1dxEBTa#nzKU4KuhnDcHjK7MX_D2eA
Click to expand...
Click to collapse
I followed the steps to the letter. Still stuck in a bootloop
Moaz.Magdy said:
I followed the steps to the letter. Still stuck in a bootloop
Click to expand...
Click to collapse
I was stuck in bootloop too when I flashed the global version, try running the last 2 commands or wiping data from recovery then the last 2 commands again.
Code:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot -w
myogui said:
I was stuck in bootloop too when I flashed the global version, try running the last 2 commands or wiping data from recovery then the last 2 commands again.
Code:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot -w
Click to expand...
Click to collapse
Thanks! that did the trick. Finally running global version (from your other post) on chinese phone.
SirGustav said:
Thanks! that did the trick. Finally running global version (from your other post) on chinese phone.
Click to expand...
Click to collapse
Great to hear, congrats!
thanks mate
stuck on bootloop for me. i tried to run last 2 commands again, then it still stucks.
Addswes said:
stuck on bootloop for me. i tried to run last 2 commands again, then it still stucks.
Click to expand...
Click to collapse
I am so close tried the same and still bootlooping for me to
Well damn. Switching to the cable from the realme gt 2 pro box fixed it weirdly!
Ok so I now have a brick as it flashed global and tried to lock bootloader. Guess there is no way to fix? EDL mode?
wildlime said:
Ok so I now have a brick as it flashed global and tried to lock bootloader. Guess there is no way to fix? EDL mode?
Click to expand...
Click to collapse
Don't feel bad I made the same mistake. EDL mode is all you can do. In my case I had a person do it for me (unbrick device). Cost me 15 dollars.
robert3892 said:
Don't feel bad I made the same mistake. EDL mode is all you can do. In my case I had a person do it for me (unbrick device). Cost me 15 dollars.
Click to expand...
Click to collapse
What service did you use?
I used the person in post number 8 here:
MSM Downloaf Tool for realme GT 2 Pro
Does anyone know how to access this tool? This is ridiculous, realme has no useful tool to flash their phones and the one that is useful are impossible to access... The only one that I have access was one patched for some especific Oppo phone...
forum.xda-developers.com
wildlime said:
What service did you use?
Click to expand...
Click to collapse
PM me, I'll give you the cheapest one
thank you , any body help me reup to google drive or other
empty.cad said:
thank you , any body help me reup to google drive or other
Click to expand...
Click to collapse
Up, I need it too. @myogui can you reup to GDrive?
Use Mega , 50 GB for free
Can I use this to re-flash my global device? There are some bugs with my phone and a factory reset doesn't seem to fix it.

Categories

Resources