[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Compiling megaraid_sas driver on Debian 6.0 squeeze



Hello,


I just bought a new LSI MegaRAID SAS 9266-4i RAID card and noticed that Debian 6.0 squeeze does not recognize this RAID card as it is pretty new. So no problem I thought I would simply download the source driver directly from LSI (megaraid_sas-v00.00.06.18-src.tgz) and compile the module myself in order to replace the current module using the dkms tool.

Unfortunately, while running dkms build (dkms build -m megaraid-sas -v 00.00.06.18) the compilation fails and the make.log file contains the following:

DKMS make.log for megaraid-sas-00.00.06.18 for kernel 2.6.32-5-xen-amd64 (x86_64)
Wed Aug  8 08:42:11 CEST 2012
make: Entering directory `/usr/src/linux-headers-2.6.32-5-xen-amd64'
CC [M]  /var/lib/dkms/megaraid-sas/00.00.06.18/build/megaraid_sas_base.o
/var/lib/dkms/megaraid-sas/00.00.06.18/build/megaraid_sas_base.c: In function 'megasas_change_queue_depth':
/var/lib/dkms/megaraid-sas/00.00.06.18/build/megaraid_sas_base.c:3208: error: 'SCSI_QDEPTH_DEFAULT' undeclared (first use in this function)
/var/lib/dkms/megaraid-sas/00.00.06.18/build/megaraid_sas_base.c:3208: error: (Each undeclared identifier is reported only once
/var/lib/dkms/megaraid-sas/00.00.06.18/build/megaraid_sas_base.c:3208: error: for each function it appears in.)
/var/lib/dkms/megaraid-sas/00.00.06.18/build/megaraid_sas_base.c: At top level:
/var/lib/dkms/megaraid-sas/00.00.06.18/build/megaraid_sas_base.c:3236: warning: initialization from incompatible pointer type
/var/lib/dkms/megaraid-sas/00.00.06.18/build/megaraid_sas_base.c:5166: warning: initialization from incompatible pointer type
make[3]: *** [/var/lib/dkms/megaraid-sas/00.00.06.18/build/megaraid_sas_base.o] Error 1
make[2]: *** [_module_/var/lib/dkms/megaraid-sas/00.00.06.18/build] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
make: Leaving directory `/usr/src/linux-headers-2.6.32-5-xen-amd64'


No I am no programmer and honestly don't have much a clue what is really going wrong here... So just wanted to ask if someone has an idea what could be possibly wrong here? or maybe someone already has experience compiling the latest megaraid_sas module from source?

Any help is greatly appreciated.

Regards,
M.L.


Reply to: