Author: gaara

Mali GPU driver

[Copy link]

0

threads

32

posts

372

credits

Intermediate member

Rank: 3Rank: 3

credits
372
Published in 2015-11-18 12:10:34 | Show all floors
barban replied at 2015-11-18 09:48
Hi guys,
I have an OPI2 board with loboris's Lubuntu image (coming with mali r4p0 kernel modules).
M ...

Run
  1. whereis libEGL.so
  2. ldd /usr/bin/glmark2-es2
Copy code
and post output here

1

threads

115

posts

709

credits

Senior member

Rank: 4

credits
709
Published in 2015-11-18 23:45:08 | Show all floors
Is there a premade image, that has the gpu driver and fbturbo configured ?

2

threads

21

posts

86

credits

Registered member

Rank: 2

credits
86
Published in 2015-11-19 04:46:56 | Show all floors
@whitewind, @hojnikb: thanks for your interest on this issue

libEGL.so in on the right lib path (/usr/lib/):
  1. root@OrangePI:~# ldd /usr/bin/glmark2-es2
  2.         libjpeg.so.8 => /usr/lib/arm-linux-gnueabihf/libjpeg.so.8 (0xb6f0c000)
  3.         libpng12.so.0 => /lib/arm-linux-gnueabihf/libpng12.so.0 (0xb6ee4000)
  4.         libX11.so.6 => /usr/lib/arm-linux-gnueabihf/libX11.so.6 (0xb6df6000)
  5.         libEGL.so.1 => /usr/lib/libEGL.so.1 (0xb6d2f000)
  6.         libGLESv2.so.2 => /usr/lib/libGLESv2.so.2 (0xb6c68000)
  7.         libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0xb6bae000)
  8.         libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6b38000)
  9.         libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6b0f000)
  10.         libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6a21000)
  11.         /lib/ld-linux-armhf.so.3 (0xb6f66000)
  12.         libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb69ff000)
  13.         libxcb.so.1 => /usr/lib/arm-linux-gnueabihf/libxcb.so.1 (0xb69e5000)
  14.         libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb69d1000)
  15.         libUMP.so => /usr/lib/arm-linux-gnueabihf/libUMP.so (0xb69bb000)
  16.         libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb69a7000)
  17.         libdrm.so.2 => /usr/lib/arm-linux-gnueabihf/libdrm.so.2 (0xb698e000)
  18.         libXfixes.so.3 => /usr/lib/arm-linux-gnueabihf/libXfixes.so.3 (0xb697a000)
  19.         libXext.so.6 => /usr/lib/arm-linux-gnueabihf/libXext.so.6 (0xb695e000)
  20.         librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb6948000)
  21.         libXau.so.6 => /usr/lib/arm-linux-gnueabihf/libXau.so.6 (0xb693d000)
  22.         libXdmcp.so.6 => /usr/lib/arm-linux-gnueabihf/libXdmcp.so.6 (0xb6931000)
  23. root@OrangePI:~#
Copy code

kernel's image was compiled by myself with mali driver module; fbturbo was configured as follows:
  1. root@OrangePI:~# cat /etc/X11/xorg.conf
  2. # This is a minimal sample config file, which can be copied to
  3. # /etc/X11/xorg.conf in order to make the Xorg server pick up
  4. # and load xf86-video-fbturbo driver installed in the system.
  5. #
  6. # When troubleshooting, check /var/log/Xorg.0.log for the debugging
  7. # output and error messages.
  8. #
  9. # Run "man fbturbo" to get additional information about the extra
  10. # configuration options for tuning the driver.

  11. Section "Device"
  12.         Identifier      "Allwinner A10/A13 FBDEV"
  13.         Driver          "fbturbo"
  14.         Option          "fbdev" "/dev/fb0"

  15.         Option          "SwapbuffersWait" "true"        
  16. EndSection
  17. root@OrangePI:~#
Copy code


lsmod as follows:
  1. root@OrangePI:~# lsmod
  2. Module                  Size  Used by
  3. mali                  216688  0
  4. mali_drm                6634  0
  5. drm                   180399  1 mali_drm
  6. ump                    42369  1 mali
  7. 8189es                901572  0
Copy code

2

threads

21

posts

86

credits

Registered member

Rank: 2

credits
86
Published in 2015-11-19 04:47:11 | Show all floors
@whitewind, @hojnikb: thanks for your interest on this issue

