Forum > Device drivers(GPU&VPU)
gaara 看全部
2015-1-28 17:32:52
Edited by magicse at 2015-12-1 22:14

Ready 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)
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"

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:

Say "Hi !" to kernel about new friends, type in a terminal "depmod -a" so it will parse the new modules.
Check syslog
grep -i "mali" /var/log/syslog
Level 1 done
Need to build xf86-video-fbturbo and configure X.11 xorg

lyoko 看全部
2015-12-4 20:56:19
building working egl acceleration isn't too difficult. what's worse is posting sdcard imags everyday which dumbs down this community.
whitewind 看全部
2015-11-9 23:03:29
This is patched library version r4p0-00rel0
Note: install libMali.so to /usr/lib and make following symlinks to it:
attachment: 您需要登录才可以下载或查看附件。没有账号?Register
zhao_steven 看全部
2015-11-9 18:56:39
We will releae working mali driver in about 2-3 weeks.
zhao_steven 看全部
2015-10-31 11:03:41
@magicse I have sent it to your email.
whitewind 看全部
2015-11-10 00:04:57


magicse replied at 2015-11-9 23:35
Could you say what are You patching in libMali.so ?


  1. <__egl_platform_swap_buffers+40>     ldr    r3, [pc, #36] <__egl_platform_swap_buffers+42>     movs   r2, #0
  2. <__egl_platform_swap_buffers+44>     add    r4, sp, #24 ; There was #28
  3. <__egl_platform_swap_buffers+46>     add    r3, pc
  4. <__egl_platform_swap_buffers+48>     ldr    r0, [r3, #4]
  5. <__egl_platform_swap_buffers+50>     movs   r3, #0
  6. <__egl_platform_swap_buffers+52>     str    r4, [sp, #16]
  7. <__egl_platform_swap_buffers+54>     strd   r2, r3, [sp]
  8. <__egl_platform_swap_buffers+58>     strd   r2, r3, [sp, #8]
  9. <__egl_platform_swap_buffers+62>     ldr    r0, [r0, #4]
  10. <__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
romang 看全部
2015-12-25 04:18:59
No, it doesn't crashing, but it freeze all the time after few minutes or right after the start
lyoko 看全部
2015-12-4 05:04:27
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.
magicse 看全部
2015-12-2 04:09:21
Edited by magicse at 2015-12-1 22:23

Lubuntu 1404 0.9.0 with GPU mali drivers

whitewind 看全部
2015-11-5 21:08:16


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
melanrz 看全部
2015-10-23 08:50:52


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??
tokka 看全部
2015-1-29 00:01:12
Coz mali gpu use open GLES, not open GL
you can try the difference installing glmark2 and glmark2-es.
gaara 看全部
2015-1-29 17:02:44
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)
zezba9000 看全部
2015-7-8 18:04:20
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.
bhgv 看全部
2015-7-24 20:35:53
if i understood correctly mali driver works now only in android
1234.. 57NextPage

OrangePi En

Powered by Discuz! X3.4

homepage|Simple edition|Touch edition|PC