Can't enable gpu acceleration on OrangePi Zero2W

Hello, I can’t enable gpu in DietPi on OPI Zero2W.
I edited dtb file and enabled gpu and install panfrost drivers but there no gpu in GL, also tried ovelays. It was detected by panfrost but not by OpenGL


root@DietPi:/# dmesg | grep panfrost
[ 6.049006] panfrost 1800000.gpu: clock rate = 432000000
[ 6.049061] panfrost 1800000.gpu: bus_clock rate = 200000000
[ 6.050429] panfrost 1800000.gpu: mali-g31 id 0x7093 major 0x0 minor 0x0 status 0x0
[ 6.050479] panfrost 1800000.gpu: features: 00000000,000027f7, issues: 00000000,00000400
[ 6.050496] panfrost 1800000.gpu: Features: L2:0x07100206 Shader:0x00000000 Tiler:0x00000209 Mem:0x1 MMU:0x00002821 AS:0xff JS:0x7
[ 6.050514] panfrost 1800000.gpu: shader_present=0x1 l2_present=0x1
[ 6.060386] [drm] Initialized panfrost 1.2.0 for 1800000.gpu on minor 1


root@DietPi:/# glxinfo | grep “OpenGL renderer”
OpenGL renderer string: llvmpipe (LLVM 15.0.6, 128 bits)


Kernel: Linux DietPi 6.12.23-current-sunxi64 aarch64 GNU/Linux

SBC model: Orange Pi Zero2W

DietPi version:

G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=16
G_DIETPI_VERSION_RC=3
G_GITBRANCH=‘master’

Hi

How did you applied the overlay ?

With the command G-config-inject ?

yes, as it is written here

Are you sûre this overlay i’s avalaible with your kernel ?

A screenshoot of your dtb overlay folder ?

I think so, I found this.

If you edited your dtb file
Does it seems equal to this fragment

fragment@6 {
		target-path = "/soc";
		__overlay__ {
			gpu: gpu {
			                       compatible = "allwinner,sun50i-h616-mali", "arm,mali-bifrost";
			                       status = "okay";
			                       };
			 };
	};
1 Like

Thank you for your help and sorry for wasting your time. The problem was only my inexperience with the Linux and now I’ve figured it out.. i’m sorry.

No problem retromaid
Did it work now ?