Flashing CM13 Requirements - Xiaomi Mi 5 Questions & Answers

Dear All,
Please be informed that I have flashed MIUI 8 TWRP Recovery successfully, but the issue that I am not able to flash CM13 ROM because after flashing the CM13 ROM the device will stack on Mi Logo, so what I have to flash as right now I am using TWRP v3.0 with MIUI 8 v6.6.16 China Dev.
Please I need the proper boot.img and recovery.img for CM13, and the proper boot.img and recovery for both MIUI 7 and MIUI 8
Thanks.

Have you followed the installation instruction and got all the installation files from this thread (http://forum.xda-developers.com/mi-5/development/rom-cyanogenmod-13-t3402292) step-by-step?
Your problem usually results from a bad flash, either because of faulty recovery or incomplete flash.
Regarding boot and recovery images, those are included in the CM zip file. As for official versions, I suggest you to do a full Miflash flash_all, since the boot and recovery need to be matched to the correct data and system images to work properly.

Lazer Bear said:
Have you followed the installation instruction and got all the installation files from this thread (http://forum.xda-developers.com/mi-5/development/rom-cyanogenmod-13-t3402292) step-by-step?
Your problem usually results from a bad flash, either because of faulty recovery or incomplete flash.
Regarding boot and recovery images, those are included in the CM zip file. As for official versions, I suggest you to do a full Miflash flash_all, since the boot and recovery need to be matched to the correct data and system images to work properly.
Click to expand...
Click to collapse
Dear Lazer,
The issue has been solved. I have to be on MIUI 7 ROM then I can be able the flash the CM13 ROM.
Thanks.

only miui 7

Related

installing MIUI7 on MI3 through custom recovery cwm

Hi,
I want to install MIUI 7.But currently I am on CM12 with cwm recovery.Can anyone please let me know can I flash MIUI 7 directly.If not let me know how I can proceed.
Thanks
nsakhare said:
Hi,
I want to install MIUI 7.But currently I am on CM12 with cwm recovery.Can anyone please let me know can I flash MIUI 7 directly.If not let me know how I can proceed.
Thanks
Click to expand...
Click to collapse
Xiaomi Developer ROMs are delivered through flashable zips and through fastboot images, maybe look into the second option. Be aware that Xiaomi ROMs might replace the Recovery upon boot, if that isn't included in the fastboot image already, which I think is likely, and take a look into potential partitioning hazards.
Edit: To be extra helpful, here's the thread http://en.miui.com/thread-149081-1-1.html
I failed while flashing miui 7 stable on cwm r11, btw miui 6 worked for me everytime even on extended partition.
So I'd say no
hope this helped you
Fikshun said:
I failed while flashing miui 7 stable on cwm r11, btw miui 6 worked for me everytime even on extended partition.
So I'd say no
hope this helped you
Click to expand...
Click to collapse
Stable version will not work in extended partition. Only developer version will work. I think so
24likan said:
Stable version will not work in extended partition. Only developer version will work. I think so
Click to expand...
Click to collapse
I'm currently on Miui 6.7.1.0 stable china rom on extended partition it worked for me
I am miui 7 global stable, i flashed with twrp on extended partition without problems.
slavke1976 said:
I am miui 7 global stable, i flashed with twrp on extended partition without problems.
Click to expand...
Click to collapse
really cuz twrp failed me everytime
which version of twrp are you using
Yes really, twrp is version 2.8.5.0 . To repartition i used cwm recovery, then i changed to twrp.
When i tried to flash miui v6 with twrp i failed, then i changed to cwm recovery, and then i flashed. Try like this if twrp makes failed flashing.
slavke1976 said:
Yes really, twrp is version 2.8.5.0 . To repartition i used cwm recovery, then i changed to twrp.
When i tried to flash miui v6 with twrp i failed, then i changed to cwm recovery, and then i flashed. Try like this if twrp makes failed flashing.
Click to expand...
Click to collapse
what about miui 7 did you flash it with cwm too
I also faced same issue, I found workaround for it from MIUI forums.
1) Go to recovery and wipe all (except internal storage)
2) Flash MIUI rom
3) You will get error, now just go to reboot and select recovery
4) flash rom again (without wiping) and it should work
Using latest TWRP
pra300 said:
I also faced same issue, I found workaround for it from MIUI forums.
1) Go to recovery and wipe all (except internal storage)
2) Flash MIUI rom
3) You will get error, now just go to reboot and select recovery
4) flash rom again (without wiping) and it should work
Using latest TWRP
Click to expand...
Click to collapse
did you try the above steps on TWRP?
and does it work on extended partition
Yes twrp-2.8.7.0
I am on stock partition now. I think it should work with extended partition as it worked for me in the past when I tried MIUI 6. Its only the update which you will need to flash using recovery. Give it a try.
Yes i flashed with twrp recovery, it was working. First i flashed stable miui v7, then i reflashed with stable rooted version of miui v7 stable. so 2 times flashed v7 with twrp on extended partitions. I have mi4. but it should work as it is cancro
slavke1976 said:
Yes i flashed with twrp recovery, it was working. First i flashed stable miui v7, then i reflashed with stable rooted version of miui v7 stable. so 2 times flashed v7 with twrp on extended partitions. I have mi4. but it should work as it is cancro
Click to expand...
Click to collapse
alright I'll try it out
pra300 said:
Yes twrp-2.8.7.0
I am on stock partition now. I think it should work with extended partition as it worked for me in the past when I tried MIUI 6. Its only the update which you will need to flash using recovery. Give it a try.
Click to expand...
Click to collapse
thanks bro it worked for me I successfully flashed Stable Miui 7 on extended partition through trwp just as you mentioned
Wouldn't flashing the fastboot image file through MI suite work? I am also on cm12.1 but would like to switch back to miui 7 developer versions. I thought a simple fastboot image flash should work
aces170 said:
Wouldn't flashing the fastboot image file through MI suite work? I am also on cm12.1 but would like to switch back to miui 7 developer versions. I thought a simple fastboot image flash should work
Click to expand...
Click to collapse
what if i don't have a PC
Fastboot method for fast and clean install.. not sure if flashing miui rom thru twrp/cwm will work..
twist9 said:
Fastboot method for fast and clean install.. not sure if flashing miui rom thru twrp/cwm will work..
Click to expand...
Click to collapse
i suddenly got bootlop on Cm12.1, didnt do anything to my mi3 it just happen
so i decided to flash again, worked and boot up and few minutes it bootloop again
switch to miui7 and flash using miflash to get clear of everything but,
i got unspecified error (0x80004005:FAILED) (remote sized too large)
while flashing using miflash
any suggestion how to unbrick this??
BTW im on extended partition
vranxzs said:
i suddenly got bootlop on Cm12.1, didnt do anything to my mi3 it just happen
so i decided to flash again, worked and boot up and few minutes it bootloop again
switch to miui7 and flash using miflash to get clear of everything but,
i got unspecified error (0x80004005:FAILED) (remote sized too large)
while flashing using miflash
any suggestion how to unbrick this??
BTW im on extended partition
Click to expand...
Click to collapse
restore to stock partition and try it should work

