Kodi 17 on 16.04 minimal GPU: Gallium

Moderators: mdrjr, odroid

Kodi 17 on 16.04 minimal GPU: Gallium

Unread postby chtv » Wed May 17, 2017 5:20 pm

Recently I update (really a clean install) my C1 to 16.04 minimal from 14.04 my propose with that is remove all the unnecessary GUI software and only use the C1 for kody and other server services via ssh.
The problem now is when i finally install kodi and run it (startx Kodi --standalone) the graphics are slow because don't use the GPU.

The video system info on kodi says :

GPU: Gallium 0.4 on llvmpipe (LLVP 3.8, 128bits ).

What I forget ?
chtv
 
Posts: 9
Joined: Wed Jun 22, 2016 7:43 pm
languages_spoken: english , spanish
ODROIDs: Odroid C1

Re: Kodi 17 on 16.04 minimal GPU: Gallium

Unread postby meveric » Wed May 17, 2017 5:23 pm

xf86-video-mali probably, or what ever it's called on Ubuntu. It's the bridge between X11 and GPU drivers, also you need a xorg.conf that tells the system to use the Mali GPU drivers, and of course you need the Mali X11 GPU drivers installed.
User avatar
meveric
 
Posts: 7679
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: Kodi 17 on 16.04 minimal GPU: Gallium

Unread postby chtv » Wed May 17, 2017 6:41 pm

meveric wrote:xf86-video-mali probably, or what ever it's called on Ubuntu. It's the bridge between X11 and GPU drivers, also you need a xorg.conf that tells the system to use the Mali GPU drivers, and of course you need the Mali X11 GPU drivers installed.

Is already configured (?) and xserver-xorg-video-mali installed .

# X.Org X server configuration file for xfree86-video-mali

Section "Device"
Identifier "Mali-Fbdev"
Driver "mali"
Option "fbdev" "/dev/fb0"
Option "DRI2" "true"
Option "DRI2_PAGE_FLIP" "false"
Option "DRI2_WAIT_VSYNC" "false"
Option "UMP_CACHED" "true"
Option "UMP_LOCK" "false"
Option "SWCursor" "true"
Option "HWCursor" "false"

EndSection

Section "ServerFlags"
Option "NoTrapSignals" "true"
Option "DontZap" "false"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection

Section "DRI"
Mode 0666
EndSection
chtv
 
Posts: 9
Joined: Wed Jun 22, 2016 7:43 pm
languages_spoken: english , spanish
ODROIDs: Odroid C1

Re: Kodi 17 on 16.04 minimal GPU: Gallium

Unread postby meveric » Wed May 17, 2017 6:44 pm

mali GPU drives (libMali.so) is also installed? Can you try running other X11 applications like glmark2-es2 or es2gears with X to see if 3D is working at all?
User avatar
meveric
 
Posts: 7679
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: Kodi 17 on 16.04 minimal GPU: Gallium

Unread postby chtv » Wed May 17, 2017 11:33 pm

meveric wrote:mali GPU drives (libMali.so) is also installed? Can you try running other X11 applications like glmark2-es2 or es2gears with X to see if 3D is working at all?

Ok, maybe it's not installed :lol: where can I find them or how to install?, I searched for it but I didn't find what I needed.
chtv
 
Posts: 9
Joined: Wed Jun 22, 2016 7:43 pm
languages_spoken: english , spanish
ODROIDs: Odroid C1

Re: Kodi 17 on 16.04 minimal GPU: Gallium

Unread postby mad_ady » Thu May 18, 2017 3:19 am

Also install aml-libs for hardware decoding of video
User avatar
mad_ady
 
Posts: 2412
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2

Re: Kodi 17 on 16.04 minimal GPU: Gallium

Unread postby meveric » Thu May 18, 2017 5:41 am

chtv wrote:Ok, maybe it's not installed :lol: where can I find them or how to install?, I searched for it but I didn't find what I needed.

Code: Select all
sudo apt-get install mali-x11

should work on Ubuntu I think.
User avatar
meveric
 
Posts: 7679
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: Kodi 17 on 16.04 minimal GPU: Gallium

Unread postby chtv » Fri May 19, 2017 4:59 am

mad_ady wrote:Also install aml-libs for hardware decoding of video


meveric wrote:should work on Ubuntu I think.


Thanks to both ,but...

glmark2 is working:
=======================================================
glmark2 2014.03+git20150611.fa71af2d
=======================================================
OpenGL Information
GL_VENDOR: ARM
GL_RENDERER: Mali-450 MP
GL_VERSION: OpenGL ES 2.0
=======================================================

Kodi now sais:

libEGL warning: DRI2: failed to open mali_drm (search paths /usr/lib/arm-linux-gnueabihf/dri:${ORIGIN}/dri:/usr/lib/dri)
chtv
 
