Compiling Mali 400 r4p0-00rel1 driver on linux (archlinux arm). How?


I'm sure this is a very easy question for most of you to asnwer. I sadly seem to be having quite a bt of difficulties to get the driver to compile.

I have compiled the ump.ko kernel module. For that to work i had to uncomment these lines:

ifeq ($(ARCH), arm)

# when compiling for ARM we're cross compiling

export CROSS_COMPILE ?= $(call check_cc2, arm-linux-gnueabi-gcc, arm-linux-gnueabi-, arm-none-linux-gnueabi-)


The compile command i used:

KDIR=/usr/lib/modules/ BUILD=release make

Which did it for the ump module.

However, the mali module isn't that easily persuaded to compile.

I'm compiling that module with this line:

KDIR=/usr/lib/modules/ USING_UMP=1 BUILD=release make

and that gives me this compile output:

Makefile:76: /root/mali/DX910-SW-99002-r4p0-00rel1/driver/src/devicedrv/ump/Module.symvers

Makefile:110: CONFIG_TRACEPOINTS required for profiling

make ARCH=arm -C /usr/lib/modules/ M=/root/mali/DX910-SW-99002-r4p0-00rel1/driver/src/devicedrv/mali modules

make[1]: Entering directory '/usr/src/linux-'

make[1]: arm-none-linux-gnueabi-gcc: Command not found

  Building modules, stage 2.

  MODPOST 0 modules

make[1]: Leaving directory '/usr/src/linux-'

rm: cannot remove ‘__malidrv_build_info.c’: No such file or directory

rm: cannot remove ‘__malidrv_build_info.o’: No such file or directory

Makefile:161: recipe for target 'all' failed

make: *** [all] Error 1

Disabling those lines like i did for the ump module only causes the line: "make[1]: arm-none-linux-gnueabi-gcc: Command not found" to not be in the output. The rest is the same.

It smells like i'm missing a step somewhere. But i'm merely following the documentation.

Some guidance in commands to use would be greatly appreciated.

** in case you wonder, yes i run this as root. I know it's bad practice but if i can't get my gpu to work then i certainly won't bother setting up a user environment **

Best regards,