Coder Social home page Coder Social logo

superna9999 / meson_gx_mali_450 Goto Github PK

View Code? Open in Web Editor NEW
35.0 8.0 20.0 1.34 MB

Amlogic GX Mali support for Mali-450 based SoCs, for Mainline Linux only

Home Page: http://linux-meson.com

Shell 0.02% Makefile 1.51% C 81.76% C++ 16.55% Objective-C 0.17%

meson_gx_mali_450's Introduction

Mali Utgard support for Amlogic Meson GX Family

The Following SoCs are using the Mali-450 IP :

  • Meson GXBB : S905
  • Meson GXL : S905X and S905D

This distribution adds platform support for these families.

HowTo

Apply the linux patches to upstream linux source and build.

$ KDIR=/path/to/amlogic/upstream/linux ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- ./build.sh

Copy mali.ko to root filesystem and boot.

Sources

Original Mali kernel driver can be downloaded from : https://developer.arm.com/products/software/mali-drivers/utgard-kernel

The xf86-video-armsoc should be used in user space for X11 :

along the r6p1-01rel0 libMali.so binary you can find at :

In the buildroot/package/opengl/src/lib/arm64/r6p1/m450-X/ directory.

Place it into /usr/lib/mali/ and configured to fetch the EGL libraries by adding a file into :

/etc/ld.so.conf.d/mali.conf

containing :

/usr/lib/mali

And running :

# ldconfig

Mali libraries should have the following symlinks :

libEGL.so -> libEGL.so.1
libEGL.so.1 -> libEGL.so.1.4
libEGL.so.1.4 -> libMali.so
libGLESv1_CM.so -> libGLESv1_CM.so.1
libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.1
libGLESv1_CM.so.1.1 -> libMali.so
libGLESv2.so -> libGLESv2.so.2
libGLESv2.so.2 -> libGLESv2.so.2.0
libGLESv2.so.2.0 -> libMali.so
libMali.so

meson_gx_mali_450's People

Contributors

jakogut avatar johnstultz-work avatar superna9999 avatar wens avatar xlazom00 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

meson_gx_mali_450's Issues

black background and segmentation fault on program exit

hi neil,

i'm successfully using your kernel module, the r6p1 x11 blob and your armsoc xorg driver on a s905w tv box. working means that i can run gles and opengl apps like es2gears_x11 or glxgears (via gl4es opengl wrapper lib) fine. there are only some minor strange things, which i'm not sure about maybe missing some patch or config option somewhere or if they are simply side effects of using the mali blobs not really intended to be used for maline kernels and such hardware. these strange things are:

  • the desktop background and sometimes also the background of windows is black instead of the intended/configured color (this must come from the armsoc driver, as i'm enabling mali GLES support explicitely via LD_LIBRARY_PATH if an app needs it, but i do not run my desktop - xfce btw. - by default with it enabled)
  • applications segfault and create a crashdump (for instance es2_info) or hang (for instance es2gears_x11) on their otherwise normal exit
  • glxinfo via gl4es prints out the following before its segfault/crashdump - not sure if it is related:
    [xcb] Unknown request in queue while appending request [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. glxinfo: ../../src/xcb_io.c:151: append_pending_request: Assertion "!xcb_xlib_unknown_req_pending" failed. Aborted (core dumped)
  • one app (zyn-fusion - a open-source synthesizer) gives errors like
    LIBGL: ERROR: EGL Error detected: EGL_BAD_ALLOC LIBGL: ERROR: EGL Error detected: EGL_BAD_ALLOC LIBGL: ERROR: EGL Error detected: EGL_BAD_MATCH LIBGL: ERROR: EGL Error detected: EGL_BAD_ALLOC LIBGL: ERROR: EGL Error detected: EGL_BAD_MATCH
    and finally fails to initialize
  • for all the above i do not see anything obviously wrong logged by the kernel with the mali running with mali_debug_level=5
  • all the above is working fine with mesa soft rendering on this machine
  • all of the above is working fine on a rockchip rk3288 machine with mainline kernel and similarly hacked together mali support

all those are more cosmetic problems, as the basic functionality is there - and this is really great, that all your work made it possible to use programs who need gl acceleration on such hardware. please let me know in case you want to have any more debugging info.

a little side note: is it intended, that the r6p1 and r7p0 libMali.so binaries for arm64 450-x in your git repo are identical?

a lot of thanks for all your efforts in the linux amlogic area and best wishes - hexdump

Compile error

Hello I 'am getting this error when try to compile the mali driver r6p1 :
/root/project/meson_gx_mali_450/driver/src/devicedrv/mali/platform/meson/meson.c:69:32: fatal error: linux/clk/clk-conf.h: No such file or directory

I 'am using linux kernel for amlogix S905X board:
https://github.com/150balbes/Amlogic_s905-kernel/tree/armbian

Kernel version 3.14.29

Thanks for help

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.