[GUIDE][alioth] How to install Xiaomi.eu ROM for Xiaomi Redmi K40


minotavros

Members
Dec 21, 2016
349
67
Yesterday unlock my bootloader and installed latest xiaomi.eu weekly rom without any problem.
For those who confused correct steps I follow these steps and successfully installed rom.

1. Unlock bootloader. Then when the phone reboot and ask for miui password, powered off my device and go to fastboot mode again.
2. Boot to twrp as described here until step 4.


3. Then press on home button(not reboot to twrp) in twrp and installed latest weekly rom zip.

4. After flash finishing go back and choose "format data"

5. Reboot to system and after 5 minutes the device booted on new rom.
Also as I can see the twrp remains after installation new rom

Poco F3 via Tapatalk
 
  • Like
Reactions: steelcow

Faris Silmy

Members
Mar 19, 2016
2
15
The steps I done is :
1. Unlock bootloader
2. After phone reboot, I go to stock recovery and wipe data.
3. After phone reboot again, I boot into fastboot mode using "Vol-" and "Power" button
4. I boot the TWRP.
5. I copy xiaomi.eu V12.5.3.0 RKHCNXM zip file into the device, that time still showing internal storage and flash it via TWRP.
6. I reboot to system but stuck in Redmi Logo twice before it go to TWRP again. This time the internal storage cannot be read.
7. I flash TWRP image using USB OTG in "Settings"--->"Install Recovery Ramdisk" and reboot to recovery.
8. I install rom zip file again using USB OTG and reboot to system but end up into TWRP recovery again.
9. I use "Format Data" button in TWRP ("Wipe" Menu), now works and boot up into system after long time waiting. You will see the MIUI logo stuck for about 3 to 5 minutes if not mistaken before setup page showed up.

@Poney70 Can you tell me which step I have made is wrong?

Thank you random citizens! You saved my phone, I experienced the same things, thanks, this really helps
 
  • Like
Reactions: steelcow

LordDifre

Members
Apr 27, 2021
1
3
Hello! :)

For this recent device, you can't flash TWRP via fastboot but fastboot boot TWRP. ;)

Here are my recommended steps for the first Xiaomi.eu ROM installation:

1) Boot to stock Recovery and "Wipe Data" [ Do NOT let your phone boot into system after the wipe! => Hold (ASAP) " Vol - " and " Power " buttons simultaneously in order to boot in Fastboot mode ]

2) Boot TWRP (do NOT flash TWRP)

3) Put Xiaomi.eu in internal storage and flash it

4) Reboot your device and voilà!
Hi, I'm trying to follow your steps, but I have problems with the step 3.

To push the Xioami.eu rom inside the internal storage I run through adb: adb push ROM.zip /sdcard/

Code:
C:\Flash>adb push xiaomi.eu_multi_HMK40_POCOF3_V12.5.3.0.RKHCNXM_v12-11.zip /sdcard/
adb: error: failed to copy 'xiaomi.eu_multi_HMK40_POCOF3_V12.5.3.0.RKHCNXM_v12-11.zip' to '/sdcard/xiaomi.eu_multi_HMK40_POCOF3_V12.5.3.0.RKHCNXM_v12-11.zip': remote write failed: No space left on device
xiaomi.eu_multi_HMK40_POCOF3_V12.5.3.0.RKHCNXM_v12-11.zip:...pushed, 0 skipped. 38.2 MB/s (3629504023 bytes in 90.570s)
Things I've tried:
  • Push to /storage/, but same output. I can push small test files, but not the rom itself.
  • In TWRP the "Format Data" option, but the issue persists.
  • From Mount, enable MTP and try to copy the file through Windows. It says that the device do not respond or that it has been disconnected.

Where exactly do I have to copy the files?
Thanks for the help in advance.
 

Poney70

Donator
Oct 3, 2019
4,082
337
Where exactly do I have to copy the files?
Thanks for the help in advance.
If you can't copy files in internal storage, follow these steps:

1) Reboot once your device to System (MIUI) and finish the first configuration wizard

2) Hold " Vol - " and " Power " buttons simultaneously to boot in Fastboot mode

3) Use "fastboot boot twrp.img" command to boot TWRP

Now try to copy the file and install it. After installation, go in "Wipe" menu of TWRP => Use "Format Data" button => Type 'yes' to confirm => After that, reboot your device.

:)
 
Last edited:

jawsdragon

Members
Jun 13, 2021
1
3
Hello. I'm pretty new to flashing and even forum stuffs. But idk if I missed it. But is OTA update still not possible? Also do I have to update the rom every week?
 

Frederik VDP

Members
Aug 10, 2013
103
40
Hello. I'm pretty new to flashing and even forum stuffs. But idk if I missed it. But is OTA update still not possible? Also do I have to update the rom every week?
OTA is possible, but you will reboot into recovery when you press install.
If you are on the weekly rom, a new build will be provided every thursday, you don't have to install it. But if you aren't planning on installing weekly builds, I suggest you just install the stable roms.