Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Raspi3 Kodi
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
forrestfunk81
Guru
Guru


Joined: 07 Feb 2006
Posts: 502
Location: münchen.de

PostPosted: Sun Jan 06, 2019 10:00 am    Post subject: Raspi3 Kodi Reply with quote

Hi all,

I wonder why installing Kodi on ARM is hardmasked. It is such a mainstream use case and Kodi runs on almost all Raspberry distributions but Gentoo. Iiirc I had Kodi (or xbmc) running on my Raspberry B Gentoo install some years ago. However, I unmasked it an tried it. I always get error messages like "VFP single precision register expected -- `vldmia r0,{ q8-q11 }'". I know it is masked and I will not get support for it, but i wonder if anybody got it running anyway.

The main purpose of this Raspberry 3 will be a media player installation. And I'm sad because I have to go with LibreElec
_________________
# cd /pub/
# more beer
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14577

PostPosted: Sun Jan 06, 2019 5:00 pm    Post subject: Reply with quote

Portage should show you the Gentoo maintainer's mask message if you try to emerge the package while it is masked. What did it show? What version of kodi did you try to emerge? I don't see any relevant masks for media-tv/kodi in the main tree as of my last sync.

It was probably masked because it does not build and the maintainer lacked the time, ability, or both, to fix it.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44496
Location: 56N 3W

PostPosted: Sun Jan 06, 2019 8:15 pm    Post subject: Reply with quote

forrestfunk81,

It builds for 64 bit Raspberry Pi 3. I have
Code:
Parent Directory                             -   
[   ] kodi-17.6-r3.tbz2       2018-06-25 19:23   28M 
[   ] kodi-17.6-r4.tbz2       2018-07-10 17:40   28M 
[   ] kodi-17.6-r5.tbz2       2018-09-15 14:39   28M 
[   ] kodi-17.6-r7.tbz2       2018-10-13 14:45   28M 
[   ] kodi-18.0_beta5-r1.tbz2 2018-11-10 22:52   28M 
[   ] kodi-18.0_rc1.tbz2      2018-11-24 13:53   28M 
[   ] kodi-18.0_rc2.tbz2      2018-12-04 15:11   28M 
[   ] kodi-18.0_rc3.tbz2      2018-12-22 16:37   28M 
[   ] kodi-18.0_rc4.tbz2      2018-12-29 13:11   28M 
in my binhost.

ARM things are not well tested, so don't be afraid to use testing packages.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
dsiggi
Tux's lil' helper
Tux's lil' helper


Joined: 28 Aug 2007
Posts: 87
Location: Wilhermsdorf

PostPosted: Tue Feb 26, 2019 8:16 am    Post subject: Reply with quote

Hi,
you can check if the ebuilds from my overlay are working with the rbp3.
I'm using an rbp2b and kodi is working like a charm.

https://github.com/dsiggi/odroidberry

The problem is, that you need some special options enabled when you build kodi for the rbp.
In the official ebuilds this options are not set.

dsiggi
Back to top
View user's profile Send private message
candrews
Developer
Developer


Joined: 10 Aug 2005
Posts: 155

PostPosted: Tue Feb 26, 2019 4:56 pm    Post subject: Reply with quote

dsiggi wrote:
Hi,
you can check if the ebuilds from my overlay are working with the rbp3.
I'm using an rbp2b and kodi is working like a charm.

https://github.com/dsiggi/odroidberry

The problem is, that you need some special options enabled when you build kodi for the rbp.
In the official ebuilds this options are not set.

dsiggi


Can you please submit a PR to https://github.com/gentoo/gentoo/ with the necessary changes to the Kodi ebuild and perhaps some information saying why the changes are necessary?

I'd must rather have all users use the same, working, maintained version from Gentoo that we can all improve together than having to resort to stumbling across overlays :)
_________________
I'm working on a variety of random things throughout Gentoo.
Back to top
View user's profile Send private message
forrestfunk81
Guru
Guru


Joined: 07 Feb 2006
Posts: 502
Location: münchen.de

PostPosted: Sat May 11, 2019 10:01 pm    Post subject: Reply with quote

I finally had some time to get Gentoo 64bit running on my RPi3 and Kodi compiles successfully. But the performance of Kodi is very bad.

If using the vc4-fkms-v3d driver, I get glitches and tearing in the Kodi UI (when switching through the menu).
If using the vc4-kms-v3d driver, the Kodi UI itself works flawless but the videos get stuck.

I spent most of the day searching information about RPi3 graphics and hardware decoding but I'm still confused. As far as I understood kernels > 4.19 have v4l2 m2m codec support, but this is not used by Kodi. But isn't Kodi using ffmpeg which supposedly supports m2m?

And furthermore there is something like mmal which also seems to do something like hardware video acceleration. And there is a USE flag for ffmpeg but I can not turn it on.

I'm not shure if it is possible to get Kodi run on a 64bit Gentoo with an acceptable performance for now.