Can't install official update zip file in TWRP

I would install Global Dev ROM 7.2.16 miui_MI5Global_7.2.16_ab1851be8e_7.0.zip in TWRP (last version 3.0.2-3) but after installation, my phone not boot to system it stuck at mi.com screen.
If I flash other custom ROMs then everything is OK
Does this mean that I can't install official MIUI zip files in TWRP?
zukers said:
I would install Global Dev ROM 7.2.16 miui_MI5Global_7.2.16_ab1851be8e_7.0.zip in TWRP (last version 3.0.2-3) but after installation, my phone not boot to system it stuck at mi.com screen.
If I flash other custom ROMs then everything is OK
Does this mean that I can't install official MIUI zip files in TWRP?
Click to expand...
Click to collapse
This has been discussed many times. Do not flash stock miui rom with TWRP. Use Miflash tool instead.
in the setting
choose the 'support official update'
@muchlas46
I can't use Miflash because if I will flash this file using Miflash then TWRP will be overwrite.
And If I would do that and then install again TWRP it will be asking me in first entry to decrypt data so I have to format freshly installed Global Dev ROM so I'm back in start point.
I would have TWRP, unlocked bootloader(have it) and GLOBAL dev, so to do that?
https://forum.xda-developers.com/mi-5/development/tool-flashable-firmware-twrp-easy-t3474898
flash "Latest one -> Developer 7.2.9 Firmware:",then flash custom ROM(ex:Lineage OS)
I don't wan't custom ROM, I want to install official ROM from this e.g Global dev :
http://en.miui.com/download-299.html#443
anh have this official ROM with TWRP as recovery, is any hint to do this?
I want the EXACLY same thing LOL and i try everything but i cant have TWRP and Global dev, sorry i just wait with you for one solution.
I have idea how to do this but I'am afraid bricking my phone
Inside official fastboot file, after extracting is folder "images" inside is recovery.img file - this is stock recovery.
It could be maybe possible to replace this file to twrp file and leave it with the same name, then during Mi-flash will be TWRP installed instead stock recovery.
1. flash the firmware given above.
2.nougat miui often doesn't boot with only a clean twrp flash,that's why you have to flash the nougat firmware posted above.
else
1.flash 6.11 marshmallow global beta.
2.reboot
3.now flash nougat beta

