Xiaomi 3rd gen install to eMMC

I am using eMMC install and 20260712 nightly and it seems mostly fine and functional.

I came across problems trying to watch the latest episode of the anime One Piece, 1080p H264 1.4GB. Video kept on freezing directly from the start and is totally unwatchable. This is strange because I finished an entire 1080p remux and 2160p remux with no issues at all. I tested that this One Piece episode plays with no problems at all outside CoreELEC on Jellyfin LG A1 OLED webOS client and direct play no transcoding.

How should I provide logs to debug this, should I do dmesg | paste or like what is recommended I provide.

First thing to check would be if USB is the problem or if something else is, try booting from USB and seeing if it plays back properly or also has issues.

CoreELEC Toolbox v1.1.1 fixes a issue where a library was called incorrectly causing the toolbox to fail to open for some users, please update to it if you have issues using the below command:

Update: SSH in (ssh root@YOUR-BOX-IP, default password coreelec) and paste one line:

curl -fLo /tmp/toolbox.zip https://github.com/samtheruby/coreelec-android-dualboot-twilight/releases/download/v1.3.0/script.coreelec.toolbox-1.1.1.zip && unzip -tq /tmp/toolbox.zip && systemctl stop kodi && rm -rf /storage/.kodi/addons/script.coreelec.toolbox && unzip -oq /tmp/toolbox.zip -d /storage/.kodi/addons/ && rm -f /tmp/toolbox.zip && reboot

This is a confirmed bug in the latest nightly release due to commit here https://github.com/CoreELEC/xbmc/commit/a8e9d7d0c2ba6438dedf2fd04ba36dd13f467091

This post was done in this thread Xiaomi Box S 3rd Gen: Budget Player w/Dual-boot CE + DV FEL & Google TV as I assumed it was not an eMMC issue but it was moved to here by portisch because I mentioned I was on eMMC. I am glad the issue was found.

New CoreELEC Toolbox v1.1.2 fixes a issue where user-update.sh called a unavailable module in the boot phase causing the gate to fail to be re-asserted

Please update to it using the below command:

Update: SSH in (ssh root@YOUR-BOX-IP, default password coreelec) and paste one line:

curl -fLo /tmp/toolbox.zip https://github.com/samtheruby/coreelec-android-dualboot-twilight/releases/download/v1.3.1/script.coreelec.toolbox-1.1.2.zip && unzip -tq /tmp/toolbox.zip && systemctl stop kodi && rm -rf /storage/.kodi/addons/script.coreelec.toolbox && unzip -oq /tmp/toolbox.zip -d /storage/.kodi/addons/ && rm -f /tmp/toolbox.zip && reboot

After Install run repair dual-boot from the addon to apply the fixes.

This may be incorrect as I tested 20260711 nightly which likely does not have this commit applied and it has problematic playback too on anime opening songs with subtitles on top and bottom. However beta1 has no issues with such a video. Possibly a commit even earlier than this one is the root cause.

Would it be possible to get rid of the android partitions entirely? I have no interest in android, so it would allow having a bit more space fore CoreELEC

I don’t think it’s possible yet but CoreELEC uses pretty much super low space like less than 1 GB so I’m curious what you plan to do with the storage space from removing Android as it’s not like you can comfortably put entire remuxes on the eMMC. If you’re worried about accidentally booting Android that won’t be a problem since you can use toolbox to set default reboot OS to CoreELEC.

Not sure if removing android is the best option for now, because thats the only way we can flash and repartition the eMMC (not sure about the complete capabilities of fastboot)

Would be great if we can flash a custom recovery image of some sort

I didn’t really have a specific why in mind. Just felt cleaner not having android.

But if it’s the only way to partition the flash sounds like a terrible idea. Custom recovery would be cool.

I followed the instructions on my mi box and now it worked perfectly. Then last week one of my kids accidentally reset my mi box and now it doesn’t reboot into coreelec. I followed the guide again to see if I can resolve the issue but I can’t. Then I thought I will just restore to default but I can’t even do that because I installed a fresh copy of windows onto my PC and the “pulled_backups” folder is gone. Is there anyway to restore it without the “pulled_backups” or can someone kindly send their “pulled_backups” folder to me so I can restore to default and reinstall coreelec. Thanks.

I’m not completely sure if this is the same issue you’re having, but something similar happens to me sometimes.

In my case, Android still boots normally, but Reboot to CoreELEC stops actually booting into CoreELEC.

What fixes it for me is going into Android:

Settings → Apps → Reboot to CoreELEC → Force Stop → Clear data/storage

Then I open Reboot to CoreELEC again and run it normally. After doing that, it starts booting into CoreELEC again.

