Kodi with hardware acceleration on RockPro64

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
xlx
Posts: 3
Joined: Sun Oct 06, 2019 4:01 pm

Kodi with hardware acceleration on RockPro64

Post by xlx »

Hello there,

I'm about to receive my RockPro64 and I've already been searching for the best SO options for it. I'd like it to be both a Linux server (so that I can run a couple of services like OwnCloud, a torrent server, Radarr, Sonarr, etc) and also boot it as a Kodi media center so that I could control it using the TV remote (mostly to play my local network videos as well as stream a couple of Plex shares from friends).

Given that context DietPi looks fantastic from the point of view of a robust headless server, but I'm a little worried because I'm not sure whether its Kodi has hardware acceleration support to the RockPro64 or not. I mean, if I install and configure DietPi to directly boot on Kodi will it be as much optimized on the RP64 as, for example, the Libreelec (which as I read on the forums has a well tuned hardware acceleration and supports smooth 4k60 playback)?

I'd appreciate any help or at least some pointing in the right direction.

Thanks and congratulations on the nice work you've been doing with DietPi.
melaniestaines
Posts: 16
Joined: Tue Oct 01, 2019 9:52 am

Re: Kodi with hardware acceleration on RockPro64

Post by melaniestaines »

I have seen people do it on raspberry pi (emulate x86 and play a windows game) using exagear instead of qemo and it was pretty good, they ran a game with low requirments and got around 20 fps.
xlx
Posts: 3
Joined: Sun Oct 06, 2019 4:01 pm

Re: Kodi with hardware acceleration on RockPro64

Post by xlx »

Thanks for the response, but are you sure we're talking about the same thing?

What I'd like to do is install a Linux distro that can go directly to into Kodi (an optimized RockPro64 Kodi, which has hardware acceleration as well as all Libreelec optimizations) but at the same time allow me ssh access so that I can administrate it as I normally do with any Linux server (run for example a torrent client, maybe a http server, etc).
melaniestaines
Posts: 16
Joined: Tue Oct 01, 2019 9:52 am

Re: Kodi with hardware acceleration on RockPro64

Post by melaniestaines »

Yes, i know i didn't talk about the same thing. Just posted a random comment. I am looking into it and post something useful here when i got some.
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: Kodi with hardware acceleration on RockPro64

Post by MichaIng »

We added experimental RK3399 GPU acceleration with v6.26 (currently beta) via Mali drivers provided by RockChip. The question is now if the defaut Kodi from Debian repo can be configured to use these Mali drivers, since RockChip does not provide a special Kodi build: https://github.com/rockchip-linux/rk-ro ... ages/arm64

Would be great if some could test these drivers with Kodi and also how well desktop applications benefit from them: https://github.com/MichaIng/DietPi/issues/3131
After applying beta, simply install or reinstall Kodi: dietpi-software (re)install 31
The drivers are installed together with Xserver.
User avatar
Flexderec
Posts: 2
Joined: Wed Oct 16, 2019 12:16 am

Re: Kodi with hardware acceleration on RockPro64

Post by Flexderec »

This is a verified information.
xlx
Posts: 3
Joined: Sun Oct 06, 2019 4:01 pm

Re: Kodi with hardware acceleration on RockPro64

Post by xlx »

MichaIng wrote: Fri Oct 11, 2019 4:18 pm We added experimental RK3399 GPU acceleration with v6.26 (currently beta) via Mali drivers provided by RockChip. The question is now if the defaut Kodi from Debian repo can be configured to use these Mali drivers, since RockChip does not provide a special Kodi build: https://github.com/rockchip-linux/rk-ro ... ages/arm64

Would be great if some could test these drivers with Kodi and also how well desktop applications benefit from them: https://github.com/MichaIng/DietPi/issues/3131
After applying beta, simply install or reinstall Kodi: dietpi-software (re)install 31
The drivers are installed together with Xserver.
Hello,

I'm really sorry for such a long time without answer. Thing is I only had one sd card and couldn't use it to do my tests. I've just installed DietPi Beta, but I'm having this message when trying to install Kodi as suggested:

Code: Select all

 DietPi-Update
─────────────────────────────────────────────────────
 Mode: Checking for DietPi updates

[ INFO ] DietPi-Update | Checking mirror: https://raw.githubusercontent.com/MichaIng/DietPi/beta/dietpi/server_version-6
[  OK  ] DietPi-Update | Using update server: https://raw.githubusercontent.com/MichaIng/DietPi/beta/dietpi/server_version-6
[  OK  ] DietPi-Update | No update required, your DietPi installation is already up to date:
[ INFO ] DietPi-Update | Current version : v6.26.3 (branch: Fourdee/beta)
[ INFO ] DietPi-Update | Latest version  : v6.26.3 (branch: MichaIng/beta)
root@DietPi:~# dietpi-software install 31
[  OK  ] DietPi-Software | Initialised database
[  OK  ] DietPi-Software | Reading database

 DietPi-Software
─────────────────────────────────────────────────────
 Mode: Automated install

[FAILED] DietPi-Software | Software title (Kodi) is not supported for RockPro64 (aarch64).
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: Kodi with hardware acceleration on RockPro64

Post by MichaIng »

Ah we didn't enable it yet, makes sense of course to test hardware acceleration.

I will enable it for next beta and post required changes to test with current DietPi.

Likely a special Kodi build is required for RK3399 with GPU support. For reference which could work: https://forum.armbian.com/topic/9272-de ... ia-script/
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: Kodi with hardware acceleration on RockPro64

Post by MichaIng »

With this change (can be manually applied) Kodi can be installed on all RK3399 boards, including RockPro64: https://github.com/MichaIng/DietPi/comm ... 0101404f55
Note that the default Kodi package from Debian repo will be installed and I am not sure if it uses the Mali drivers correctly, although in theory since it uses X server and fitting xorg.conf is in place.

However if it does not work, we'll need a custom Kodi build, similar to what Armbian community did as of link in my last post.
Post Reply