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
  DietPi OS for ROCK64 MichaIng 19 5,018 1 hour ago
Last Post: MichaIng
  slarm64 (unofficial slackware) Rock64 RK3328 (aarch64) mara 117 72,827 09-10-2021, 03:01 PM
Last Post: mara
  rock64-debian-mrfixit-190531.img.xz : missing /usr/lib/dri/rockchip_dri.so popi 5 416 08-12-2021, 04:55 AM
Last Post: igorp
  openwrt for the rock64 wilsonYan 15 7,382 06-28-2021, 09:50 PM
Last Post: wilsonYan
  Centos 8 Stream on Rock64 ayoungdukie 1 519 06-07-2021, 11:50 AM
Last Post: zer0sig
  Talos on ROCK64 cjyar 2 579 06-04-2021, 11:50 AM
Last Post: cjyar
  CentOS 7 for Rock64 pineadmin 3 3,564 05-30-2021, 08:20 AM
Last Post: ayoungdukie
  Rock64 CRUX-ARM (aarch64) mara 0 412 05-27-2021, 02:22 PM
Last Post: mara
  RETRO-GAMING: UPDATED RELEASE OF RECALBOX FOR THE ROCK64 Mrfixit2001 32 27,391 05-22-2021, 07:01 AM
Last Post: fartadeadrian
  Debian build from mrfixit2001 Luke 18 12,732 05-17-2021, 02:35 AM
Last Post: Wizzard

Forum Jump:


Users browsing this thread: 11 Guest(s)