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
  irradium (based on crux linux) Rock64 riscv64, aarch64 mara 0 50 03-24-2024, 01:07 PM
Last Post: mara
  How to update/compile Debian 12.5? Wizardknight 2 208 03-14-2024, 05:30 AM
Last Post: diederik
  Rock64 v2 - did not work song / audio sqw200zu 2 1,236 03-14-2024, 03:09 AM
Last Post: dmitrymyadzelets
  Rock64 won't boot dstallmo 0 243 12-27-2023, 10:34 AM
Last Post: dstallmo
  HDMI doesn't work on rock64 Noung1991 1 510 11-21-2023, 08:33 AM
Last Post: as365n4
  Rock64 + Klipper + KlipperScreen Instructions godzilla62 0 510 10-22-2023, 01:52 AM
Last Post: godzilla62
  Rock64 Debian 11 (Bullseye) install problem jbize 15 7,961 10-12-2023, 05:14 PM
Last Post: tpaul
  slarm64 (unofficial slackware) Rock64 RK3328 (aarch64) mara 133 186,382 10-09-2023, 03:31 AM
Last Post: mara
  arch rock64 does not boot nemnob 0 507 07-09-2023, 03:28 AM
Last Post: nemnob
  RXDP from Win10 to Armbian on Rock64 Transportsicherung 0 563 05-27-2023, 06:11 AM
Last Post: Transportsicherung

Forum Jump:


Users browsing this thread: 1 Guest(s)