bootlin / mali-driver

GNU General Public License v2.0
16 stars 8 forks source link

Mali Bifrost support

This driver builds as a module against recent mainline kernels (6.0). It brings support for Mali Bifrost GPUs, based on the official ARM r8p0-01rel0 Linux driver.

Device tree configuration

Device tree bindings are already upstream for Mali Bifrost drivers.

Build and installation

You need a cross-compilation toolchain configured properly.

git clone https://github.com/bootlin/mali-bifrost.git
cd mali-bifrost
make -j4 KDIR=<linux-sources>
cp $(find -name mali_kbase.ko) <target-directory>

A Buildroot package (MALI_BIFROST_DRIVER) is available as well.

This driver exports a /dev/mali0 interface. Vendors usually provide closed-source Mali libraries to interract with it. For instance, Rockchip Mali libraries are also bundled in a Buildroot package (ROCKCHIP_MALI).