Cant return to MIUI from LineageOS

Wipe everything
Install global developer zip file
When reboot, twrp says no OS installed
Help pls
if the recovery method of flashing the full rom fails, then you have no other recourse except to flash via fastboot method.
take note of this "Please wipe all data in Recovery mode if you want to update to a discontinuous ROM version, or downgrade to an older ROM version using MIUI full ROM pack. If you upgrade from MIUI Stable ROM based on Android M to MIUI Developer ROM based on Android N, please flash it via Fastboot update. Recovery update might cause upgrade failure."
http://en.miui.com/a-232.html
http://en.miui.com/a-234.html
lucasho2312 said:
Wipe everything
Install global developer zip file
When reboot, twrp says no OS installed
Help pls
Click to expand...
Click to collapse
Did you just tried rebooting to system after flashing? I also got that error "no OS installed" in TWRP so many times, but rebooting to system with no problems at all.
nnth said:
Did you just tried rebooting to system after flashing? I also got that error "no OS installed" in TWRP so many times, but rebooting to system with no problems at all.
Click to expand...
Click to collapse
Unmounted system before flashing ROM .
in my opinion why just not use rom from xioami.eu because you have custom recovery .
p.chandra284 said:
Unmounted system before flashing ROM .
Click to expand...
Click to collapse
Dont unmount system flash zip and after flash use hardware buttons to reeboot
U need to format data before installing miui
lucasho2312 said:
Wipe everything
Install global developer zip file
When reboot, twrp says no OS installed
Help pls
Click to expand...
Click to collapse
The reason is, that you can't flash OFFICIAL Chinese (Developer/Stadle) Rom with cusom recovery (TWRP). But you can flash anything esle. Like Lineage OS. If you want to use MIUI Rom, you have to flast a Xiaomi.eu ( developer or stable) rom. NOT OFFICIIAL CHINESE !!! If you prefer Official Chinese Global rom, you must download a FASTBOOT rom (not recovery) , and flash it in fastboot mode, with MiFlash.
instead of beating around the bush, why not follow the official procedure of flashing an official miui rom
if you are coming from a custom rom, as specified herein?:
http://en.miui.com/a-234.html
When can we expect official RR for mi max 2?
It was already available for redmi note 4 which is having the same processor.
You have to wait for custom Rom until miui release the kernel source which is must have to develop a custom one. please be patience...
If you flash rom with out error, Even no os installed warning, you can boot into system without problem.

help install back 9.1.10 stable from xiaomi eu beta latest wia twrp

hi friend i have xiaomi redmi 4x i have unlocked bootloader OK
I have install twrp 3110 OK
when i install this xiaomi.eu rom latest beta everything is OK
when i want install back latest stable global 9.110 by xiaomi i download normal recovery rom from xiaomi site and put it on phone storage then i normal go twrp wipe (factory reset) install 9110 install is ok
when i click reboot system i see on boot only mi logo and no this .... powered by android
also same when i choose in twrp wife all data system etc expect storage where is this downloaded rom.
could any explain me why it stuck at boot if installation via twrp is ok ?
but when i install back this xiaomi.eu rom boot works OK
tubabuyukustun said:
hi friend ....
could any explain me why it stuck at boot if installation via twrp is ok ?
Click to expand...
Click to collapse
Hello, this happens because official MIUI boot.img verifies if recovery.img is also official/original.
You have 2 options to resolve the boot problem:
1. If you want to keep TWRP then modify boot.img... http://en.miui.com/thread-249666-1-1.html (with R4X image of course)
and flash it from TWRP or fastboot: fastboot flash boot boot.img
2. If you want original recovery, get "recovery.img" from the exact TGZ image as your MIUI ZIP
and flash it: fastboot flash recovery recovery.img
:good:

[GUIDE] [F.A.Q.] [chef] [TREBLE] Common Hurdles and Solutions for First Timers!

