Armbian Debian Stretch GPU driver issues

Post Reply
Maclaren
Posts: 11
Joined: Sun Dec 24, 2017 5:02 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Armbian Debian Stretch GPU driver issues

Unread post by Maclaren » Tue Dec 26, 2017 7:19 am

Hi,

I am running OMV4 based on Armbian 5.36 (Debian GNU/Linux 9 (stretch) 4.9.61-odroidxu4)

I have compiled and installed kodi 17.6 with the XU4 optimizations and everything works.

My problem is that Kodi is super laggy. Like around 10-15 FPS to the point where the mouse movement lags. I am assuming this is because KODI cant use hardware acceleration?

I would just like to install the graphics drivers and see if it would make a difference for KODI.

Thanks
Last edited by Maclaren on Tue Dec 26, 2017 8:34 am, edited 2 times in total.

User avatar
meveric
Posts: 10178
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: [HOWTO] Debian/Ubuntu repository for Games/Emulators/Ker

Unread post by meveric » Tue Dec 26, 2017 7:46 am

well you can probably try https://oph.mdrjr.net/meveric/pool/main ... _armhf.deb
which is the armsoc driver for Debian Stretch, although without G2D support, but that shouldn't matter if you run Kodi in full-screen mode.
Hopefully you compiled Kodi for X11 and not fbdev.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Maclaren
Posts: 11
Joined: Sun Dec 24, 2017 5:02 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [HOWTO] Debian/Ubuntu repository for Games/Emulators/Ker

Unread post by Maclaren » Tue Dec 26, 2017 8:34 am

I added the XU3 repo and tried upgrading to linux-image-4.14-armhf-odroid-xu4 but I get a DPKG configure error

Alright thanks I will give that a shot.

EDIT: Installing the armsoc driver did not solve the problem. Kodi is still super laggy

This is the warning when I run kodi through the terminal

Code: Select all

libEGL warning: DRI2 failed to authenticate

User avatar
meveric
Posts: 10178
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: [HOWTO] Debian/Ubuntu repository for Games/Emulators/Ker

Unread post by meveric » Tue Dec 26, 2017 9:13 pm

Maclaren wrote:I added the XU3 repo and tried upgrading to linux-image-4.14-armhf-odroid-xu4 but I get a DPKG configure error
Probably cause you did not uninstall the previous Kernel first.
Maclaren wrote:EDIT: Installing the armsoc driver did not solve the problem. Kodi is still super laggy

This is the warning when I run kodi through the terminal

Code: Select all

libEGL warning: DRI2 failed to authenticate
I'm not sure how that kodi is compiled. LibEGL shouldn't be used directly, maybe it's compiled against fbdev, then I can't help you, and this thread is not the right place to discuss this.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Maclaren
Posts: 11
Joined: Sun Dec 24, 2017 5:02 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [HOWTO] Debian/Ubuntu repository for Games/Emulators/Ker

Unread post by Maclaren » Wed Dec 27, 2017 9:03 am

How can I uninstall the previous kernel?

Code: Select all

uanme -a
Linux Applebook 4.9.61-odroidxu4 #12 SMP PREEMPT Thu Nov 23 01:34:59 PST 2017 armv7l GNU/Linux
I tried to use the command

Code: Select all

