4 4
Nazar Gerasymchuk

Is Mali GPU driver available in Mainline for H3?

Recommended Posts

More tests results is here :rolleyes: Using same desktop image (v20.02.1 buster). But this time with old kernel v4.19.38 from here https://apt.armbian.com/pool/main/l/linux-4.19.38-sunxi/. Same steps as before were made. And performance results are the same! :lol:

 

I think the problem can be with armsoc+X11 pair. To prove that fact I installed an old package xserver-xorg-video-armsoc-sun4i instead of building it from the sources. Performance became very very low.

Share this post


Link to post
Share on other sites
21 minutes ago, gafoo said:

any new solution?

 

 

Mali drivers are part of the kernel for more than a year now. How you will use them, its up to you.

Share this post


Link to post
Share on other sites

Hello,
How to use the drivers?
Unfortunately I can only run Minecraft (full Java Edition) with 1-2 FPS on the M2U.
Minecraft show a graphics card from VMware and not a Mali GPU.
How can I activate the GPU?
I currently have the latest version of Armbian Buster installed.

I would be very happy about an answer

 

 

Share this post


Link to post
Share on other sites
On 5/19/2020 at 4:04 PM, Xedon said:

Hello,
How to use the drivers?
Unfortunately I can only run Minecraft (full Java Edition) with 1-2 FPS on the M2U.
Minecraft show a graphics card from VMware and not a Mali GPU.
How can I activate the GPU?
I currently have the latest version of Armbian Buster installed.

I would be very happy about an answer

 

 

I am having the same problem with Buster, it seems like it should be a straightforward thing to do, I just can't find any documentation or examples.

Share this post


Link to post
Share on other sites

Hi @jock if you still have that image would you mind PM'ing me a link to it? I'd like to check it against the one I'm working on here. Thanks a lot :)

Share this post


Link to post
Share on other sites

Hello, guys.

I need to run QT application with GUI on armbian and i want to do this without installing X11. So, as i think, i need to install OpenGL ES driver thirst.

I built sunxi mali module, and installed the user-space components.

How can i check that driver and opengl is working?

Share this post


Link to post
Share on other sites
31 minutes ago, gogoer said:

Hello, guys.

I need to run QT application with GUI on armbian and i want to do this without installing X11. So, as i think, i need to install OpenGL ES driver thirst.

I built sunxi mali module, and installed the user-space components.

How can i check that driver and opengl is working?

It is much better to go with Lima driver (eg: mainline kernel) nowadays, which should provide everything you need already packed and working, including opengl and opengl es via mesa.

However if you want to test Mali driver, read carefully this thread and compile glmark2 to test it.

Share this post


Link to post
Share on other sites
$ sudo ldconfig -p | grep -P "(EGL|GLES)"
    libGLESv2.so.2.0 (libc6,hard-float) => /lib/libGLESv2.so.2.0
    libGLESv2.so.2 (libc6,hard-float) => /lib/arm-linux-gnueabihf/libGLESv2.so.2
    libGLESv2.so.2 (libc6,hard-float) => /lib/libGLESv2.so.2
    libGLESv2.so (libc6,hard-float) => /lib/arm-linux-gnueabihf/libGLESv2.so
    libGLESv2.so (libc6,hard-float) => /lib/libGLESv2.so
    libGLESv1_CM.so.1.1 (libc6,hard-float) => /lib/libGLESv1_CM.so.1.1
    libGLESv1_CM.so.1 (libc6,hard-float) => /lib/arm-linux-gnueabihf/libGLESv1_CM.so.1
    libGLESv1_CM.so.1 (libc6,hard-float) => /lib/libGLESv1_CM.so.1
    libGLESv1_CM.so (libc6,hard-float) => /lib/arm-linux-gnueabihf/libGLESv1_CM.so
    libGLESv1_CM.so (libc6,hard-float) => /lib/libGLESv1_CM.so
    libEGL_mesa.so.0 (libc6,hard-float) => /lib/arm-linux-gnueabihf/libEGL_mesa.so.0
    libEGL.so.1.4 (libc6,hard-float) => /lib/libEGL.so.1.4
    libEGL.so.1 (libc6,hard-float) => /lib/arm-linux-gnueabihf/libEGL.so.1
    libEGL.so.1 (libc6,hard-float) => /lib/libEGL.so.1
    libEGL.so (libc6,hard-float) => /lib/arm-linux-gnueabihf/libEGL.so
    libEGL.so (libc6,hard-float) => /lib/libEGL.so

 

es2_info
Error: couldn't open display (null)

 

es2gears
EGLUT: failed to initialize native display

 

glmark2-es2 
Error: main: Could not initialize canvas

 

this is output of glmark and others.

Share this post


Link to post
Share on other sites
sudo modinfo lima
filename:       /lib/modules/5.4.45-sunxi/kernel/drivers/gpu/drm/lima/lima.ko
license:        GPL v2
description:    Lima DRM Driver
author:         Lima Project Developers
alias:          of:N*T*Carm,mali-450C*
alias:          of:N*T*Carm,mali-450
alias:          of:N*T*Carm,mali-400C*
alias:          of:N*T*Carm,mali-400
depends:        gpu-sched
intree:         Y
name:           lima
vermagic:       5.4.45-sunxi SMP mod_unload ARMv7 thumb2 p2v8 
sig_id:         PKCS#7

as i understand, lima is already installed in my system. 

how can i use it and install OpenGL ES lib?

Share this post


Link to post
Share on other sites
5 hours ago, gogoer said:

as i understand, lima is already installed in my system. 

how can i use it and install OpenGL ES lib?

https://wiki.debian.org/PanfrostLima

Quote

Both the Panfrost and Lima drivers are included in Mesa and should work out-of-the-box after installing the relevant packages (which are, in practice, libglx-mesa0 and libgl1-mesa-dri).

 

Share this post


Link to post
Share on other sites
Quote

(which are, in practice, libglx-mesa0 and libgl1-mesa-dri).

both packages are installed.

so why es2_info returns error?

what else i need to crosscompile Qt5 with Opengl ES support? what the path to Opengl ES libraries in armbian?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
4 4