libEGL.so in on the right lib path (/usr/lib/):
  1. root@OrangePI:~# ldd /usr/bin/glmark2-es2
  2.         libjpeg.so.8 => /usr/lib/arm-linux-gnueabihf/libjpeg.so.8 (0xb6f0c000)
  3.         libpng12.so.0 => /lib/arm-linux-gnueabihf/libpng12.so.0 (0xb6ee4000)
  4.         libX11.so.6 => /usr/lib/arm-linux-gnueabihf/libX11.so.6 (0xb6df6000)
  5.         libEGL.so.1 => /usr/lib/libEGL.so.1 (0xb6d2f000)
  6.         libGLESv2.so.2 => /usr/lib/libGLESv2.so.2 (0xb6c68000)
  7.         libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0xb6bae000)
  8.         libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6b38000)
  9.         libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6b0f000)
  10.         libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6a21000)
  11.         /lib/ld-linux-armhf.so.3 (0xb6f66000)
  12.         libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb69ff000)
  13.         libxcb.so.1 => /usr/lib/arm-linux-gnueabihf/libxcb.so.1 (0xb69e5000)
  14.         libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb69d1000)
  15.         libUMP.so => /usr/lib/arm-linux-gnueabihf/libUMP.so (0xb69bb000)
  16.         libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb69a7000)
  17.         libdrm.so.2 => /usr/lib/arm-linux-gnueabihf/libdrm.so.2 (0xb698e000)
  18.         libXfixes.so.3 => /usr/lib/arm-linux-gnueabihf/libXfixes.so.3 (0xb697a000)
  19.         libXext.so.6 => /usr/lib/arm-linux-gnueabihf/libXext.so.6 (0xb695e000)
  20.         librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb6948000)
  21.         libXau.so.6 => /usr/lib/arm-linux-gnueabihf/libXau.so.6 (0xb693d000)
  22.         libXdmcp.so.6 => /usr/lib/arm-linux-gnueabihf/libXdmcp.so.6 (0xb6931000)
  23. root@OrangePI:~#
Copy code

kernel's image was compiled by myself with mali driver module; fbturbo was configured as follows:
  1. root@OrangePI:~# cat /etc/X11/xorg.conf
  2. # This is a minimal sample config file, which can be copied to
  3. # /etc/X11/xorg.conf in order to make the Xorg server pick up
  4. # and load xf86-video-fbturbo driver installed in the system.
  5. #
  6. # When troubleshooting, check /var/log/Xorg.0.log for the debugging
  7. # output and error messages.
  8. #
  9. # Run "man fbturbo" to get additional information about the extra
  10. # configuration options for tuning the driver.

  11. Section "Device"
  12.         Identifier      "Allwinner A10/A13 FBDEV"
  13.         Driver          "fbturbo"
  14.         Option          "fbdev" "/dev/fb0"

  15.         Option          "SwapbuffersWait" "true"        
  16. EndSection
  17. root@OrangePI:~#
Copy code


lsmod as follows:
  1. root@OrangePI:~# lsmod
  2. Module                  Size  Used by
  3. mali                  216688  0
  4. mali_drm                6634  0
  5. drm                   180399  1 mali_drm
  6. ump                    42369  1 mali
  7. 8189es                901572  0
Copy code

2

threads

21

posts

86

credits

Registered member

Rank: 2

credits
86
Published in 2015-11-19 04:49:31 | Show all floors
@whitewind, @hojnikb: thanks for your interest on this issue

