Anthony Walter Posted April 25, 2023 Posted April 25, 2023 Can anyone provide any information on getting the GPU driver working with a Banana Pi M2 Zero? It supposedly has a Mali 400 GPU. In my tests, it seems I am stuck with Mesa software rendering with OpenGL. When I write a program that creates an OpenGL 2.0 ES context, the vendor and renderer both list Mesa and performance is terrible (2-10 fps and GLSL shaders are incorrect) when rendering even the simplest scenes. I am using DRM (Direct Rendering Manager) with boots straight to a CLI and no desktop environment if that makes any difference. With the same code and same conditions on a Raspberry Pi Zero 2 W, OpenGL works perfectly in my tests. I am using the most recent Armbian linked on the banana pi wiki page for the product. I tried to build the Mali driver for the Mali 400 GPU from source using this command: KDIR=/lib/modules/`uname -r`/build USING_UMP=0 BUILD=release make But receive this error: Makefile:122: CONFIG_TRACEPOINTS required for profiling Makefile:92: /lib/modules/6.0.9-sunxi/build/.config: No such file or directory make: *** No rule to make target '/lib/modules/6.0.9-sunxi/build/.config'. Stop. When I think means I don't have header sources for my kernel. I looked through apt cache and it doesn't have the source for my kernel listed. What can I do to get actual OpenGL ES 2.0 GPU hardware support (or even OpenGL 3.0 core profile) working on this hardware with Armbian? 0 Quote
usual user Posted April 30, 2023 Posted April 30, 2023 On 4/25/2023 at 5:25 AM, Anthony Walter said: Can anyone provide any information on getting the GPU driver working https://docs.mesa3d.org/drivers/lima.html 0 Quote
going Posted April 30, 2023 Posted April 30, 2023 25.04.2023 в 09:08, Werner сказал: moved to unmaintained And what is the reason for this? 0 Quote
going Posted April 30, 2023 Posted April 30, 2023 25.04.2023 в 06:25, Anthony Walter сказал: Can anyone provide any information on getting the GPU driver working with a Banana Pi M2 Zero? Is there a CPU H3 or H2 on your device? @Anthony Walter If I understand correctly, do you need a kernel with support for the Lima driver and headers for this kernel? 0 Quote
Werner Posted May 1, 2023 Posted May 1, 2023 10 hours ago, going said: And what is the reason for this? There is no maintainer for it. Want to volunteer? 0 Quote
going Posted May 1, 2023 Posted May 1, 2023 4 часа назад, Werner сказал: There is no maintainer for it. Just tell the user how to properly install headers from this particular kernel. There is one core for the entire sunxi (arm) family. That's all he needs. 0 Quote
jock Posted May 1, 2023 Posted May 1, 2023 @Anthony Walter The Mali-400 GPU is supported out of the box with recent kernel and distributions. There is already a driver in the kernel, but (I guess) it has to be properly set up in the device tree and in userspace for your particular board. Since your board is not maintained by anyone, support is community based. If someone step out for help good, otherwise you have to do it yourself. 0 Quote
vlad_cool Posted June 28, 2023 Posted June 28, 2023 Best way is to build armbian selecting desktop and then 3d support in armbian build. I also have scripts to install drivers, but they work well only on cli images (where there isn't any video drivers) 0 Quote
Alan Rios Posted September 5, 2023 Posted September 5, 2023 @going I use armbian version 4.4 xfce, could you help me to install the driver lima? 0 Quote
Gunjan Gupta Posted September 5, 2023 Posted September 5, 2023 @Alan Rioslima should already be installed on the device as we do build it when compiling our kernels. If you run lsmod command, it should get listed in the output 0 Quote
Recommended Posts
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.