rm -f /boot/*-4.9.61-odroidxu4 /boot/*.dtb

Code: Select all

rm -f /boot/*-4.9.61
Then I tried to install the xu4 kernel but I still get a dpkg reconfigure error

Code: Select all

apt-get install linux-image-4.14-armhf-odroid-xu4

User avatar
meveric
Posts: 10178
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: [HOWTO] Debian/Ubuntu repository for Games/Emulators/Ker

Unread post by meveric » Wed Dec 27, 2017 9:12 am

can you post the error?
Also check if /media/boot exists, as some images mount the rootfs under /media/boot instead of boot.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Maclaren
Posts: 11
Joined: Sun Dec 24, 2017 5:02 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Armbian Debian Stretch GPU driver issues

Unread post by Maclaren » Thu Dec 28, 2017 10:07 am

Code: Select all

ls /media/
return empty

Adding the XU3 repo and running

Code: Select all

apt-get install linux-image-4.14-armhf-odroid-xu4
gives the following output: (output trimmed to show the error part only)

Code: Select all

cp: '/boot/uInitrd-4.14.9+' and '/boot/uInitrd' are the same file
run-parts: /etc/kernel/postinst.d/uInitrd exited with return code 1
dpkg: error processing package linux-image-4.14.9+ (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-4.14-armhf-odroid-xu4:
 linux-image-4.14-armhf-odroid-xu4 depends on linux-image-4.14.9+; however:
  Package linux-image-4.14.9+ is not configured yet.

dpkg: error processing package linux-image-4.14-armhf-odroid-xu4 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-4.14.9+
 linux-image-4.14-armhf-odroid-xu4
E: Sub-process /usr/bin/dpkg returned an error code (1)

User avatar
meveric
Posts: 10178
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: Armbian Debian Stretch GPU driver issues

Unread post by meveric » Thu Dec 28, 2017 6:11 pm

not quite sure some of the scripts seem to return an error.
/boot/uInitrd-4.14.9+ should be copied to /boot/uInitrd but it says they are the same file, which is not possible unless one is a link of the other and if they are a link, then that's not from me.
Maybe you should try cleaning up the /boot partition a little more and then try installation again.
Try deleting /boot/uInitrd and then try again to see what happens.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Maclaren
Posts: 11
Joined: Sun Dec 24, 2017 5:02 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian Debian Stretch GPU driver issues

Unread post by Maclaren » Fri Dec 29, 2017 2:41 pm

I tried removing /boot/uInitrd.

Note: This time it did not say /boot/uInitrd is the same at etc...

It did not bring about any change in the installing process or the error.

User avatar
meveric
Posts: 10178
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: Armbian Debian Stretch GPU driver issues

Unread post by meveric » Sat Dec 30, 2017 12:06 am

make a folder "backup" in your /boot/ folder move all files (EXCEPT the boot.ini) from /boot/ to /boot/backup and then try from a clean folder again.
The Kernel should re-create all files except the boot.ini that are needed for the Kernel.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Maclaren
Posts: 11
Joined: Sun Dec 24, 2017 5:02 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian Debian Stretch GPU driver issues

Unread post by Maclaren » Tue Jan 02, 2018 2:16 pm

I tried what you suggested, but I get the same error.

Is there a way to compile just the graphics drivers and install those on the existing kernel?

User avatar
meveric
Posts: 10178
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: Armbian Debian Stretch GPU driver issues

Unread post by meveric » Tue Jan 02, 2018 5:55 pm

You can try to compile this version: https://github.com/OtherCrashOverride/xf86-video-armsoc
Make sure you use --prefix=/usr when running configure.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Maclaren
Posts: 11
Joined: Sun Dec 24, 2017 5:02 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian Debian Stretch GPU driver issues

Unread post by Maclaren » Wed Jan 03, 2018 3:21 am

While trying to compile I get drm.h error.

A suggested fix was installing libdrm which already installed.

What about Mali drivers? posted herehttps://developer.arm.com/products/software/mali-drivers/user-space

Is there a way to install those?

Also I think my KODI was compiled using x11 since I had the --enable-x11 in ./configure

Could Debian 9 be the major issue here? -> No tried installing kernel 4.14 on OMV3 (Debian 8 based) same error.

What drivers does Gamestation Turbo use, I flashed it and KODI worked super smoothly, I was trying to get similar results.

Trying to stick with the current image I have since I have 4 service already running very nice (AFP/PLEX/Seafile/Subsonic) plus a nice web interface for managing them.

User avatar
meveric
Posts: 10178
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: Armbian Debian Stretch GPU driver issues

Unread post by meveric » Wed Jan 03, 2018 5:33 am

Maclaren wrote:While trying to compile I get drm.h error.

A suggested fix was installing libdrm which already installed.
You probably have not the correct version.
Also could be that the source code is actually wrong. Try the following patch:

Code: Select all

diff --git a/src/armsoc_exa_exynos.c b/src/armsoc_exa_exynos.c
index 8a7ae71..a6dd85e 100755
--- a/src/armsoc_exa_exynos.c
+++ b/src/armsoc_exa_exynos.c
@@ -39,8 +39,8 @@
 
 /* Exynose G2D */
 #define __user 
