Mali GPU driver
Edited by magicse at 2015-12-1 22:14Ready for use
Lubuntu 1404 0.9.0 with GPU mali driver
How install kernel part of drivers https://drive.google.com/open?id=0B2ZvWXG-omrARWx5U2x0Q2hQX3c
(Game start) :)
LEVEL 1
Add to script.fex (without this recods You'll get error message in syslog) :
mali_used = 1
mali_clkdiv = 1
mali_extreme_freq = 600
mali_extreme_vol = 1400
Copy modules ump.ko mali.ko drm.ko and mali_drm.ko to /lib/modules/3.4.39/
Copy Libs (libGLES* libGLES* LibUmp LibMali) to /usr/lib
Copy include to /usr/include
Create rules for dev
sudo cat <<eof>/etc/udev/rules.d/50-mali.rules
KERNEL=="mali", MODE="0666", GROUP="video"
KERNEL=="ump", MODE="0666", GROUP="video"
KERNEL=="cedar_dev", MODE="0666", GROUP="video"
EOF
To allow hardware acceleration without root privileges, you have to give write permissions to following device files:
sudo chmod 666 /dev/mali /dev/ump /dev/cedar_dev
sudo chown root:video /dev/mali
sudo chown root:video /dev/ump
sudo chown root:video /dev/cedar_dev
You must have to assign the group to the user:
sudo usermod -aG video [$USER] for me user ->orangepi
Modify /etc/modules to add the following lines:
ump
mali
drm
mali_drm
Say "Hi !" to kernel about new friends, type in a terminal "depmod -a" so it will parse the new modules.
reboot
Check syslog
grep -i "mali" /var/log/syslog
Level 1 done :funk:
LEVEL 2
Need to build xf86-video-fbturbo and configure X.11 xorg
http://img4.hostingpics.net/pics/208038Capturedcran26012015224239.png
building working egl acceleration isn't too difficult. what's worse is posting sdcard imags everyday which dumbs down this community. This is patched library version r4p0-00rel0
Note: install libMali.so to /usr/lib and make following symlinks to it:
libEGL.so
libEGL.so.1
libEGL.so.1.4
libGLESv1_CM.so
libGLESv1_CM.so.1
libGLESv1_CM.so.1.1
libGLESv2.so
libGLESv2.so.2
libGLESv2.so.2.0 We will releae working mali driver in about 2-3 weeks. @magicse I have sent it to your email. magicse replied at 2015-11-9 23:35
Could you say what are You patching in libMali.so ?
<__egl_platform_swap_buffers+40> ldr r3, <__egl_platform_swap_buffers+42> movs r2, #0
<__egl_platform_swap_buffers+44> add r4, sp, #24 ; There was #28
<__egl_platform_swap_buffers+46> add r3, pc
<__egl_platform_swap_buffers+48> ldr r0,
<__egl_platform_swap_buffers+50> movs r3, #0
<__egl_platform_swap_buffers+52> str r4,
<__egl_platform_swap_buffers+54> strd r2, r3,
<__egl_platform_swap_buffers+58> strd r2, r3,
<__egl_platform_swap_buffers+62> ldr r0,
<__egl_platform_swap_buffers+64> bl 0xb6f5cf64 <DRI2SwapBuffers>See comment in line <+44>
I think it's a bug in call to DRI2SwapBuffers. I'm not sure, but it seems that last parameter is something like some_struct *s and someone passed wrong pointer, so stack gets corrupted when DRI2SwapBuffers tries to write something to &s
No, it doesn't crashing, but it freeze all the time after few minutes or right after the start you need to apply a small fix to script.bin in order to get dvi working through hdmi. loboris made a collection of script.bin's that you can get on his Mega directory. Edited by magicse at 2015-12-1 22:23
Lubuntu 1404 0.9.0 with GPU mali drivers
hojnikb replied at 2015-11-5 00:34
While we're trying to make MALI gpu driver work, is it possible to have fbturbo working ?
https://gi ...
fbturbo compiles and works in Debian Jessie from Loboris.
But sometimes my OPI Plus hangs with some kernel oops
magicse replied at 2015-10-23 04:04
glmark2-es2 and other test app (like trinagle or gears)segfault after first frame.
After debug I f ...
working and you able to see horse??
Coz mali gpu use open GLES, not open GL :(
you can try the difference installing glmark2 and glmark2-es.
Regards
Tk Ah ok, thanks.
So, no way to set compatible Open GL softs ?
For vidéos, now I can play x264 with instaling this driver: https://github.com/linux-sunxi/libvdpau-sunxi
But I think A20 (even A31) processors are made for gross calculation, not realy for 3D or vidéos.
That explains why it is so difficult to get XBMC (not stable at this moment) How do we get GLES2 working on the Orange Pi2 ??
I've tried compiling the "sunxi-mali" source code demo but get compile errors about the GPU being an "unknown" type.
I'm on LUbuntu.What GNU OS supports Mali400 driver?Bananian doesn't run on OrangePi2. if i understood correctly mali driver works now only in android True,
I think so, after try both. Kodi works perfectly in Android, and 3D games too. (even if A20 is not very powerfull) Edited by zhao_steven at 2015-7-26 21:28
I have finished fbturbo on Orange Pi and Orange Pi mini.
This picture show. zhao_steven replied at 2015-7-26 21:23
I have finished fbturbo on Orange Pi and Orange Pi mini.
This picture show.
So how long for the OrangePi+ and Pi2 please Steven? about two weeks. Okay - excellent, thanks =)