Have trialed and error many different methods but I cannot get either OpenGL or OpenGL ES acceleration working on my Rock 3B or my Rock 3A(have tested both) with my personal Armbian images. I have tried setting up both libmali(from JeffyCN) and panfrost using rkr 4.1 kernel source(Linux 5.10.160) from radxa but neither works.
For libmali, I tested both the g13p0 x11 libraries(for Mali G52) and g2p0 x11 libraries(gor Mali G52) on Debian 12 XFCE desktop(Armbian). With g13p0, I boot to a non-blinking cursor on a black screen, no progress after several minutes. With g2p0, I am able to boot into XFCE desktop and login, but colours are funny(what is supposed to be red colour is rendered blue, e.g. Armbian’s logo). Also, with g2p0, once I launch anything with GL ES 2, e.g. es2_info or es2gears-x11, the desktop crashes and logs me out so I have to log in with my password again. So obviously OpenGL ES with libmali is not working.
For panfrost, I set CONFIG_PANFROST=m and disabled CONFIG_DRM_IGNORE_IOTCL_PERMIT in kernel config, but when booting, the kernel gets stuck on ‘panfrost: finding power supply in device tree’(boot animation with Armbian logo gets stuck too, the spinning circle stops spinning and freezes). Is there an issue with panfrost on rkr4.1 kernel source? I’m booting panfrost-enabled kernel with Debian 12 image that has Mesa 22.3, which supports panfrost, so it’s not the same issue as this thread about Rock 3B CLI build.
To test further, I compiled Armbian Debian 12 with Armbian’s rockchip kernel source and Armbian’s rk35xx kernel config and panfrost works just fine(boots into desktop, glxinfo -B
shows panfrost as the OpenGL renderer). So is this panfrost broken on rkr4.1 kernel source? I see that Armbian rockchip repo uses rkr6, could that be the difference?
I’ve also tested radxa’s official b18 image for Rock 3B and I can see that libmali is set up properly and works, es2_info shows Mali g2p0 as the OpenGL ES renderer and I can run es2gears-x11 successfully. Can anyone explain how the b18 image setup libmali? Seems like I didn’t set up libmali correctly(I generated deb packages using ‘debuild -uc -us’ and installed the g52-g2p0-x11-gbm deb).
TLDR: Anyone has a guide on how to setup libmali properly with radxa’s Linux 5.10 rkr4.1 kernel source? Must I be on Debian 11(I’m on Debian 12)? Also, does anyone know why panfrost on radxa’s Linux 5.10 rkr 4.1 kernel source causes kernel to freeze during boot?