[UNOFFICIAL][Le12][RK3228/RK3229][box]Libreelec builds

  • I want to share my build that I managed to successfully write to emmc with multitool on my two boxes, A95Xr1 and MXQ Pro 4K 5G (RK3229Q-221P-V1.3).

    I cherry-picked one commit from ilmich and one from pocng that enabled this on librelec-11 to my libreelec-12 branch (from here https://github.com/ilmich/LibreELEC.tv/pull/2).

    So thanks to them for their great work!

    Build is here for at least 30 days: https://1fichier.com/?wj9pdvzu202oqo3z0au7

    This build is unsupported. If it works for you, great. If not then you're on your own.

  • @ML

    Very nice work, downloaded, modified the *.conf for my dtb, saved and installed it on my boxes. Even easily added afterwards all my settings and addons.

    I am very happy for don't need the slow MicroSD system anymore. BIG THX :thumbup:

  • Hi Samui67, as far as i remember, the rk322x does not have a sata controller nor a usb3 controller (i'm looking at the case of the device).
    Probably there is a USB to SATA controller that is connected directly to a USB 2.0 port (in many devices there are 4 ports and here i only see 3). In any case, this device is fascinating. Where did you buy it? To try to solve your problem, I would need some LibreELEC logs and probably also the DTS of the original firmware (is it an Android?).

  • Dear Ilmich,

    thank you so much for your reply.

    Here is just one link but i bought directly from Alibaba:

    https://m.sunsky-online.com/de/p/EDA006262201A/MP2506P-4K-30Hz-HD-Media-Player-Support-Auto-Loop-Play-Videos-&-Photos-&-Music-US-Plug-.htm

    Yes there is an Android installed and i used the RK322x Multitool to get a dump of the system already. Unfortunately i do not know how to extract and which files and/or eventually commands are necessary for getting the DTS file.

    As i wrote i already installed the Image from ML-1 and it is working perfect except for detecting the Sata device.

    Attached some more pictures:

    Kind regards

    Samui67

    Edited 2 times, last by Samui67 (May 29, 2025 at 12:27 PM).

  • Samui67 thanks for the info..

    I try to buy it from alibaba, hoping the model with rk322x arrives and not, as for the android boxes, something else. If you can share the first 100mb of your dump I will try to extract dts.

    however given the type of device, it does not recognize the sata hard disk or can you not use it connected to a pc? I ask this because it's possible to configure the kernel to transform the usb ports into usb gadgets and therefore make, for example, an android box similar to an external hard disk that you can connect to a pc. This feature is disabled because I always thought it was not very useful (until today).

  • Hi ilmich,

    the *.gz dump is around 450 mB. If i extract the dump, the size is almost 7.8 GB. Is there some linux tool available for my Ubuntu 22.04, which can split the *gz or unpacked raw dump?

    This is the strange part. Only the USB on the SD slot and IR port side is recognizing devices. Mouse, keyboard,... the blue USB port on the HDMI side detect nothing.

    One other question. Is it possible to get the Android files with the Multitool bash?


    EDIT:

    Confirmed. The USB port on the HDMI side - if it is connected with my PC - is showing the SSD (4TB) correctly and it is read/write accessible. But it is not detected as drive in LibreELEC!

    The USB port on the SD card is not showing anything, but it even can be used as a power supply - because if it is connected, the player takes power over the USB connection. Of course also detects my USB wifi stick, mouse, keyboard,...!

    Edited 3 times, last by Samui67 (May 29, 2025 at 4:44 PM).

  • Samui67 you can use dd to take only the first 100 MB for example like this

    dd if=unpacked.img of=first_100_mb.img bs=1M count=100

    Confirmed. The USB port on the HDMI side - if it is connected with my PC - is showing the SSD (4TB) correctly and it is read/write accessible. But it is not detected as drive in LibreELEC!

    Could you send me a dmesg of libreelec? What filesystem is the hard disk formatted with?

  • Hello ilmich,

    the SSD is formated with the NTFS file system.

    Attached the dmesg log and the download address i did send to you directly for the 100 mb Android backup part.

    logs.txt

    Also i made some new photos of the chips on the player.

    Kind regards

    Samui67


  • ilmich

    Now that a few days have passed and no further inquiries have been received, I just wanted to ask if you've found the time, and if so, whether it's even possible to integrate this hardware configuration into the system.

    Thank you very much for the truly fantastic work you're doing here for all owners of this Rockchip hardware :):thumbup:

  • Looks like they just plop a USB to SATA controller on that board

    ASM1153E|ASMedia Technology Inc.

    so it should work as is. go put a drive on the SATA slot on that board, boot to linux and type in terminal lsusb. If you see a Asmedia chipset on lsusb, then it works as advertised, now you have to figure out how to mount that drive and since this is a NTFS filesystem.

    But a bit googling on this, LE should be able to automount any kind of USB Mass Storage, Im assuming that either this LE build do not have the necessary packages for NTFS support or the filesystem is borked that linux cant mount it cleanly. Or you can just nuke the drive and format it as ext4.

  • remlei

    That's what i did.

    I also made a cross test with the LE10 and LE11 builds. The SSD was also not found. NTFS shouldn't be the problem here.

    Meanwhile i also extracted the dtb but unfortunately there is no entry for the ASmedia chip.

    Could you help me out here?

    EDIT: I forgot to mention. No any USB to SATA bridge device is shown with lsusb.

    Edited 4 times, last by Samui67 (June 18, 2025 at 7:01 PM).

  • If the device is not showing up with "lsusb" then the device is either not connected, not connected via USB, or perhaps has not been powered up (might need something toggled during boot or a dedicated regulator to be described) as the output of the command is a raw read of the devices attached to the USB bus and there is no need for anything to be "supported" with drivers etc.

    NB: device-tree will only describe the connectivity for the USB hub/ports, there's no need to describe attached USB devices because once ports are probed/discovered anything attached to them will be probed and have supported drivers loaded automatically (as it's USB). Asmedia chips are normally supported by the generic "CONFIG_USB_UAS" driver which is enabled by default in LE images; and I would assume in ilmich images too.

    Pastebin the dumped device-tree file, someone else might see something in it.

  • chewitt

    Attached the Android DTS file we managed to get out from the Box DTB and the converted DTS from

    ilmich which - except for the USB to SATA (as ilmich mentioned) - is working nice together with

    my device.

    Maybe wrong addresses or clock frequencies? I really don't know. This is one level to high for me;(

    The extention *.txt must be renamed to *.dts again, because the upload was not possible with it.

    EDIT Pastebin - Links:

    External Content pastebin.com
    Content embedded from external sources will not be displayed without your consent.
    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.

    External Content pastebin.com
    Content embedded from external sources will not be displayed without your consent.
    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.