Compiling Kodi Nexus on a Rpi 3+ with AArch64

This is for ARMv8 based devices

Compiling Kodi Nexus on a Rpi 3+ with AArch64

Postby grandcanyon » Wed Feb 23, 2022 3:20 am

I have a RPI 3+ that I'm running Kodi 19.3 with Arm7hv. I have a spare card so I wanted to install AArch64 and compile Kodi 20.0. I can follow the wiki to install AArch64. I saw the git Pkgbuild but it is for x86 and it looks like it has some dependencies for wyland or x11. Can I ignore the architecture when compiling? Also, I assume it will build the kodi-gbm instead of the wyland etc? How long does it take to compile on a Rpi3. I would imagine a long time.
grandcanyon
 
Posts: 35
Joined: Tue Jan 18, 2022 1:46 am

Re: Compiling Kodi Nexus on a Rpi 3+ with AArch64

Postby zebul666 » Wed Feb 23, 2022 8:52 am

Hello,

Where did you find your PKGBUILD ?

You can look in https://github.com/archlinuxarm/PKGBUILDs/ and modify a PKGBUILD from there ?

It would definitvly take a while to compile it on a rpi3b; moreover using an sd card;

You should look at setting up cross-compilation toolchain with distcc and a x86_64 more capable machine:
- https://archlinuxarm.org/wiki/Distcc_Cross-Compiling
- https://wiki.archlinux.org/title/Distcc ... ith_distcc

The second link has more clear instructions
zebul666
 
Posts: 48
Joined: Fri Jul 10, 2015 4:55 pm

Re: Compiling Kodi Nexus on a Rpi 3+ with AArch64

Postby graysky » Wed Feb 23, 2022 10:56 am

Agreed about cross compiling. See those links, also: https://github.com/graysky2/distccd-arch-arm

If you want to run kodi 20.0 just install kodi-rpi-git which I keep relatively updated every 50-70 upstream commits.

As an aside, our kodi packages offer a patched ffmpeg that can do hardware decoding on RPi of both h264 and x265 (HEVC) content. But full decoding is only possible for on RPi 4B/400. Older models can do some level of h264 only. This is a hardware limitation. Also, x11 or wayland cannot use hardware decoding. We only build with gbm and x11 support.
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Compiling Kodi Nexus on a Rpi 3+ with AArch64

Postby grandcanyon » Thu Feb 24, 2022 3:30 am

Thanks. I will stick with your git package instead of compiling or setting up a cross compiler on my x86 Ubuntu box.
grandcanyon
 
Posts: 35
Joined: Tue Jan 18, 2022 1:46 am

Re: Compiling Kodi Nexus on a Rpi 3+ with AArch64

Postby grandcanyon » Fri Feb 25, 2022 7:29 pm

I installed AArch64 and then installed the kodi-rpi-git package on my Rpi3. I made the changes to the config.txt file.

When I start kodi, it crashes and takes me back to the shell with the following error.
[drm:vc4_bo_create [vc4]] ERROR Failed to allocate from CMA:

I tried both
dtcoverlay=vc4-kms-v3d,cma-512
dtcoverlay=vc4-fkms-v3d,cma-512

I have searched google but can't find a solution.
grandcanyon
 
Posts: 35
Joined: Tue Jan 18, 2022 1:46 am

Re: Compiling Kodi Nexus on a Rpi 3+ with AArch64

Postby grandcanyon » Fri Feb 25, 2022 9:18 pm

This fixed my problem. Now to figure out how to fix my sticky wireless keyboard.

https://wp.dejvino.com/category/technol ... pberry-pi/
grandcanyon
 
Posts: 35
Joined: Tue Jan 18, 2022 1:46 am

Re: Compiling Kodi Nexus on a Rpi 3+ with AArch64

Postby grandcanyon » Sun Feb 27, 2022 12:56 am

Does hardware decoding not work? My screen was blank with sound so then I turned off the DSM and then I was able to see and hear the video. I checked by doing a Ctrl-O and it said that I was using SW decoding. By searching on here, I noticed a year or so ago it didn't work with kernel 5.10 but it looks like we are up to kernel 5.16. Do you need a special kernel. I saw that @graysky compiled a special kernel in the past.
grandcanyon
 
Posts: 35
Joined: Tue Jan 18, 2022 1:46 am

Re: Compiling Kodi Nexus on a Rpi 3+ with AArch64

Postby graysky » Sun Feb 27, 2022 9:34 am

$this->bbcode_second_pass_quote('grandcanyon', 'D')oes hardware decoding not work?


From this thread:
$this->bbcode_second_pass_quote('graysky', 'a')ll offer some level of hardware accelerated decoding. Full hardware decoding of both h264 and x265 (HEVC) content is only possible for on RPi 4B/400. Older models can do some level of h264 only. This is a hardware limitation.

Note that in order to benefit from hardware decoding, you must be running the linux-rpi kernel.
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000


Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 5 guests