Hi, I'm trying to compile the mali drivers for an Amlogic armv7 kernel. But when i try to make modules I've got this error message :
from drivers/amlogic/gpu/mali/platform/meson_bu/meson_main2.c:14:
drivers/amlogic/gpu/mali/platform/meson_bu/meson_main2.c:35:39: error: ‘S_IRUSR’ undeclared here (not in a function)
module_param(mali_gp_reset_fail, int, S_IRUSR | S_IWUSR | S_IWGRP | S_IRGRP | S_IROTH); /* rw-rw-r-- */
Do you know if I have to include other header?. Thank you.
Hi brandpitt,
the S_IRUSR value is defined in the <sys/stat.h> header file. Please be sure it is included in your source code and the paths to access it points to the correct header file (the one of the kernel you are compiling and not the one in your local machine).
Regards,
Daniele
Thank you, I've changed to a 64 bits ARM and 3.14 kernel version and I was able to generate the mali.ko module but i've got a black screen and for a prior experience I think is related to kernel and client side mali drivers incompatibility and no suitable EGLConfig found. So i will generate another question for that. Thank you.