My current setup: 64bit Kernel 5.1.0-rc6-v8+ compiled from https://github.com/raspberrypi/linux
Code:

media-tv/kodi-18.2 USE="X alsa bluetooth cec css gles nfs opengl system-ffmpeg udev webserver xslt"
media-video/ffmpeg-4.1.3 USE="X alsa bzip2 encode gpl hardcoded-tables iconv network openssl postproc threads v4l zlib "
media-libs/mesa-19.1.0_rc1 USE="classic dri3 egl gallium gbm gles1 gles2 llvm" VIDEO_CARDS="vc4"


Code:
 ffmpeg -decoders  | grep h264
ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8.3.0 (Gentoo 8.3.0-r1 p1.1)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-4.1.3/html --mandir=/usr/share/man --enable-shared --cc=aarch64-unknown-linux-gnu-gcc --cxx=aarch64-unknown-linux-gnu-g++ --ar=aarch64-unknown-linux-gnu-ar --optflags='-march=armv8-a+crc -mtune=cortex-a53 -ftree-vectorize -O2 -pipe -fomit-frame-pointer' --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --enable-nonfree --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls --disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-libtls --disable-libxml2 --disable-lzma --enable-network --disable-opencl --enable-openssl --enable-postproc --disable-libsmbclient --disable-ffplay --disable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --disable-libfdk-aac --disable-libopenjpeg --disable-libbluray --disable-libgme --disable-libgsm --disable-mmal --disable-libmodplug --disable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --disable-librsvg --disable-ffnvcodec --disable-libvorbis --disable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --disable-libass --disable-lv2 --disable-libfreetype --disable-librubberband --disable-libzmq --disable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --disable-libmp3lame --disable-libkvazaar --disable-libaom --disable-libopenh264 --disable-libsnappy --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --disable-libx264 --disable-libx265 --disable-libxvid --disable-gnutls --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-aesni --disable-avx --disable-avx2 --disable-fma3 --disable-fma4 --disable-mmx --disable-mmxext --disable-sse --disable-sse2 --disable-sse3 --disable-ssse3 --disable-sse4 --disable-sse42 --disable-xop --cpu=armv8-a+crc --disable-doc --disable-htmlpages --enable-manpages
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
 VFS..D h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
 V..... h264_v4l2m2m         V4L2 mem2mem H.264 decoder wrapper (codec h264)


The Xorg log:
Code:
[  1148.510] (II) Unloading fbdevhw
[  1148.902] (==) modeset(0): Backing store enabled
[  1148.903] (==) modeset(0): Silken mouse enabled
[  1148.922] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
[  1148.923] (==) modeset(0): DPMS enabled
[  1148.926] (II) modeset(0): [DRI2] Setup complete
[  1148.926] (II) modeset(0): [DRI2]   DRI driver: vc4
[  1148.926] (II) modeset(0): [DRI2]   VDPAU driver: vc4
[  1148.926] (II) Initializing extension Generic Event Extension
[  1148.926] (II) Initializing extension SHAPE
[  1148.926] (II) Initializing extension MIT-SHM
[  1148.926] (II) Initializing extension XInputExtension
[  1148.932] (II) Initializing extension XTEST
[  1148.932] (II) Initializing extension BIG-REQUESTS
[  1148.932] (II) Initializing extension SYNC
[  1148.933] (II) Initializing extension XKEYBOARD
[  1148.933] (II) Initializing extension XC-MISC
[  1148.933] (II) Initializing extension XFIXES
[  1148.933] (II) Initializing extension RENDER
[  1148.933] (II) Initializing extension RANDR
[  1148.933] (II) Initializing extension COMPOSITE
[  1148.933] (II) Initializing extension DAMAGE
[  1148.933] (II) Initializing extension MIT-SCREEN-SAVER
[  1148.933] (II) Initializing extension DOUBLE-BUFFER
[  1148.933] (II) Initializing extension RECORD
[  1148.934] (II) Initializing extension DPMS
[  1148.934] (II) Initializing extension Present
[  1148.934] (II) Initializing extension DRI3
[  1148.934] (II) Initializing extension X-Resource
[  1148.934] (II) Initializing extension XVideo
[  1148.934] (II) Initializing extension XVideo-MotionCompensation
[  1148.934] (II) Initializing extension GLX
[  1148.958] (II) AIGLX: Loaded and initialized vc4
[  1148.958] (II) GLX: Initialized DRI2 GL provider for screen 0
[  1148.958] (II) Initializing extension XFree86-VidModeExtension
[  1148.959] (II) Initializing extension XFree86-DGA
[  1148.959] (II) Initializing extension XFree86-DRI
[  1148.963] (II) Initializing extension DRI2
[  1148.974] (II) modeset(0): Damage tracking initialized
[  1148.974] (II) modeset(0): Setting screen physical size to 508 x 285

_________________
# cd /pub/
# more beer
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum