PINE64
Debian Stretch and Kodi Krypton on Rock64 - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85)
+--- Forum: Linux on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=88)
+--- Thread: Debian Stretch and Kodi Krypton on Rock64 (/showthread.php?tid=5215)

Pages: 1 2 3


RE: Debian Stretch and Kodi Krypton on Rock64 - stuartiannaylor - 10-08-2017

(10-08-2017, 03:46 PM)Kwiboo Wrote:
(10-08-2017, 02:22 PM)stuartiannaylor Wrote: with some libreelec hacks from Raybuntu & Kwiboo

Please refrain from calling our work a "hack". Me, LongChair and omegamoon have been working on ensuring that Kodi, FFmpeg and LibreELEC runs efficiently on Rockchip using DRM/KMS last few months.
We have direct contact with Rockchip engineers and have been keeping them busy fixing media playback and other issues we report in the rockchip 4.4 kernel. Lots of the kernel improvements we have made ourself should make its way back to rockchip's 4.4 kernel soon.

As for Kodi and desktop support Wayland is going to be the best way forward, all Kodi implementations for xserver I know of is using EGL for video rendering and that will only limit video rendering to the rather slow GPU. The video never hits the GPU when Kodi is running on LibreELEC, the GPU is only used for EGL/GLES rendering of GUI and OSD.
EGL/GLES rendering of GUI and OSD is exactly what I have been talking about I have not even managed to move onto video rendering yet...!

I don't know why I have to refrain from terms of hacks as currently the lack of working EGL/GLES means exactly certain hacks to reduce functionality workload have been employed.
I have no idea why you are being so precious about the term hack, maybe I should call it your art Smile
Code, hack, work or art still doesn't mean that Kodi is running efficiently on linux as it isn't.
Its not a derogatory term or meant to be but its a relative description to the reality we have currently.

Wayland probably is, Leia probably is and the main context of what I said was trying to get my head round what we have now.

I have started watching the rockchip repo's and will look forward to your input but I am still trying to work out how to get a rockchip optimised xserver and like I keep saying to be honest I am confused as hell to the images we are provided with for the Rock64.


RE: Debian Stretch and Kodi Krypton on Rock64 - Kwiboo - 10-08-2017

(10-08-2017, 04:24 PM)stuartiannaylor Wrote: Kodi is running efficiently on linux as it isn't.

Xserver or linux desktop is of no interest to me, but running Kodi efficiently on linux very much is, and the most optimized and efficient way of doing just that is using pure DRM/KMS and bypassing any windowing system such as xserver/wayland exactly like we do with Kodi on LibreELEC linux.

You should be able to build Kodi/mpv/ffmpeg/mpp with the same patches and build flags we use with LibreELEC on any of the other images and run it very efficient when xserver/wayland is stopped.
All libmali libs provided by Rockchip for ROCK64 implements the EGL_KHR_platform_gbm extension and should work with our DRM/KMS Kodi/mpv patches. You will also need the patched libmali include files for proper EGL/GLES build support, see https://github.com/rockchip-linux/libmali/pull/15.

If you are looking for running Kodi on xserver and being caped by the GPU it should be possible using the armsoc driver and some patches from https://github.com/omegamoon/LibreELEC.tv/commits/master


RE: Debian Stretch and Kodi Krypton on Rock64 - stuartiannaylor - 10-08-2017

(10-08-2017, 04:58 PM)Kwiboo Wrote:
(10-08-2017, 04:24 PM)stuartiannaylor Wrote: Kodi is running efficiently on linux as it isn't.

Xserver or linux desktop is of no interest to me, but running Kodi efficiently on linux very much is, and the most optimized and efficient way of doing just that is using pure DRM/KMS and bypassing any windowing system such as xserver/wayland exactly like we do with Kodi on LibreELEC linux.

You should be able to build Kodi/mpv/ffmpeg/mpp with the same patches and build flags we use with LibreELEC on any of the other images and run it very efficient when xserver/wayland is stopped.
All libmali libs provided by Rockchip for ROCK64 implements the EGL_KHR_platform_gbm extension and should work with our DRM/KMS Kodi/mpv patches. You will also need the patched libmali include files for proper EGL/GLES build support, see https://github.com/rockchip-linux/libmali/pull/15.

If you are looking for running Kodi on xserver and being caped by the GPU it should be possible using the armsoc driver and some patches from https://github.com/omegamoon/LibreELEC.tv/commits/master

Cheers Kwiboo will have a look


RE: Debian Stretch and Kodi Krypton on Rock64 - jerhoads - 11-08-2017

Hello Kwiboo. I have installed several Linux versions on my Rock64 and the only version that runs Kodi correctly is Radostan's LibreELEC build. I would like to build a version of Kodi that runs on a minimal Debian/Ubuntu distribution, preferably without the XWindows environment as you mentioned above. You also mention several patches in your post above. Could you provide me with some kind of direction regarding how to approach building a stable version of Kodi on Debian? Thank you in advance for your help.


RE: Debian Stretch and Kodi Krypton on Rock64 - lnk - 11-08-2017