libEGL.so in on the right lib path (/usr/lib/):
  1. root@OrangePI:~# ldd /usr/bin/glmark2-es2
  2.         libjpeg.so.8 => /usr/lib/arm-linux-gnueabihf/libjpeg.so.8 (0xb6f0c000)
  3.         libpng12.so.0 => /lib/arm-linux-gnueabihf/libpng12.so.0 (0xb6ee4000)
  4.         libX11.so.6 => /usr/lib/arm-linux-gnueabihf/libX11.so.6 (0xb6df6000)
  5.         libEGL.so.1 => /usr/lib/libEGL.so.1 (0xb6d2f000)
  6.         libGLESv2.so.2 => /usr/lib/libGLESv2.so.2 (0xb6c68000)
  7.         libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0xb6bae000)
  8.         libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6b38000)
  9.         libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6b0f000)
  10.         libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6a21000)
  11.         /lib/ld-linux-armhf.so.3 (0xb6f66000)
  12.         libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb69ff000)
  13.         libxcb.so.1 => /usr/lib/arm-linux-gnueabihf/libxcb.so.1 (0xb69e5000)
  14.         libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb69d1000)
  15.         libUMP.so => /usr/lib/arm-linux-gnueabihf/libUMP.so (0xb69bb000)
  16.         libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb69a7000)
  17.         libdrm.so.2 => /usr/lib/arm-linux-gnueabihf/libdrm.so.2 (0xb698e000)
  18.         libXfixes.so.3 => /usr/lib/arm-linux-gnueabihf/libXfixes.so.3 (0xb697a000)
  19.         libXext.so.6 => /usr/lib/arm-linux-gnueabihf/libXext.so.6 (0xb695e000)
  20.         librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb6948000)
  21.         libXau.so.6 => /usr/lib/arm-linux-gnueabihf/libXau.so.6 (0xb693d000)
  22.         libXdmcp.so.6 => /usr/lib/arm-linux-gnueabihf/libXdmcp.so.6 (0xb6931000)
  23. root@OrangePI:~#
Copy code

kernel's image was compiled by myself with mali driver module; fbturbo was configured as follows:
  1. root@OrangePI:~# cat /etc/X11/xorg.conf
  2. # This is a minimal sample config file, which can be copied to
  3. # /etc/X11/xorg.conf in order to make the Xorg server pick up
  4. # and load xf86-video-fbturbo driver installed in the system.
  5. #
  6. # When troubleshooting, check /var/log/Xorg.0.log for the debugging
  7. # output and error messages.
  8. #
  9. # Run "man fbturbo" to get additional information about the extra
  10. # configuration options for tuning the driver.

  11. Section "Device"
  12.         Identifier      "Allwinner A10/A13 FBDEV"
  13.         Driver          "fbturbo"
  14.         Option          "fbdev" "/dev/fb0"

  15.         Option          "SwapbuffersWait" "true"        
  16. EndSection
  17. root@OrangePI:~#
Copy code


lsmod as follows:
  1. root@OrangePI:~# lsmod
  2. Module                  Size  Used by
  3. mali                  216688  0
  4. mali_drm                6634  0
  5. drm                   180399  1 mali_drm
  6. ump                    42369  1 mali
  7. 8189es                901572  0
Copy code

2

threads

21

posts

86

credits

Registered member

Rank: 2

credits
86
Published in 2015-11-19 04:51:48 | Show all floors
Edited by barban at 2015-11-19 04:55

@whitewind, @hojnikb: thanks for your interest on this issue

libEGL.so in on the right lib path (/usr/lib/):
  1. root@OrangePI:~# ldd /usr/bin/glmark2-es2
  2.         libjpeg.so.8 => /usr/lib/arm-linux-gnueabihf/libjpeg.so.8 (0xb6f0c000)
  3.         libpng12.so.0 => /lib/arm-linux-gnueabihf/libpng12.so.0 (0xb6ee4000)
  4.         libX11.so.6 => /usr/lib/arm-linux-gnueabihf/libX11.so.6 (0xb6df6000)
  5.         libEGL.so.1 => /usr/lib/libEGL.so.1 (0xb6d2f000)
  6.         libGLESv2.so.2 => /usr/lib/libGLESv2.so.2 (0xb6c68000)
  7.         libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0xb6bae000)
  8.         libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6b38000)
  9.         libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6b0f000)
  10.         libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6a21000)
  11.         /lib/ld-linux-armhf.so.3 (0xb6f66000)
  12.         libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb69ff000)
  13.         libxcb.so.1 => /usr/lib/arm-linux-gnueabihf/libxcb.so.1 (0xb69e5000)
  14.         libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb69d1000)
  15.         libUMP.so => /usr/lib/arm-linux-gnueabihf/libUMP.so (0xb69bb000)
  16.         libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb69a7000)
  17.         libdrm.so.2 => /usr/lib/arm-linux-gnueabihf/libdrm.so.2 (0xb698e000)
  18.         libXfixes.so.3 => /usr/lib/arm-linux-gnueabihf/libXfixes.so.3 (0xb697a000)
  19.         libXext.so.6 => /usr/lib/arm-linux-gnueabihf/libXext.so.6 (0xb695e000)
  20.         librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb6948000)
  21.         libXau.so.6 => /usr/lib/arm-linux-gnueabihf/libXau.so.6 (0xb693d000)
  22.         libXdmcp.so.6 => /usr/lib/arm-linux-gnueabihf/libXdmcp.so.6 (0xb6931000)
  23. root@OrangePI:~#
