Slackware - ARM This forum is for the discussion of Slackware ARM. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-28-2023, 03:54 PM
|
#1
|
Member
Registered: Aug 2021
Location: Sweden
Distribution: Slackware
Posts: 123
Rep:
|
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.
|
|
|
01-28-2023, 11:47 PM
|
#2
|
Senior Member
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634
|
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.
|
01-29-2023, 07:19 AM
|
#3
|
Member
Registered: Aug 2021
Location: Sweden
Distribution: Slackware
Posts: 123
Original Poster
Rep:
|
Quote:
Originally Posted by abga
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.
|
|
|
03-14-2023, 03:11 PM
|
#4
|
Member
Registered: Aug 2021
Location: Sweden
Distribution: Slackware
Posts: 123
Original Poster
Rep:
|
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
|
|
|
07-04-2023, 11:57 AM
|
#5
|
Member
Registered: Aug 2021
Location: Sweden
Distribution: Slackware
Posts: 123
Original Poster
Rep:
|
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.
|
|
|
04-21-2024, 08:02 AM
|
#6
|
Member
Registered: Aug 2021
Location: Sweden
Distribution: Slackware
Posts: 123
Original Poster
Rep:
|
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.
|
|
|
04-25-2024, 11:56 AM
|
#7
|
Member
Registered: May 2020
Posts: 46
Rep:
|
Quote:
Originally Posted by Minime_2003
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?
|
|
|
04-25-2024, 03:06 PM
|
#8
|
Member
Registered: Aug 2021
Location: Sweden
Distribution: Slackware
Posts: 123
Original Poster
Rep:
|
Quote:
Originally Posted by Johpin
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.
|
|
|
04-26-2024, 05:35 AM
|
#9
|
Member
Registered: Aug 2021
Location: Sweden
Distribution: Slackware
Posts: 123
Original Poster
Rep:
|
Quote:
Originally Posted by Johpin
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.
|
|
|
04-30-2024, 10:35 AM
|
#10
|
Member
Registered: May 2020
Posts: 46
Rep:
|
Quote:
Originally Posted by Minime_2003
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?
|
|
|
04-30-2024, 05:15 PM
|
#11
|
Member
Registered: Aug 2021
Location: Sweden
Distribution: Slackware
Posts: 123
Original Poster
Rep:
|
Quote:
Originally Posted by Johpin
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.
|
|
|
05-04-2024, 07:17 AM
|
#12
|
Member
Registered: Aug 2021
Location: Sweden
Distribution: Slackware
Posts: 123
Original Poster
Rep:
|
Quote:
Originally Posted by Johpin
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.
|
|
|
05-06-2024, 02:37 PM
|
#13
|
Member
Registered: May 2020
Posts: 46
Rep:
|
Quote:
Originally Posted by Minime_2003
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 08:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|