LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 01-28-2023, 03:54 PM   #1
Minime_2003
Member
 
Registered: Aug 2021
Location: Sweden
Distribution: Slackware
Posts: 123

Rep: Reputation: 40
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

Last edited by Minime_2003; 01-28-2023 at 04:16 PM.
 
Old 01-28-2023, 11:47 PM   #2
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
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).
 
1 members found this post helpful.
Old 01-29-2023, 07:19 AM   #3
Minime_2003
Member
 
Registered: Aug 2021
Location: Sweden
Distribution: Slackware
Posts: 123

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by abga View Post
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...

Last edited by Minime_2003; 01-29-2023 at 07:21 AM.
 
Old 03-14-2023, 03:11 PM   #4
Minime_2003
Member
 
Registered: Aug 2021
Location: Sweden
Distribution: Slackware
Posts: 123

Original Poster
Rep: Reputation: 40
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
 
Old 07-04-2023, 11:57 AM   #5
Minime_2003
Member
 
Registered: Aug 2021
Location: Sweden
Distribution: Slackware
Posts: 123

Original Poster
Rep: Reputation: 40
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

Last edited by Minime_2003; 07-04-2023 at 12:04 PM.
 
Old 04-21-2024, 08:02 AM   #6
Minime_2003
Member
 
Registered: Aug 2021
Location: Sweden
Distribution: Slackware
Posts: 123

Original Poster
Rep: Reputation: 40
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

Last edited by Minime_2003; 04-21-2024 at 08:04 AM.
 
Old 04-25-2024, 11:56 AM   #7
Johpin
Member
 
Registered: May 2020
Posts: 46

Rep: Reputation: Disabled
Quote:
Originally Posted by Minime_2003 View Post
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?
 
Old 04-25-2024, 03:06 PM   #8
Minime_2003
Member
 
Registered: Aug 2021
Location: Sweden
Distribution: Slackware
Posts: 123

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by Johpin View Post
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.
 
Old 04-26-2024, 05:35 AM   #9
Minime_2003
Member
 
Registered: Aug 2021
Location: Sweden
Distribution: Slackware
Posts: 123

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by Johpin View Post
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.
 
Old 04-30-2024, 10:35 AM   #10
Johpin
Member
 
Registered: May 2020
Posts: 46

Rep: Reputation: Disabled
Quote:
Originally Posted by Minime_2003 View Post
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?
 
Old 04-30-2024, 05:15 PM   #11
Minime_2003
Member
 
Registered: Aug 2021
Location: Sweden
Distribution: Slackware
Posts: 123

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by Johpin View Post
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.
 
Old 05-04-2024, 07:17 AM   #12
Minime_2003
Member
 
Registered: Aug 2021
Location: Sweden
Distribution: Slackware
Posts: 123

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by Johpin View Post
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

Last edited by Minime_2003; 05-04-2024 at 01:37 PM.
 
Old 05-06-2024, 02:37 PM   #13
Johpin
Member
 
Registered: May 2020
Posts: 46

Rep: Reputation: Disabled
Quote:
Originally Posted by Minime_2003 View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] KODI Leia - 18.x MediaPlayer - Optimized for Raspberry Pi1/Zero/Pi2B/Pi3B(+) on Slackware ARM 14.2 SF & Slackware ARM - current HF abga Slackware - ARM 25 04-29-2020 06:43 PM
[SOLVED] KODI Krypton - 17.x MediaPlayer - Optimized for Raspberry Pi1/Pi2/Pi3 on Slackware ARM 14.2 SF & Slackware ARM - current HF abga Slackware - ARM 40 08-28-2018 09:50 PM
LXer: All current Nexuses, including Nexus 4 and 2012 Nexus 7, will get Lollipop LXer Syndicated Linux News 0 10-17-2014 11:00 AM
LXer: Ubuntu Touch Support Dropped for Galaxy Nexus, Nexus 7 (2012), and Nexus 10 LXer Syndicated Linux News 0 01-15-2014 09:31 PM
LXer: Welcome to Google's Nexus One – and the "Nexus" Device LXer Syndicated Linux News 0 01-06-2010 11:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration