LibreELEC - RockPi 4

Oh this explains why the lib is missing: https://github.com/LibreELEC/LibreELEC.tv/pull/5422/commits

Still doesn’t work though…

Apparently LE upstream is still doing changes for fixing widevine on 64bit arm as we speak. I guess we just have to wait.

Probably this also needs to be merged


And you need the latest inputstreamhelper addon to load the correct Widevine lib for these new glic patches.

I tried those changes and unfortunately they don’t help. For example if we add the arm64tls glibc suffix like Amlogic does and how inputstreamhelper v0.5.6 expects it will continue to download the “newer” Widevine image automatically without prompting, but will fail just the same with an 1044 error.

Unfortunately I don’t have much free time to look into this and I will continue to use my raspberry pi with libreelec 9.2.7 which for some reason works without problems, not sure what’s happening on Rock Pi 4.

@mo123 BTW I noticed everything works on latest nightly LE except for Widevine and the audio jack.

Can you please point me to the change you did in the 4.4 kernel to enable 3.5mm audio jack support? It likely needs to be added to the newer 5.10 nightly kernel.

Needs to replace changes from rk3399.dtsi
i2s0_8ch_bus: i2s0-8ch-bus {
rockchip,pins =
<3 RK_PD0 1 &pcfg_pull_none>,
<3 RK_PD1 1 &pcfg_pull_none>,
<3 RK_PD2 1 &pcfg_pull_none>,
<3 RK_PD3 1 &pcfg_pull_none>,
<3 RK_PD4 1 &pcfg_pull_none>,
<3 RK_PD5 1 &pcfg_pull_none>,
<3 RK_PD6 1 &pcfg_pull_none>,
<3 RK_PD7 1 &pcfg_pull_none>,
<4 RK_PA0 1 &pcfg_pull_none>;
};
};

Try to convert it to the same format as in rk3399.dtsi and add to the rk3399-rock-pi-4.dtsi file
3 24 is 3 RK_PD0 1, it works in sets of 8 pins

@mo123 Thanks, the work was more involved than that because I had to define some new dts nodes and a new GPIO interrupt for the headphone hotplug detection. The pinctrl definitions for the i2s bus were good upstream and didn’t require modification.

So now I have a patch and working analog audio in the upstream kernel :tada:

However I am very very sad because the audio connector broke on my v1.3 rock-pi-4 just like described here. so I can’t really enjoy the fruit of my effort :anguished:

Anyway I’ll send a patch to the upstream kernel and LibreELEC to get it working for everyone.

For reference here is the patch submitted to the upstream kernel. After it passes review and gets applied, I’ll create a pull request to also add it to LibreELEC.

1 Like

hi
How can I force to hdmi in extlinux.conf for rock pi4c in first boot?