Copy code

kernel's image was compiled by myself with mali driver module; fbturbo was configured as follows:
  1. root@OrangePI:~# cat /etc/X11/xorg.conf
  2. # This is a minimal sample config file, which can be copied to
  3. # /etc/X11/xorg.conf in order to make the Xorg server pick up
  4. # and load xf86-video-fbturbo driver installed in the system.
  5. #
  6. # When troubleshooting, check /var/log/Xorg.0.log for the debugging
  7. # output and error messages.
  8. #
  9. # Run "man fbturbo" to get additional information about the extra
  10. # configuration options for tuning the driver.

  11. Section "Device"
  12.         Identifier      "Allwinner A10/A13 FBDEV"
  13.         Driver          "fbturbo"
  14.         Option          "fbdev" "/dev/fb0"

  15.         Option          "SwapbuffersWait" "true"        
  16. EndSection
  17. root@OrangePI:~#
Copy code


lsmod as follows:
  1. root@OrangePI:~# lsmod
  2. Module                  Size  Used by
  3. mali                  216688  0
  4. mali_drm                6634  0
  5. drm                   180399  1 mali_drm
  6. ump                    42369  1 mali
  7. 8189es                901572  0
Copy code

dmesg shows a "Failed to get mali parameter!" message which could be a problem..
  1. [  614.350553] UMP: UMP device driver -3516ca7 loaded
  2. [  625.664226] [drm] Initialized drm 1.1.0 20060810
  3. [  631.046516] mali_platform_drm_init(), driver name: mali_drm, version 0.1
  4. [  631.046984] DRM: mali_platform_drm_probe()
  5. [  631.047009] mali_drm_init(), driver name: mali_drm, version 0.1
  6. [  631.047983] DRM: mali_driver_load start
  7. [  631.048081] DRM: mali_driver_load done
  8. [  631.048118] [drm] Initialized mali_drm 0.1.0 20100520 on minor 0
  9. [  631.058006] DRM: mali_lastclose
  10. [  631.067016] DRM: mali_lastclose
  11. [  635.017257] Failed to get mali parameter!
  12. [  635.017567] Init Mali gpu successfully
  13. [  635.018828] Mali: Mali device driver loaded
Copy code


0

threads

32

posts

372

credits

Intermediate member

Rank: 3Rank: 3

credits
372
Published in 2015-11-19 12:16:09 | Show all floors
barban replied at 2015-11-19 04:51
@whitewind, @hojnikb: thanks for your interest on this issue

libEGL.so in on the right lib path (/u ...

These files should be the same (ether copy or symlinks):
        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
        libMali.so
Next, which kernel module did you compile? I've succeded with this: https://github.com/loboris/Orang ... 0_modify/driver/src (modified by Loboris)
And make sure that you use proper libUMP.so. I compiled it from sources.

18

threads

200

posts

888

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
888
Published in 2015-11-19 19:15:52 | Show all floors
barban replied at 2015-11-18 22:51
@whitewind, @hojnikb: thanks for your interest on this issue

libEGL.so in on the right lib path (/u ...

Add to script.fex next lines and error get out )

[mali_para]
mali_used = 1
mali_clkdiv = 1
mali_extreme_freq = 600
mali_extreme_vol = 1400

Orange PI 2
www.orangepi.pp.ua

2

threads

21

posts

86

credits

Registered member

Rank: 2

credits
86
Published in 2015-11-19 23:28:15 | Show all floors
whitewind replied at 2015-11-19 12:16
These files should be the same (ether copy or symlinks):
        libEGL.so
        libEGL.so.1

Hi whitewind.
- Kernel's r4p0 mali modules come from kernel's sources modified by Loboris.
- Mali user-space binaries for X11 (same version of kernel modules) are the ones from the patched blob that can be found in this thread.: yeah, I can confirms that all these files are sym links to libMali.so.
- X11 driver is fbturbo: I suspect some mis-configuration within this component, I will be able to post X.org log in short  




2

threads

21

posts

86

credits

Registered member

Rank: 2

credits
86
Published in 2015-11-19 23:29:37 | Show all floors
Edited by magicse at 2015-11-21 10:31
magicse replied at 2015-11-19 19:15
Add to script.fex next lines and error get out )

[mali_para]

Thanks for the suggestion but the lines are already in my script.hex...   


You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list