Posts: 9
Joined: Wed Jun 22, 2016 7:43 pm
languages_spoken: english , spanish
ODROIDs: Odroid C1

Re: Kodi 17 on 16.04 minimal GPU: Gallium

Unread postby meveric » Fri May 19, 2017 2:32 pm

well good you got GLESv2 working again.
The EGL warning can be ignored, that particular one is not an issue.
Anything else about Kodi? Does it work? Does it give any errors?
User avatar
meveric
 
Posts: 7679
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: Kodi 17 on 16.04 minimal GPU: Gallium

Unread postby chtv » Fri May 19, 2017 3:03 pm

meveric wrote:well good you got GLESv2 working again.
The EGL warning can be ignored, that particular one is not an issue.
Anything else about Kodi? Does it work? Does it give any errors?


Still not working

Image
chtv
 
Posts: 9
Joined: Wed Jun 22, 2016 7:43 pm
languages_spoken: english , spanish
ODROIDs: Odroid C1

Re: Kodi 17 on 16.04 minimal GPU: Gallium

Unread postby meveric » Fri May 19, 2017 5:11 pm

maybe it's trying to load the wrong libraries.
do a find /usr -name libMali.so maybe you need to set a LD_LIBRARY_PATH to load the correct library for Kodi,
or you need to fix the links for libGLESv2 and such.
can you also show the output of:
ls -la /usr/lib/arm-linux-gnueabihf/lib*GL*.so*"
User avatar
meveric
 
Posts: 7679
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: Kodi 17 on 16.04 minimal GPU: Gallium

Unread postby chtv » Fri May 19, 2017 10:28 pm

meveric wrote:maybe it's trying to load the wrong libraries.
do a find /usr -name libMali.so maybe you need to set a LD_LIBRARY_PATH to load the correct library for Kodi,
or you need to fix the links for libGLESv2 and such.
can you also show the output of:
ls -la /usr/lib/arm-linux-gnueabihf/lib*GL*.so*"


find /usr -name libMali.so
/usr/lib/arm-linux-gnueabihf/libMali.so
/usr/share/mali/libs/libMali.so

ls -la /usr/lib/arm-linux-gnueabihf/lib*GL*.so*
lrwxrwxrwx 1 root root 11 Sep 6 2016 /usr/lib/arm-linux-gnueabihf/libEGL.so -> libEGL.so.1
lrwxrwxrwx 1 root root 13 Sep 6 2016 /usr/lib/arm-linux-gnueabihf/libEGL.so.1 -> libEGL.so.1.4
lrwxrwxrwx 1 root root 10 Sep 6 2016 /usr/lib/arm-linux-gnueabihf/libEGL.so.1.4 -> libMali.so
lrwxrwxrwx 1 root root 17 Sep 6 2016 /usr/lib/arm-linux-gnueabihf/libGLESv1_CM.so -> libGLESv1_CM.so.1
lrwxrwxrwx 1 root root 19 Sep 6 2016 /usr/lib/arm-linux-gnueabihf/libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.1
lrwxrwxrwx 1 root root 10 Sep 6 2016 /usr/lib/arm-linux-gnueabihf/libGLESv1_CM.so.1.1 -> libMali.so
lrwxrwxrwx 1 root root 14 Sep 6 2016 /usr/lib/arm-linux-gnueabihf/libGLESv2.so -> libGLESv2.so.2
lrwxrwxrwx 1 root root 16 Sep 6 2016 /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2 -> libGLESv2.so.2.0
lrwxrwxrwx 1 root root 10 Sep 6 2016 /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2.0 -> libMali.so
chtv
 
Posts: 9
Joined: Wed Jun 22, 2016 7:43 pm
languages_spoken: english , spanish
ODROIDs: Odroid C1

Re: Kodi 17 on 16.04 minimal GPU: Gallium

Unread postby meveric » Fri May 19, 2017 10:51 pm

that's kinda odd... odd, cause everything looks fine (and that's something I wasn't expecting). And that's odd, cause it shows that libraries are all there and in place and there isn't even any MESA library the system could load.
So I really wonder how Kodi is loading MESA, if there aren't even any MESA drivers present?
can you try: export LD_LIBRARY_PATH=/usr/lib/arm-linux-gnueabihf/ and then start Kodi?
If it's still the same I'd really like to see an strace.
strace -o debug.txt /usr/lib/kodi/kodi.bin probably need your startx in front of it as well or what ever you use.
User avatar
meveric
 
Posts: 7679
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: Kodi 17 on 16.04 minimal GPU: Gallium

Unread postby chtv » Sat May 20, 2017 6:15 am

meveric wrote: export LD_LIBRARY_PATH=/usr/lib/arm-linux-gnueabihf/


Thanks a lot Meveric! :D
chtv
 
Posts: 9
Joined: Wed Jun 22, 2016 7:43 pm
languages_spoken: english , spanish
ODROIDs: Odroid C1


Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 1 guest