-#include <uapi/drm/drm.h>
-#include <uapi/drm/exynos_drm.h>
+#include <drm/drm.h>
+#include <drm/exynos_drm.h>
 #include "exynos_fimg2d.h"
 
 /* This file has a trivial EXA implementation which accelerates nothing.  It
diff --git a/src/exynos_fimg2d.c b/src/exynos_fimg2d.c
index a078472..8061620 100755
--- a/src/exynos_fimg2d.c
+++ b/src/exynos_fimg2d.c
@@ -30,8 +30,8 @@
 
 //#include "libdrm_macros.h"
 //#include "exynos_drm.h"
-#include <uapi/drm/drm.h>
-#include <uapi/drm/exynos_drm.h>
+#include <drm/drm.h>
+#include <drm/exynos_drm.h>
 #include "fimg2d_reg.h"
 #include "exynos_fimg2d.h"
 
Maclaren wrote: What about Mali drivers? posted herehttps://developer.arm.com/products/software/mali-drivers/user-space

Is there a way to install those?
What mali drivers you use doesn't matter up to r17p0 all versions are supported, and it won't many difference.
Maclaren wrote: Also I think my KODI was compiled using x11 since I had the --enable-x11 in ./configure
That should be fine, X11 should work best.
Maclaren wrote:Could Debian 9 be the major issue here? -> No tried installing kernel 4.14 on OMV3 (Debian 8 based) same error.
Should not. I'm actually confused why this error happens. I've users from different OS, Ubuntu, Debian, Kali etc. switch their Kernel to my repo and it worked everywhere.
I don't understand why "cp" does throw an error. Unless /boot/uInitrd is a LINK to uInitrd-4.14.9+ this should not happen, and it can't be a link coming from my repo and if you clean the folder first.
So I don't understand why this happens. Maybe some config on the OMV image that messes with the defaults of the cp command or something like that.
Maclaren wrote:What drivers does Gamestation Turbo use
I'm also using armsoc driver but it's running under Debian Jessie at the moment, and it works fine with Kernel 3.10 and 4.14 (or 4.9) no problems here.
Maclaren wrote:I flashed it and KODI worked super smoothly, I was trying to get similar results.
As it should be :)
Maclaren wrote:Trying to stick with the current image I have since I have 4 service already running very nice (AFP/PLEX/Seafile/Subsonic) plus a nice web interface for managing them.
If you want you can make an backup of you image and I can try it on my side and try to figure out why it's not working.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Maclaren
Posts: 11
Joined: Sun Dec 24, 2017 5:02 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian Debian Stretch GPU driver issues

Unread post by Maclaren » Wed Jan 03, 2018 11:22 am

I don't think it is the drivers issue, I think its KODI not using the drivers. I installed the armsoc deb drivers on Debian 9 kernel 4.9 and it worked just fine.

The following is my xorg.conf

Code: Select all

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

Section "Device"
        Identifier      "Mali-Fbdev"
        Driver          "armsoc"
        Option          "fbdev"                 "/dev/fb0"
        Option          "Debug"                 "false"
        Option          "DPMS"                  "false"
        Option          "Fimg2DExa"             "true"
        Option          "DRI2"                  "true"
        Option          "DRI2_PAGE_FLIP"        "false"
#       Option          "Fimg2DExaSolid"        "false"
#       Option          "Fimg2DExaCopy"         "false"
        Option          "Fimg2DExaComposite"    "true"
        Option          "SWcursorLCD"           "false"
EndSection

Section "Screen"
        Identifier   "Default Screen"
        Device       "Mali-Fbdev"
        DefaultDepth 24
EndSection

Section "DRI"
        Mode 0666
EndSection
When starting kodi. I get the following error:

Code: Select all

/usr/lib/kodi/kodi.bin: error while loading shared libraries: libGLESv2.so.2: cannot open shared object file: No such file or directory

Code: Select all

root@odroid:/usr/lib/arm-linux-gnueabihf# ls -l /usr/lib/arm-linux-gnueabihf/libGLESv2*
lrwxrwxrwx 1 root root    43 Jan  3 02:04 /usr/lib/arm-linux-gnueabihf/libGLESv2.so -> /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2
lrwxrwxrwx 1 root root    48 Jan  3 02:44 /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2 -> /usr/lib/arm-linux-gnueabihf/mali-egl/libmali.so
lrwxrwxrwx 1 root root    48 Jan  3 02:04 /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2.0 -> /usr/lib/arm-linux-gnueabihf/mali-egl/libmali.so
-rw-r--r-- 1 root root 34092 Mar 21  2017 /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2.0.0

User avatar
meveric
Posts: 10178
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: Armbian Debian Stretch GPU driver issues

Unread post by meveric » Wed Jan 03, 2018 4:15 pm

can you copy the output of:

Code: Select all

ldd /usr/lib/kodi/kodi.bin
and

Code: Select all

ls -la /usr/lib/arm-linux-gnueabihf/lib*GL*
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

Maclaren
Posts: 11
Joined: Sun Dec 24, 2017 5:02 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian Debian Stretch GPU driver issues

Unread post by Maclaren » Thu Jan 04, 2018 1:27 pm

Hey,

Thanks for all the help. I have spent too much time on this and. I ended up using game station turbo and installing stuff on there.

Thanks

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 2 guests