Hi,
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-) endif
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-)
endif
The compile command i used:
KDIR=/usr/lib/modules/3.8.13.23-3-ARCH/build 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/3.8.13.23-3-ARCH/build 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/3.8.13.23-3-ARCH/build M=/root/mali/DX910-SW-99002-r4p0-00rel1/driver/src/devicedrv/mali modules make[1]: Entering directory '/usr/src/linux-3.8.13.23-3-ARCH' make[1]: arm-none-linux-gnueabi-gcc: Command not found Building modules, stage 2. MODPOST 0 modules make[1]: Leaving directory '/usr/src/linux-3.8.13.23-3-ARCH' 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
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/3.8.13.23-3-ARCH/build M=/root/mali/DX910-SW-99002-r4p0-00rel1/driver/src/devicedrv/mali modules
make[1]: Entering directory '/usr/src/linux-3.8.13.23-3-ARCH'
make[1]: arm-none-linux-gnueabi-gcc: Command not found
Building modules, stage 2.
MODPOST 0 modules
make[1]: Leaving directory '/usr/src/linux-3.8.13.23-3-ARCH'
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,
Mark
Hi Mark,
I've had a look at these packages and it appears that you've got everything you need to get Mali working in X11. Mali-400 driver doesn't support OpenGL API so if you want to run applications that depend on OpenGL, you will need to fall back to Mesa libraries. Please note that you will be limited to software rendering instead.
To get a fully functional 3D desktop, I'd recommend using a compositing/window manager that supports GLES such as certain branches of compiz, enlightenment, kwin or gnome-shell. For example: you can install package "kdebase-workspace" which contains kwin_gles that you can use instead of the default kwin WM. Alternatively you can use xfwm4, openbox for a functional 2D desktop.
I hope this helps.
Thanks,
Tu