Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 107907|Reply: 282

Mali GPU driver

[Copy link]

17

Threads

212

Posts

1150

Credits

Gold member

Rank: 6Rank: 6

Credits
1150
Post time 2015-1-28 17:32:52 | Show all posts |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
Post time 2015-12-4 20:56:19 | Show all posts
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

286

Credits

Intermediate member

Rank: 3Rank: 3

Credits
286
Post time 2015-11-9 23:03:29 | Show all posts
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 post contains more resources

You have to Login for download or view attachment(s). No Account? Register

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

0

Threads

32

Posts

286

Credits

Intermediate member

Rank: 3Rank: 3

Credits
286
Post time 2015-11-10 00:04:57 | Show all posts
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 the 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
Post time 2015-12-25 04:18:59 | Show all posts
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
Post time 2015-12-4 05:04:27 | Show all posts
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

839

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
839
Post time 2015-12-2 04:09:21 | Show all posts
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

286

Credits

Intermediate member

Rank: 3Rank: 3

Credits
286
Post time 2015-11-5 21:08:16 | Show all posts
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

1864

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
1864
Post time 2015-10-23 08:50:52 | Show all posts
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

105

Posts

989

Credits

Senior member

Rank: 4

Credits
989
Post time 2015-1-29 00:01:12 | Show all posts
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

1150

Credits

Gold member

Rank: 6Rank: 6

Credits
1150
 Author| Post time 2015-1-29 17:02:44 | Show all posts
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
Post time 2015-7-8 18:04:20 | Show all posts
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
Post time 2015-7-24 20:35:53 | Show all posts
if i understood correctly mali driver works now only in android

17

Threads

212

Posts

1150

Credits

Gold member

Rank: 6Rank: 6

Credits
1150
 Author| Post time 2015-7-26 16:00:59 | Show all posts
True,
I think so, after try both. Kodi works perfectly in Android, and 3D games too. (even if A20 is not very powerfull)
Post time 2015-7-26 21:23:17 | Show all posts
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 post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

1

Threads

39

Posts

151

Credits

Registered member

Rank: 2

Credits
151
Post time 2015-7-26 23:42:25 | Show all posts
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?
Post time 2015-7-26 23:59:03 | Show all posts
about two weeks.

1

Threads

39

Posts

151

Credits

Registered member

Rank: 2

Credits
151
Post time 2015-7-28 04:53:53 | Show all posts
Okay - excellent, thanks =)
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-12-16 08:19 GMT+8 , Processed in 0.044320 second(s), 24 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list