Kernel module for testing forked from the Mali kernel module for the chai project. Support for tracing included in a branch.
Clone oolong and Linux into the same folder.
Compile Linux with GPU support in the device tree. See here.
If desired, run black for tracing support.
Compile module:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make M=$PWD -C ../linux CONFIG_MALI_MIDGARD=m CONFIG_MALI_DEVFREQ=y CONFIG_MALI_DMA_FENCE=y CONFIG_MALI_EXPERT=y CONFIG_MALI_PLATFORM_THIRDPARTY=y CONFIG_MALI_PLATFORM_THIRDPARTY_NAME=rk
This command generates mali_kbase.ko. Load it:
insmod mali_kbase.ko