I faced to the potential problem with EXA/DRI2 driver for X11.
In the latest build root from openlinux.amlogic.com we have the Amlogic pathed driver based on the original ARM Mali driver r5p0-01rel0. Starting from next ARM’s Mali revision r5p1-01rel0 which needed for S905X there are ARM’s changes and patch from Amlogic seems not compatible.
If we see at changes from r5p0-01rel0 to r7p0-00rel0 we can deside that we can use r7p0-00rel0 version without any problems on S905, S905X, and S912 SoSc but we need the patch from Amlogic to be able to use kernel FB driver!!!
Do you have working patches for at least r5p1 revision???
I think we don’t need to support HWCursor because it make problems with ncurses when we work in console terminals before startx. I think we need patch at least without HWCursor support.
Best Regards,
Andrey K.
P.S.
If you need I can send you the original versions of ARM xf86-video-mali drivers.
Hi, Andrey:
When we ported LibreELEC-7 on Khadas VIM a few month ago, we used gxbb-r6p1-01rel0 as the driver for GPU, and it works on VIM S905X.
As the version r5p0-01rel0 you mentioned, I think it’s 32-bit armhf as the config file on LibreELEC showed below(file path: packages/graphics/opengl-meson/package.mk):
case $MESON_FAMILY in
8)
PKG_VERSION="8-r5p1-01rel0-armhf"
;;
6)
PKG_VERSION="6-r5p1-01rel0-armhf"
;;
gxbb)
PKG_VERSION="gxbb-r6p1-01rel0"
r5p0-01rel0 may works on S905, but not sure on S905X.
I’m also not quite sure about the latest version r7p0-00rel0 yet, but will take a notice on it and try to port to Ubuntu on VIM.
I understand that I have to use arm64/r6p1 version of binary libMali.so. And r6p1-01rel0 version of xf86-video-mali for S905X (I have mentioned only r5p0 -> r5p1 changes from ARM).
Hi, Andrey:
Thanks to share the radix to us. Can you write a article with the detailed step to built GPU/MALI on VIM. This will help developers include Khadas Team to build their ROMs.
About the U-Boot question, can you create a new topic, and I will reply you there soon. We need keep forum tidy and more easy for reading.
Of course I will write article but at first I have to bring up the board and test Mali libraries on X.org server. Currently I create only user-space package. It is very simple: 1) I take Mali user-space library from Amlogic buildroot and add Headers (with little patch because Amlogic headers are not equal to Khronos headers). This process you can consider in this Makefile
Next step is kernel-space driver. And for it I have to build the Linux kernel. I will appreciate if you explane the main purpose of creating two branches Vim and ubuntu. Is the Vim - for Android and ubuntu - for ordinary Linux system?
Regarding U-Boot I will create the topic when I will prepare boot SD card for Khadas VIM.