Hi doktor5000. Thanks for the links. My card model is rocketraid 644, and the corresponding driver is rr64x. The patches provided by yurac does compile successfully under kernel 4.14 of mageia 6.1. However, it does not work under the latest mageia 7.1, which is running kernel 5.3.x. According to what I learned, there's some changes to the kernel after 4.17 and even larger changes in kernel 5.x. So far I haven't seen any posts which makes the driver work under 5.x. Here's the error message from compilation using kernel 5.3:
Makefile:1411: *** insufficient number of arguments (1) to function 'addprefix'. Stop.
../../../inc/linux/Makefile.def:88: *** Cannot find kernel version. Check /lib/modules/5.3.11-server-1.mga7/build/include/linux/version.h.. Stop.
The first line of the error message was generated from "make kernelversion" in Makefile.def. I can modify it to make it go away, but it suggests major changes in the kernel. Simply making it go away may not be able to keep the driver working properly.
Line 1411 of Makefile of the kernel is
mrproper-dirs := $(addprefix _mrproper_)
It looks "_mrproper_" is not defined in the file.
I manually set the KERNEL_VER, MAJOR and MINOR variables to force the compilation run. The error message is attached. It looks the data type scsi_host has been modified, and member name legacy_hosts has been removed from the kernel include files. This is the major issue.
Any suggestions? Thanks a lot.