dkms build error mptlinux drivers
dushy
dushyanth at gmail.com
Mon Jan 1 08:48:19 CST 2007
Hey,
I need to upgrade the default kernel of Redhat ES4 to 2.6.19.1
available from kernel.org. The system has 2 RAID controllers. Iam
having trouble getting the mptlinux driver to work.
system config is..
# lspci
08:02.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID (rev 01)
0c:08.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068
PCI-X Fusion-MPT SAS (rev 01)
[root at db]# /usr/local/src/raid/omsa5/omsa5/linux/supportscripts/prereqcheck/sysreport
prereqcheck/sysreport
Libsmbios: 0.8.0
System ID: 0x01B8
Service Tag: H5F89C1
Product Name: PowerEdge 1900
BIOS Version: 1.2.0
Vendor: Dell Inc.
Is Dell: 1
[root at db]# uname -a
Linux db 2.6.9-42.0.3.ELsmp #1 SMP Mon Sep 25 17:24:31 EDT 2006 x86_64
x86_64 x86_64 GNU/Linux
Below are the steps i followed..
* Compiled & installed 2.6.19.1 kernel. Havent rebooted with the new
kernel yet as it doesnt have the drivers for the LSI SAS Fusion RAID
controller.
* downloaded the drivers from
http://ftp.us.dell.com/SAS-RAID/mptlinux-3.02.63-5.dkms.tgz
* Installed dkms-2.0.11-1.noarch.rpm and mptlinux-3.02.63-5dkms.noarch.rpm
* Driver docs mentions to perform below steps if kernel is upgraded
dkms build -m mptlinux -v <version> -k <kernel>
dkms install -m mptlinux -v <version> -k <kernel>
[ Doc is at : http://ftp1.us.dell.com/sas-raid/Rhel4_mptlinux_a02.txt]
* When i do a dkms build, i get the below error
[root at db src]# dkms build -m mptlinux -v 3.02.63 -k 2.6.19.1
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area....
make KERNELRELEASE=2.6.19.1 -C /lib/modules/2.6.19.1/build
SUBDIRS=/var/lib/dkms/mptlinux/3.02.63/build modules....(bad exit
status: 2)
Error! Bad return status for module build on kernel: 2.6.19.1 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/mptlinux/3.02.63/build/ for more information.
* make.log has the below errors..
DKMS make.log for mptlinux-3.02.63 for kernel 2.6.19.1 (x86_64)
Mon Jan 1 08:38:14 GMT 2007
make: Entering directory `/usr/src/linux-2.6.19.1'
CC [M] /var/lib/dkms/mptlinux/3.02.63/build/mptbase.o
/var/lib/dkms/mptlinux/3.02.63/build/mptbase.c:50:26: linux/config.h:
No such file or directory
/var/lib/dkms/mptlinux/3.02.63/build/mptbase.c: In function `mpt_attach':
/var/lib/dkms/mptlinux/3.02.63/build/mptbase.c:1526: warning: passing
arg 2 of `request_irq' from incompatible pointer type
make[1]: *** [/var/lib/dkms/mptlinux/3.02.63/build/mptbase.o] Error 1
make: *** [_module_/var/lib/dkms/mptlinux/3.02.63/build] Error 2
make: Leaving directory `/usr/src/linux-2.6.19.1'
* I tried changing the make command in thi smodules dkms.conf to below
to use /usr/include as a include path but it did not help and i get
the same error.
CFLAGS=-I/usr/include make -C ${kernel_source_dir}
SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build modules
Earlier it was
make -C ${kernel_source_dir}
SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build modules
1. Am i following the right steps to get this module working with 2.6.19.1 ?
2. Will this driver work with non Redhat kernels ?
TIA and please let me know if any info is required.
Thanks
Dushyanth
More information about the DKMS-devel
mailing list