LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   Kodi 19.5 Matrix and Kodi 20.0 Nexus for Slackware arm 15.0 (https://www.linuxquestions.org/questions/slackware-arm-108/kodi-19-5-matrix-and-kodi-20-0-nexus-for-slackware-arm-15-0-a-4175721421/)

Minime_2003 01-28-2023 02:54 PM

Kodi 19.5 Matrix and Kodi 20.0 Nexus for Slackware arm 15.0
 
Hi guys nŽ, grils and slackers

Updated buildscripts for both Kodi 19.5 (Matrix) and also Kodi 20.0 (Nexus)

Buildscripts avalibe at my github also needed armv7 precompiled compiled packages avalibe for download if one does not want or bother to compile them yourself...

Directlinks for:
Precompiled Slackware arm package for Kodi 19.5 (Matrix)
Precompiled Slackware arm package for Kodi 20.0 (Nexus)

Note kodi packages include precompiled binarys for both kodi-x11 and kodi-gbm

Inorder to beable play drm media using widewine, you will need to patch glibc, information how to do this for your arm device running slackware you can find in my glibc buildscript or download precompiled glibc slackware arm packages.

Enjoy and happy Slacking

abga 01-28-2023 10:47 PM

For Kodi 19.x you have to patch both Kodi & FFMpeg source in order to get a functional (HW accelerated) DRM Prime decoder, otherwise you could end up killing the Pi on SW decoding.
See:
https://forum.kodi.tv/showthread.php...121#pid3116121
https://forum.kodi.tv/showthread.php...685#pid3135685
Note that you might need to apply a different patch (naming was something with drmprime_request) for the Pi4B. Check the links to the LibreELEC repo/make files I provided in the thread.

For Kodi 20.x I'll suggest to wait until the LibreELEC devs (Raspberry & Kodi devs included) will release their LE image based on it. Then inspect their makefiles for Pi specific code/patches.

Have fun! (I just posted my Raspberries (leftovers) online for sale - had enough).

Minime_2003 01-29-2023 06:19 AM

Quote:

Originally Posted by abga (Post 6407632)
For Kodi 19.x you have to patch both Kodi & FFMpeg source in order to get a functional (HW accelerated) DRM Prime decoder, otherwise you could end up killing the Pi on SW decoding.
See:
https://forum.kodi.tv/showthread.php...121#pid3116121
https://forum.kodi.tv/showthread.php...685#pid3135685
Note that you might need to apply a different patch (naming was something with drmprime_request) for the Pi4B. Check the links to the LibreELEC repo/make files I provided in the thread.

For Kodi 20.x I'll suggest to wait until the LibreELEC devs (Raspberry & Kodi devs included) will release their LE image based on it. Then inspect their makefiles for Pi specific code/patches.

Have fun! (I just posted my Raspberries (leftovers) online for sale - had enough).

Have not noticed any issues when running kodi 18.x, 19.x or 20.x on a RPI4 only in order to make Widevine to work one has to patch glibc as i instructed before.
Have been running this build for Kodi 19.x for over two years and have not had any issue with (HW accelerated) DRM Prime decoder on my RPI4 4GB RAM as you described?

Only issue i had when running Kodi 20.x was that Netflix, Disney+ and HBO plugins would not start the stream.
Cmore and Viaplay plugins worked fine thow.
So i would recommend to wait with Kodi 20.x Nexus and run Kodi 19.5 Matrix until all issues are worked out and plugins are compatible.
I compiled Kodi 20.0 Nexus for any one whom would like to try it out.

Thanks for the heads up regarding patching FFMpeg, will have to look in to that and see what its all about.
I myself have never noticed any issues as i mentioned before...

Minime_2003 03-14-2023 02:11 PM

Hi guys nŽ, grils and slackers

Updated buildscripts for Kodi 20.1 (Nexus)

Buildscripts avalibe at my github also needed armv7 precompiled compiled packages available for download if one does not want or bother to compile them yourself...

Directlinks for:
Precompiled Slackware arm package for Kodi 20.1 (Nexus)

Note kodi packages include precompiled binaries for both kodi-x11 and kodi-gbm

Inorder to beable play drm media using widewine, you will need to patch glibc, information how to do this for your arm device running slackware you can find in my glibc buildscript or download precompiled glibc slackware arm packages.

Enjoy and happy Slacking

Minime_2003 07-04-2023 10:57 AM

Kodi 20.2 Nexus for Slackware arm 15.0
 
Hi guys nŽ, grils and slackers

Updated buildscripts for Kodi 20.2 (Nexus)

Buildscripts avalibe at my github also needed armv7 precompiled compiled packages available for download if one does not want or bother to compile them yourself...

Directlinks for:
Precompiled Slackware arm package for Kodi 20.2 (Nexus)

Note kodi packages include precompiled binaries for both kodi-x11 and kodi-gbm.
kodi = bodi-x11 and kodi-gbm = for running kodi without Xorg (Running Kodi directly from shell).

Inorder to beable play drm media using widewine, you will need to patch glibc, information how to do this for your arm device running slackware you can find in my glibc buildscript or download precompiled glibc slackware arm packages.

Enjoy and happy Slacking

Minime_2003 04-21-2024 07:02 AM

Kodi 20.5 Nexus for Slackware arm 15.0
 
Hi guys nŽ, grils and slackers

Updated buildscripts for Kodi 20.5 (Nexus)

Buildscripts avalibe at my github also needed armv7 precompiled compiled packages available for download if one does not want or bother to compile them yourself...

Directlinks for:
Precompiled Slackware arm package for Kodi 20.5 (Nexus)

Note kodi packages include precompiled binaries for both kodi-x11 and kodi-gbm.
kodi = kodi-x11 (When running kodi from X) and kodi-gbm = for running kodi without Xorg (Running Kodi directly from shell).

Inorder to be able play drm media using widewine, you will need to patch glibc, information how to do this for your arm device running slackware you can find in my glibc buildscript or download precompiled glibc slackware arm packages.

Enjoy and happy Slacking

Johpin 04-25-2024 10:56 AM

Quote:

Originally Posted by Minime_2003 (Post 6497476)
Inorder to be able play drm media using widewine, you will need to patch glibc, information how to do this for your arm device running slackware you can find in my glibc buildscript or download precompiled glibc slackware arm packages.

After patching gcc I could not compile other packages like graphviz on aarch64 anymore. I had to go back to the stock gcc for compilation.

Does your Kodi build support Pulse Eight? I saw libcec is required for your build.

After a make bcm2712_defconfig to configure the RPi kernel I set the module in
Device Drivers -> CEC support -> HDMI CEC drivers -> Pulse Eight HDMI CEC

After building and installing the new kernel, Pulse Eight has not been loaded automatically.
Trying insmod using
insmod /lib/modules/6.6.28-v8-16k+/kernel/drivers/media/cec/usb/pulse8/pulse8-cec.ko.xz
gives:

insmod: ERROR: could not insert module /lib/modules/6.6.28-v8-16k+/kernel/driver
s/media/cec/usb/pulse8/pulse8-cec.ko.xz: Unknown symbol in module

Did you have similar problems?

Minime_2003 04-25-2024 02:06 PM

Quote:

Originally Posted by Johpin (Post 6498233)
After patching gcc I could not compile other packages like graphviz on aarch64 anymore. I had to go back to the stock gcc for compilation.

Does your Kodi build support Pulse Eight? I saw libcec is required for your build.

After a make bcm2712_defconfig to configure the RPi kernel I set the module in
Device Drivers -> CEC support -> HDMI CEC drivers -> Pulse Eight HDMI CEC

After building and installing the new kernel, Pulse Eight has not been loaded automatically.
Trying insmod using
insmod /lib/modules/6.6.28-v8-16k+/kernel/drivers/media/cec/usb/pulse8/pulse8-cec.ko.xz
gives:

insmod: ERROR: could not insert module /lib/modules/6.6.28-v8-16k+/kernel/driver
s/media/cec/usb/pulse8/pulse8-cec.ko.xz: Unknown symbol in module

Did you have similar problems?

I have not had the possibility/time to try build kodi 20.5 (Nexus) for Aarch64 yet, builds without any issue on ARM.
Was updating my Aarch64 as it was about a year sins i was playing with that, but i managed to crash the system and did not have any time to look futhere in to it at the time.
I know i had some issues trying to build Kodi 20.2 Nexus on Aarch64, but all packages dependencies built ok at that point? if i remeber correctly as i have the packages for Aarch64 on my github.
I would recomend to try to build kodi with clang, but it might be better to go with Kodi 21.0 (Omega)?
The kernels i have been using are RPIś own kernels that i installed with the rpi-update script.

Minime_2003 04-26-2024 04:35 AM

Quote:

Originally Posted by Johpin (Post 6498233)
After patching gcc I could not compile other packages like graphviz on aarch64 anymore. I had to go back to the stock gcc for compilation.
Did you have similar problems?

Yes forgot to mention, when i compile packages i always used the stock GLIBC.
Only install the patched GLIBC for making it possible to use widevinecdm.

Johpin 04-30-2024 09:35 AM

Quote:

Originally Posted by Minime_2003 (Post 6498358)
Yes forgot to mention, when i compile packages i always used the stock GLIBC.
Only install the patched GLIBC for making it possible to use widevinecdm.

On Raspberry Pi OS Bookworm this swapping of GLIBC is not necessary. I wonder
how the RPi developers solved this.

Thanks for sharing the Kodi 20.5 binaries. After a fresh install via
Sarpi4 installer of 19Apr24 I installed the Kodi binary and its dependencies.

Unfortunately I saw during starting of Kodi no Pulse Eight CEC adapter and
Settings -> System -> Peripherals is empty.

Do yo have the same?

Minime_2003 04-30-2024 04:15 PM

Quote:

Originally Posted by Johpin (Post 6499065)
On Raspberry Pi OS Bookworm this swapping of GLIBC is not necessary. I wonder
how the RPi developers solved this.

Thanks for sharing the Kodi 20.5 binaries. After a fresh install via
Sarpi4 installer of 19Apr24 I installed the Kodi binary and its dependencies.

Unfortunately I saw during starting of Kodi no Pulse Eight CEC adapter and
Settings -> System -> Peripherals is empty.

Do yo have the same?

I suspect its because they built the entire system with SHT_RELR and TLS support.
Might allso be that they built all packages with the same kernel.
I built glibc with RPIs kernel 6.2.x and Slackware 15.0 ARM uses kernel 5.15.x and witch glibc is built against.

Will have to check platform and CEC, as i do not use this my self...
Will not be possible before the weekend i am sorry to say.

Slackware 15.1 (Current) Aarch64 i know worked with platform and CEC as i checked this.
On Slackware 15.1 (Current) Aarch64 i also used RPIs kernel 6.2.x witch i also compiled glibc.

Minime_2003 05-04-2024 06:17 AM

Quote:

Originally Posted by Johpin (Post 6499065)
On Raspberry Pi OS Bookworm this swapping of GLIBC is not necessary. I wonder
how the RPi developers solved this.

Thanks for sharing the Kodi 20.5 binaries. After a fresh install via
Sarpi4 installer of 19Apr24 I installed the Kodi binary and its dependencies.

Unfortunately I saw during starting of Kodi no Pulse Eight CEC adapter and
Settings -> System -> Peripherals is empty.

Do yo have the same?

So i have been looking in to this
On Aarch64 as root i CEC seams to work, but as a user it did not.
Root shows:
Code:

root@rpi4:~# cec-client -l
libCEC version: 6.0.2, git revision: <unknown>, compiled on 2024-04-28 12:14:44 by root@mediarpi4.loos on Linux 6.6.28-v8+ (aarch64), features: P8_USB, DRM, P8_detect, randr, RPi
Found devices: 1

device:              1
com port:            RPI
vendor id:          2708
product id:          1001
firmware version:    1
type:                Raspberry Pi

As User:
Code:

user@rpi4:~$ cec-client -l
libCEC version: 6.0.2, git revision: <unknown>, compiled on 2024-04-28 12:14:44 by root@mediarpi4.loos on Linux 6.6.28-v8+ (aarch64), features: P8_USB, DRM, P8_detect, randr, RPi
Found devices: NONE

To get it working as a user, you set "vchiq" to group "video" and set correct permissions
after this libCEC show then show in "Settings -> System -> Peripherals".
Code:

root@rpi4:~# chown root:video /dev/vchiq
root@rpi4:~# chmod  g+rw /dev/vchiq

See that i have built libcec incorrectlu for ARM, so iŽll rebuild this and then above solution for Aarch64 should also work for ARM.

Edit:
I have created new libcec packages for both Aarch64 and ARM resolving this issue and no need to change group or permissions for "vchiq"
as i added udev rules to the packages.

Hope that helps

Best regards:
Minime

Johpin 05-06-2024 01:37 PM

Quote:

Originally Posted by Minime_2003 (Post 6499782)
I have created new libcec packages for both Aarch64 and ARM

I have tried the ARM version on a RPi4: it works after installing raspberrypi/userland (libvcos.so is required). After that I uninstalled your libcec package and build it myself, also Kodi: it still works. The CEC adapter can be found in Settings -> System -> Input -> Peripherals. Strange is that exiting Kodi my Philips TV switches from HDMI to TV.

I have tried the aarch64 version on a RPi5: cec-client -l does not show a device and there is no /dev/vchiq available for me. Compiling USB_PULSE8_CEC into the kernel didn't help.


All times are GMT -5. The time now is 09:23 PM.