(11-08-2017, 12:53 AM)jerhoads Wrote: Hello Kwiboo.  I have installed several Linux versions on my Rock64 and the only version that runs Kodi correctly is Radostan's LibreELEC build.  I would like to build a version of Kodi that runs on a minimal Debian/Ubuntu distribution, preferably without the XWindows environment as you mentioned above.  You also mention several patches in your post above.  Could you provide me with some kind of direction regarding how to approach building a stable version of Kodi on Debian?  Thank you in advance for your help.

+1


RE: Debian Stretch and Kodi Krypton on Rock64 - lnk - 11-08-2017

(10-08-2017, 04:58 PM)Kwiboo Wrote:
(10-08-2017, 04:24 PM)stuartiannaylor Wrote: Kodi is running efficiently on linux as it isn't.

Xserver or linux desktop is of no interest to me, but running Kodi efficiently on linux very much is, and the most optimized and efficient way of doing just that is using pure DRM/KMS and bypassing any windowing system such as xserver/wayland exactly like we do with Kodi on LibreELEC linux.

You should be able to build Kodi/mpv/ffmpeg/mpp with the same patches and build flags we use with LibreELEC on any of the other images and run it very efficient when xserver/wayland is stopped.
All libmali libs provided by Rockchip for ROCK64 implements the EGL_KHR_platform_gbm extension and should work with our DRM/KMS Kodi/mpv patches. You will also need the patched libmali include files for proper EGL/GLES build support, see https://github.com/rockchip-linux/libmali/pull/15.

could you explain how to implement it inside stretch ?


RE: Debian Stretch and Kodi Krypton on Rock64 - Florent - 11-11-2017

(11-08-2017, 04:49 PM)lnk Wrote:
(10-08-2017, 04:58 PM)Kwiboo Wrote:
(10-08-2017, 04:24 PM)stuartiannaylor Wrote: Kodi is running efficiently on linux as it isn't.

Xserver or linux desktop is of no interest to me, but running Kodi efficiently on linux very much is, and the most optimized and efficient way of doing just that is using pure DRM/KMS and bypassing any windowing system such as xserver/wayland exactly like we do with Kodi on LibreELEC linux.

You should be able to build Kodi/mpv/ffmpeg/mpp with the same patches and build flags we use with LibreELEC on any of the other images and run it very efficient when xserver/wayland is stopped.
All libmali libs provided by Rockchip for ROCK64 implements the EGL_KHR_platform_gbm extension and should work with our DRM/KMS Kodi/mpv patches. You will also need the patched libmali include files for proper EGL/GLES build support, see https://github.com/rockchip-linux/libmali/pull/15.

could you explain how to implement it inside stretch ?

Hello,

i'm really  interested by the way to implement. I will have a look but i think my Unix knowledge isn't enough.


RE: Debian Stretch and Kodi Krypton on Rock64 - Florent - 11-21-2017

(10-08-2017, 04:58 PM)Kwiboo Wrote:
(10-08-2017, 04:24 PM)stuartiannaylor Wrote: Kodi is running efficiently on linux as it isn't.

Xserver or linux desktop is of no interest to me, but running Kodi efficiently on linux very much is, and the most optimized and efficient way of doing just that is using pure DRM/KMS and bypassing any windowing system such as xserver/wayland exactly like we do with Kodi on LibreELEC linux.

You should be able to build Kodi/mpv/ffmpeg/mpp with the same patches and build flags we use with LibreELEC on any of the other images and run it very efficient when xserver/wayland is stopped.
All libmali libs provided by Rockchip for ROCK64 implements the EGL_KHR_platform_gbm extension and should work with our DRM/KMS Kodi/mpv patches. You will also need the patched libmali include files for proper EGL/GLES build support, see https://github.com/rockchip-linux/libmali/pull/15.

If you are looking for running Kodi on xserver and being caped by the GPU it should be possible using the armsoc driver and some patches from https://github.com/omegamoon/LibreELEC.tv/commits/master

Hi,

I would like to build Kodi / mpv / ffmped / mpp on my Debian Stretch Rock64.
I'm learning how to use Automake, Cmake, etc. 
I'm still not familiar with that but i think it's ok to build : 
- mpp from https://github.com/rockchip-linux/mpp. No error after make install.
- ffmpeg from https://github.com/Kwiboo/FFmpeg/tree/rockchip-krypton 

But i'm not sure that is what you meant ?
Could you explain how to apply the patches and build flags from LibreElec ? I guess it's from here ? https://github.com/Kwiboo/LibreELEC.tv/tree/rockchip-part3/projects/Rockchip


RE: Debian Stretch and Kodi Krypton on Rock64 - dawnbandit - 11-25-2017

I've got Kodi up and running on the Xenial Minimal image, it is a bit slow and I have yet to try doing any 1080p or 4K content yet. I believe it has recognized the GPU for GPU acceleration, again, I have yet to try video yet. I wish it would support HDR on Non Android Linux, though. I wish I had another microSD card to install the Android on, I will have to save up to buy one.


RE: Debian Stretch and Kodi Krypton on Rock64 - Mrfixit2001 - 12-12-2017

@Kwiboo - I am in this same situation and have been checking back into this post for awhile and am anxiously awaiting any further direction from you! Thank you in advance!