VIM3 + Ubuntu Image DDK Error

Hello. I have VIM3 running Ubuntu from khadas

Linux Khadas 4.9.206 #4 SMP PREEMPT Fri Apr 24 13:49:51 CST 2020 aarch64 aarch64 aarch64 GNU/Linux

After some upgrades and package installations, i get this error with some programs (e.g. Barrier)

khadas@Khadas:~$ barrier
ERROR: The DDK (built for 0x70030000 r0p0 status range [0…15]) is not compatible with this Mali GPU device, /dev/mali0 detected as 0x7212 r0p0 status 0.
Failed creating base context during DDK compatibility check.
Segmentation fault

Is this due to some graphics driver that got upgraded? Does anyone know how to get proper device? Or am i looking in the wrong direction?

Edit: problem is related to /usr/lib/aarch64-linux-gnu/libGLESv2.so.2.0.0

Apt-cache show libgles2 gives
Package: libgles2
Architecture: arm64
Version: 1.0.0-2ubuntu2.3

alternative version listed is:
Version: 1.0.0-2ubuntu2

I do not have libgles2-mesa installed.

Thanks!

What’s the result of ls -al /usr/lib/aarch64-linux-gnu/libGLESv2.so.2.0.0 ?

VIM3 only support mali GPU on fbdev, no X11 support.

result is:

root root 10 May 5 07:24 /usr/lib/aarch64-linux-gnu/libGLESv2.so.2.0.0 -> libMali.so

libmali is:

root root 45779720 Dec 27 03:01 /usr/lib/aarch64-linux-gnu/libMali.so

apt-file search libMali.so shows no package owning it.

Should i have some repositories provided by khadas in /etc/apt/sources.list? I only have ubuntu.

I know there’s no linux/X11 accel gles (yet) for this chipset. It seems that qt5 for ubuntu has dependencies on opengl-es. This seems strange that QT5 should require hardware GPU acceleration.

Thanks for all your work on this, and your help.

**[EDIT] This solved my issue. **

dpkg -i --force-all linux-gpu-amlogic-arm-mali-bifrost-g52-r12p0-fbdev_0.6_arm64.deb

Downloaded from: https://dl.khadas.com/test/linux-gpu-amlogic-arm-mali-bifrost-g52-r12p0-fbdev_0.6_arm64.deb

Might be the wrong thing to do, since package conflicted with an existing one

dpkg: warning: trying to overwrite ‘/etc/udev/rules.d/99-mali.rules’, which is also in package linux-gpu-mali-fbdev 0.8.1-r12p0

unfortunately i don’t have that fbdev in repo list
apt download linux-gpu-mali-fbdev
E: Can’t find a source to download version ‘0.8.1-r12p0’ of ‘linux-gpu-mali-fbdev:arm64’

my sources.list is
cat /etc/apt/sources.list
deb http://ports.ubuntu.com/ bionic main restricted universe multiverse
deb-src http://ports.ubuntu.com/ bionic main restricted universe multiverse

deb http://ports.ubuntu.com/ bionic-security main restricted universe multiverse
deb-src http://ports.ubuntu.com/ bionic-security main restricted universe multiverse

deb http://ports.ubuntu.com/ bionic-updates main restricted universe multiverse
deb-src http://ports.ubuntu.com/ bionic-updates main restricted universe multiverse

deb http://ports.ubuntu.com/ bionic-backports main restricted universe multiverse
deb-src http://ports.ubuntu.com/ bionic-backports main restricted universe multiverse

I’ll check the khadas ubuntu image for proper driver package, but for now, this problem is solved for me.

Cheers!