Posts by KOPRajs

    Hi there,

    I've recently swapped my old Amlogic MX2 (Meson 6 based) box for a Rockchip RK3399 based box and I've noticed a significant loss in HDMI audio output quality. The box is connected to a SONY HDTV and the output is set to HDMI audio with 2.0 channels. Digital passthrough is disabled. I'm using the official RK3399 image (8.90.015) with Linux 4.4 and RKMPP framework.

    I can't say the sound is not working, it plays almost fine and some people probably wouldn't recognize anything is wrong, but since I've got a decent 2.0 audio system connected to the TV I can definitely say the audio clarity is much worse than it is with the old Amlogic box. It is almost like the output sample rate is limited or resample quality is set to low. Sometimes I can also hear a tiny cracking like when you play a vinyl record :)

    Anyone experiencing similar behaviour on a Rockchip device?

    Kwiboo Can you confirm such behaviour? Could this be a hardware limitation or is it going to improve with the mainline support?

    Thank you.

    Unfortunately I've seen similar behaviour before. The NAND on my first box failed back in OpenELEC days and actually building a custom OE image which could use external SD card instead of the dead NAND was my primary motivation for learning how to build OE from sources.

    My NAND failed after writing a movie on it but there are several reports on the forum of failures after update to various versions.

    The best hypotesis I have is that the NAND usually fails after writing of some bigger files. During normal usage of the box there are only small writes but during the update the NAND gets more stressed and is more likely to fail.

    My LE9 builds for MX2 all use the same kernel image and starting from 9.0.0 basically the same underlying OS so if the previous versions worked for you then it is highly unlikely the new build is the cause of your problem. Seems more like a NAND failure to me.

    The new build is basically just a Kodi update.

    I've just uploaded a new build based on 9.0.2 (Kodi 18.2).


    You can update from previous versions by placing the .tar file to the .update folder and reboot.

    The upstream Kodi 18.2 contains a bunch of fixes for Amlogic from kszaq so the MX2 should now benefit from these as well:

    Amlogic fixes from community builds by kszaq · Pull Request #15859 · xbmc/xbmc · GitHub

    And also this PR is included in the build:

    [Estuary] Fix order of TVShowTitle and Title by DaVukovic · Pull Request #15891 · xbmc/xbmc · GitHub

    crackulator The zip file for 7.95.3 is available in the first post in this thread.

    You can try to run the following command using the USB keyboard:

    1. fsck -f /dev/data

    If it doesn't work then you can try:

    1. mkfs.ext3 /dev/data
    2. tune2fs -L LIBREELEC_DISK /dev/data

    Then report back with the results.

    Actually I've just noticed this commit in Kodi 18 devel log which might have solved the analog AV output problem:

    [AML] read display modes optionally from file · xbmc/[email protected] · GitHub

    You can try to create a file named disp_cap in the /storage/.kodi/userdata/ folder and put 576cvbs text in it.

    Or you can use the following command on SSH:

    1. echo 576cvbs > /storage/.kodi/userdata/disp_cap

    If you are running the latest LE 9.0.x build the analog AV output might start to work after Kodi restart.

    Good luck!

    Hi there.

    1. Regarding the analog AV output I'm afraid there is currently no way to get it to work, sorry. There is no config.txt on the MX2.

    2. To get the internal storage to work you need to create the LIBREELEC_DISK label on it. Turn on the SSH service, connect to the box using e.g. PuTTY (Download PuTTY - a free SSH and telnet client for Windows) and run the following command:

    1. tune2fs -L LIBREELEC_DISK /dev/data

    You can then remove the USB disk and reboot.

    3. The Samba share is used only for updating from the 8.0.2 to 9.0.1.

    You can find more details here (Update LibreELEC []), but basically if you already have the 8.0.2 build working you just need to copy the .tar file to the /storage/.update folder (or to the Update Windows share) and reboot.

    It is always good idea to do a backup before update!

    EDIT: The recovery zip file for MX2 LE 9.0 is currently broken so that's why I only provide the update tar file. There is currently no other way of installing LE 9.0 than installing 8.0.2 and then update to LE 9.0.1 using the tar file.

    Thanks, this is the info I was looking for.

    I've posted the DTB to the H96 MAX thread:

    H96 MAX RK3399

    I've already added hdmi-sound, ir-int and ir-receiver nodes to the original Android DTB and I've also added a HDMI-CEC handle to the pinctrl-0 in HDMI and set audio-cards names.

    The IEP nodes seem to be there and the deinterlacing seems to work as you say (Kodi doesn't reflect it but it works). I'd swear that I've checked that before and the deinterlacing was not working but it definitely does now with official LE 8.90.012.

    Could someone from the devs confirm what is the current status of the deinterlacing support on RK3399? I have no deinterlacing options available on the H96 MAX but I've seen somewhere that it could be due to a bad device tree. Is it true? Is deinterlacing working on other RK3399 devices?


    I'm running LE on H96 MAX. For now forget about WiFi and BT support until the mainline kernel switch but apart from that it runs pretty well. You need to use the correct device tree. I've extracted the one from stock Android and customized it to get the HDMI audio in ALSA, HDMI-CEC and the IR receiver working. You can download it in the H96 MAX thread:

    H96 MAX RK3399

    The only thing I'm missing is deinterlace support. I'm not sure if it is related to the DTB or if it is a global RK3399 problem.

    I've extracted the DTB from latest H96 MAX Android 7.1.2 firmware and tried to use it with the current build for RockPro64. It boots fine and the ethernet works but there is no sound over HDMI.

    After playing with the DTB a bit I got the HDMI audio to work so the box is now at least usable for basic streaming over LAN.

    What works:

    - HDMI (both audio and video)

    - GPU and VPU acceleration
    - LAN

    - USB (both 2.0 and 3.0)

    What does NOT work:

    - WiFi and BT (possibly QCA9377 using SDIO)

    - IR

    - deinterlacing