Debian Stretch and Kodi Krypton on Rock64
#11
(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.
  Reply
#12
(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.t...its/master
  Reply
#13
(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.t...its/master

Cheers Kwiboo will have a look
  Reply
#14
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.
  Reply
#15
(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
  Reply
#16
(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 ?
  Reply
#17
(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.
  Reply
#18
(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.t...its/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/t...s/Rockchip
  Reply
#19
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.
  Reply
#20
@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!
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Upgrading ancient Rock64 timxjr1300 1 72 11-26-2024, 09:47 AM
Last Post: dmitrymyadzelets
  irradium (based on crux linux) Rock64 riscv64, aarch64 mara 7 1,019 11-19-2024, 02:54 PM
Last Post: mara
  problem with debian emmc boot G4zCDzWb 10 1,658 11-01-2024, 04:32 PM
Last Post: bits
  Debian installation via sd card oaFJSADBKV 0 112 10-12-2024, 10:24 AM
Last Post: oaFJSADBKV
  arch rock64 does not boot nemnob 1 962 09-20-2024, 11:18 AM
Last Post: AwU2HBg
  DietPi OS for ROCK64 MichaIng 42 43,726 09-01-2024, 06:43 AM
Last Post: RaymondDay
Smile First Lakka image for Rock64! Luke 47 81,352 09-01-2024, 06:05 AM
Last Post: RaymondDay
  How to update/compile Debian 12.5? Wizardknight 3 1,281 03-29-2024, 05:01 AM
Last Post: gedas07
  Rock64 v2 - did not work song / audio sqw200zu 2 1,875 03-14-2024, 03:09 AM
Last Post: dmitrymyadzelets
  Rock64 won't boot dstallmo 0 636 12-27-2023, 10:34 AM
Last Post: dstallmo

Forum Jump:


Users browsing this thread: 2 Guest(s)