Skip to content
Amlogic GX Mali support for Mali-450 based SoCs, for Mainline Linux only
Branch: DX910-SW-99002…
Clone or download
wens and superna9999 Fix vm_fault_t build error on v5.0
The return type for fault() handlers was changed to vm_fault_t starting
with v4.17. With v5.0 the typedef was changed from int to unsigned int,
making it incompatible with existing code to force people to update.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Latest commit 93974db Mar 17, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
driver Fix vm_fault_t build error on v5.0 Mar 22, 2019
patches_linux-4.10 Add patches for Linux 4.10 Feb 14, 2017
.gitignore Add README, gitignore and build script Feb 14, 2017
README.md Add README, gitignore and build script Feb 14, 2017
build.sh

README.md

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
You can’t perform that action at this time.