This thread is meant to address all the common hurdles that are commonly faced by people who are new to treble devices (chef to be specific) and help them to troubleshoot/avoid some small yet critical steps during flashing new ROMs and working with fastboot and recovery in general. It will be continually updated with new stuff as it goes along.
I will be referring to the Motorola One Power and Moto P30 Note as chef only from now on.
The unlocking guide is available in This XDA Thread!
IMPORTANT:
1. Flashing refers to the process of doing a clean flash, with the inclusion of fastboot -w command
2. Latest ADB and Fastboot drivers are required to be installed, else the installation may halt mid-way.
3. Stock ROM refers to the Android One ROM for the Motorola One Power [XT 1942-2]
IMPORTANT: AS OF RIGHT NOW, PEOPLE WHO HAVE INSTALLED STOCK PIE (EITHER VIA UPDATE OR FIRMWARE) WILL NOT BE ABLE TO USE ANY OTHER ROM OTHER THAN THE STOCK PIE ROM. RADIO INTERFACE LAYER IS BROKEN IN OREO SOURCE BUILT ROMS AND THAT CURRENTLY INCLUDES LINEAGE 16 SO PLEASE WAIT FOR PIE SOURCE CODE FROM MOTOROLA FOR THAT TO BE FIXED.
1. I unlocked my chef . How do I flash TWRP in place of the stock recovery?
Solution:Currently you cannot as there is no recovery partition in the device. You have to manually boot TWRP onto the device using fastboot to use it. Follow as directed:
Boot the device into fastboot mode
Use command fastboot boot <path/to/TWRP.img> to boot TWRP temporarily.
2. I am done with TWRP and I want to flash Lineage OS 16 on my chef. I simply flash the .zip archive right?
Solution:No. Before you flash anything,
Take a backup of atleast your EFS and PERSIST partitions using TWRP and off-load it for safekeeping to restore in future if needed. You can also trigger a full backup if you require.
SUPER IMPORTANT: Flash this .zip file to copy the System A/B partitions. If this step is skipped, you will be responsible to brick your own device. THIS STEP IS ONLY REQUIRED ONCE AND ONLY ONCE IN THE LIFETIME OF YOUR DEVICE! YOU WON'T BE NEEDING THIS THE NEXT TIME YOU FLASH ANY ROM. .
After that, flash your dearest custom ROM and get going.
For Lineage OS 16, follow This XDA Thread.​
3. I am done testing LOS 16, I want to flash a GSI. Shall I use a stock Vendor Image for the GSI on my chef?
Solution:No. The stock Vendor image is causing bootloop issue in most GSIs. It is recommended to use Lineage OS Vendor to flash a GSI on chef. So flash LOS and then flash your favourite GSI.
Also, Super Important: for those who haven't used lineage before flahing a GSI, it is required to boot Lineage OS first before flashing a GSI. ​
4. I am done experimenting, I want to go back to the stock image. How do I proceed?
Solution:Follow this XDA thread for it. And don't install OTA updates directly from the device. It will come in the next step.​
5. I want to install OTA updates on the stock ROM. How do I proceed?
Solution:Follow this XDA post for it. The installation process is described here. You have to be clever enough to get the appropriate OTA update. ​
Credits:
@erfanoabdi : TWRP, LOS 16, AB partition management
@rushiranpise : Unlocking guide
@dayask : Testing the process, guide for reflashing stock ROM
@nageen9211 : Testing ROMs
For any additional queries, feel free to contact us at our Telegram Group
For more regular updates, follow our Telegram Channel
Always remember: You have to be smarter than your smartphone to be able to use it!
Cheers and Happy Flashing!​
Note to readers
The above guide is for stock kernels only (including lineage)
The custom Darkone Kernel has constant updates and fixes major bugs often. Please follow the linked thread to test it out if you want to. Cheers!
Anyone have flashed GSI ROM? FOr me after flash GSI HavocOS have bootloop :/
DIdn't flash copy system A/B partitions, stuck on bootloop with custom roms.
Watched some youtube videos and didn't read this post before flashing custom ROM. Flashed Custom ROM without flashing A/B partitions. Now I have a phone stuck on bootloop when done anything in TWRP. or I can use my phone with stock ROM installed by fastboot method.
Installing or restoring anything from TWRP results in boot loop.
Restoring the backup I made before flashing, completes the restoration process normally. But when rebooting to system, TWRP prompts me that no OS is installed. If I reboot anyway, its either stuck on bootloop or reboots to recovery and asks me to try again or factory reset, or boots into bootloader mode.
Installing custom ROM begins with Step 1, takes a bit time and starts step 2 and shows completed. Doesn't echos any comments. But when i reboot, same prompt shows saying no OS installed. Reboot anyway and stuck on bootloop or reboots to recovery and aks me to try again or factory reset, or boots into bootloader mode.
Now I installed stock ROM with fastboot method and phone is boots up into system just fine.
Sometimes TWRP can't mount anything.
So am I stuck with stock rom or is there any solutions?
Also, installing stock ROM with fastboot mode showed this error in between scripts
(bootloader) is-logical:xxx_a: not found
and
(bootloader) is-logical:xxx_b: not found
but is able to use the phone just fine with stock ROM.

Categories

Resources