I haven’t found this particular fix documented in the official CoreELEC instructions, so it’s just something that has consistently worked for me.

I’d try that before attempting a full restore.

Also, I would be careful about using someone else’s pulled_backups folder. As far as I understand, those backups are created from your specific device during the installation and contain device-specific/original partition data, so another person’s backup may not be safe to restore to your box.

By the way, I speak Spanish and translated this message using a translator, so I hope everything is clear and understandable.

Hi. I was about to install this, but my newly acquired box came with older firmware than the supported one. I also noticed that Xiaomi had already released a newer firmware, which I assume isn’t supported either. So, I tried to manually sideload the correct version’s OTA package via adb sideload, but the issue is that neither my PC nor Mac recognize the box when it’s in recovery/adb sideload mode. No USB signal detected by either computer at all, so no drivers to install either. USB debugging works fine with USB-A - USB-A cable on both computers, when booted to android. I spent couple of hours debugging yesterday, and came to a dead end. Any ideas? Or any ideas how to update to the UKG3.250826.001/V816.0.7.0.UZFAABX firmware besides adb sideload? I already unlocked the bootloader and installed magisk, I wonder if that could have something to do with it?

I managed to update by buying a USB hub, attaching a keyboard & usb stick, which I used to flash the ota update zip. However, after completing all the installation steps, CoreELEC refuses to boot with any method. When trying to boot, it flashes a black screen for couple of seconds, reboots and boots to android. I did bunch of debugging with the help of LLMs, ran some of the scripts again etc., but it still doesn’t boot. None of the scripts show errors when ran, it just doesn’t boot when all is done. Any ideas what could be the cause?

Yo probarĂ­a otro hub USB antes de repetir la instalaciĂłn de CoreELEC.

Tuve un problema muy similar con mi Xiaomi Box S 3rd Gen. Con mi hub anterior, el pendrive no siempre quedaba enumerado/disponible lo suficientemente rĂĄpido durante el arranque, por lo que algunas veces el equipo omitĂ­a CoreELEC y arrancaba directamente Android.

De hecho pude reproducir el comportamiento del hub en Windows: si conectaba el hub con el pendrive ya conectado, algunas veces Windows ni siquiera detectaba el pendrive. Si conectaba primero el hub y después insertaba el pendrive, aparecía normalmente.

ReemplacĂ© ese hub por un TP-Link UE330 (3× USB 3.0 + Gigabit Ethernet) y desde entonces funciona de forma muy confiable con CoreELEC, incluyendo los reinicios.

Por eso, antes de modificar nuevamente la instalaciĂłn, probarĂ­a el pendrive de CoreELEC directamente en el Xiaomi o con otro hub. Si ademĂĄs necesitas Ethernet, el TP-Link UE330 funciona muy bien en mi configuraciĂłn.

In English:
I would try a different USB hub before redoing the CoreELEC installation.

I had a very similar problem with my Xiaomi Box S 3rd Gen. With my previous hub, the USB drive was not always enumerated/available quickly enough during boot, so the box would sometimes skip CoreELEC and boot straight into Android.

I was actually able to reproduce the hub behaviour on Windows: if I connected the hub with the USB stick already plugged into it, Windows sometimes didn’t detect the stick at all. If I connected the hub first and then inserted the USB stick, it appeared normally.

I replaced that hub with a TP-Link UE330 (3× USB 3.0 + Gigabit Ethernet) and it has been working very reliably with CoreELEC, including reboots.

So before changing the installation, I would try the CoreELEC stick directly in the Xiaomi, or try another hub. If you need Ethernet as well, the TP-Link UE330 works very well in my setup.

Intenté instalar coreELEC a eMMC, no el pendrive. Solo utilicé el pendrive para actualizar android.

I tried installing CoreELEC to the eMMC, not the USB drive. I only used the USB drive to update Android.

Hi,

I am following the dualboot guide on GitHub for the Xiaomi TV Box S (3rd Gen) running the latest stock firmware version.

I got to the Magisk step and ran:
python installer/install.py stage_magisk

The script runs and the device automatically reboots into Android as expected. However, once inside the system, I cannot patch the correct init_boot.img inside the Magisk app (the patching process fails / Magisk doesn’t allow me to patch the file properly).

Because of this, Magisk doesn’t complete its setup and root access is not working, so I can’t proceed to the next stages. Has anyone encountered this issue on the latest firmware version, or is there a workaround to get the init_boot.img properly patched/installed here?

Any help would be greatly appreciated!

the installation is not updated for the latest june security patch update, so you have to wait until it gets update, I also wait for it as I have three boxes to install. :slight_smile: