View: 188428|Reply: 282

Mali GPU driver

[Copy link]

17

threads

212

posts

1378

credits

Gold member

Rank: 6Rank: 6

credits
1378
Published in 2015-1-28 17:32:52 | Show all floors |Read mode
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)
LEVEL 1
Add to script.fex (without this recods You'll get error message in syslog) :
[mali_para]
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
LEVEL 2
Need to build xf86-video-fbturbo and configure X.11 xorg




0

threads

10

posts

54

credits

Registered member

Rank: 2

credits
54
Published in 2015-12-4 20:56:19 | Show all floors
building working egl acceleration isn't too difficult. what's worse is posting sdcard imags everyday which dumbs down this community.

0

threads

32

posts

356

credits

Intermediate member

Rank: 3Rank: 3

credits
356
Published in 2015-11-9 23:03:29 | Show all floors
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

This thread contains more resources

You need to Log in to download or view,No account?    Register

x
Published in 2015-11-9 18:56:39 | Show all floors
We will releae working mali driver in about 2-3 weeks.
Published in 2015-10-31 11:03:41 | Show all floors
@magicse I have sent it to your email.

0

threads

32

posts

356

credits

Intermediate member

Rank: 3Rank: 3

credits
356
Published in 2015-11-10 00:04:57 | Show all floors
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>
Copy code
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

0

threads

6

posts

52

credits

Registered member

Rank: 2

credits
52
Published in 2015-12-25 04:18:59 | Show all floors
No, it doesn't crashing, but it freeze all the time after few minutes or right after the start

0

threads

10

posts

54

credits

Registered member

Rank: 2

credits
54
Published in 2015-12-4 05:04:27 | Show all floors
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.

18

threads

200

posts

879

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
879
Published in 2015-12-2 04:09:21 | Show all floors
Edited by magicse at 2015-12-1 22:23

Lubuntu 1404 0.9.0 with GPU mali drivers

Orange PI 2
www.orangepi.pp.ua

0

threads

32

posts

356

credits

Intermediate member

Rank: 3Rank: 3

credits
356
Published in 2015-11-5 21:08:16 | Show all floors
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

11

threads

286

posts

1920

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
1920
Published in 2015-10-23 08:50:52 | Show all floors
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??

16

threads

104

posts

989

credits

Senior member

Rank: 4

credits
989
Published in 2015-1-29 00:01:12 | Show all floors
Coz mali gpu use open GLES, not open GL
you can try the difference installing glmark2 and glmark2-es.
Regards
Tk
OrangePi A20, with Qbee-X_testing

Still waiting for refund/replacement of no working op+2e bought on 11/11 >_<...really serious company

17

threads

212

posts

1378

credits

Gold member

Rank: 6Rank: 6

credits
1378
 Author| Published in 2015-1-29 17:02:44 | Show all floors
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)

6

threads

18

posts

73

credits

Registered member

Rank: 2

credits
73
Published in 2015-7-8 18:04:20 | Show all floors
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.

11

threads

75

posts

376

credits

Intermediate member

Rank: 3Rank: 3

credits
376
Published in 2015-7-24 20:35:53 | Show all floors
if i understood correctly mali driver works now only in android

17

threads

212

posts

1378

credits

Gold member

Rank: 6Rank: 6

credits
1378
 Author| Published in 2015-7-26 16:00:59 | Show all floors
True,
I think so, after try both. Kodi works perfectly in Android, and 3D games too. (even if A20 is not very powerfull)
Published in 2015-7-26 21:23:17 | Show all floors
Edited by zhao_steven at 2015-7-26 21:28

I have finished fbturbo on Orange Pi and Orange Pi mini.
This picture show.

This thread contains more resources

You need to Log in to download or view,No account?    Register

x

1

threads

39

posts

151

credits

Registered member

Rank: 2

credits
151
Published in 2015-7-26 23:42:25 | Show all floors
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?
Published in 2015-7-26 23:59:03 | Show all floors
about two weeks.

1

threads

39

posts

151

credits

Registered member

Rank: 2

credits
151
Published in 2015-7-28 04:53:53 | Show all floors
Okay - excellent, thanks =)
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list