红联Linux门户
Linux帮助

安装dell H200 sas hba卡出现的问题

发布时间:2011-06-24 09:49:19来源:红联作者:loveme1005
[root@rac1 sas]# ls -l
总计 2284
-rwxr-Sr-x 1 root root 2331052 06-24 08:54 R294638-mpt2sasbtm-07.15.03.00-1.tar.gz
[root@rac1 sas]# tar -zxvf R294638-mpt2sasbtm-07.15.03.00-1.tar.gz
dkms-2.0.21.1-1.noarch.rpm
mpt2sasbtm-07.15.03.00-1dkms.noarch.rpm
mpt2sasbtm-07.15.03.00-1-rhel4.8.i686.dd
mpt2sasbtm-07.15.03.00-1-rhel4.8.x86_64.dd
mpt2sasbtm-07.15.03.00-src.tar.gz
[root@rac1 sas]# ls -l
总计 7012
-r-xr-xr-x 1 root root 95922 2010-11-23 dkms-2.0.21.1-1.noarch.rpm
-rwxr-xr-x 1 root root 1582051 2010-12-09 mpt2sasbtm-07.15.03.00-1dkms.noarch.rpm
-rwxr-xr-x 1 root root 1474560 2010-12-09 mpt2sasbtm-07.15.03.00-1-rhel4.8.i686.dd
-rwxr-xr-x 1 root root 1474560 2010-12-09 mpt2sasbtm-07.15.03.00-1-rhel4.8.x86_64.dd
-rw-r--r-- 1 root root 187743 2010-12-09 mpt2sasbtm-07.15.03.00-src.tar.gz
-rwxr-Sr-x 1 root root 2331052 06-24 08:54 R294638-mpt2sasbtm-07.15.03.00-1.tar.gz
[root@rac1 sas]# rpm -ivh dkms-2.0.21.1-1.noarch.rpm
Preparing... ########################################### [100%]
1:dkms ########################################### [100%]
[root@rac1 sas]# rpm -ivh mpt2sasbtm-07.15.03.00-1dkms.noarch.rpm
Preparing... ########################################### [100%]
1:mpt2sasbtm ########################################### [100%]

Creating symlink /var/lib/dkms/mpt2sasbtm/07.15.03.00/source ->
/usr/src/mpt2sasbtm-07.15.03.00

DKMS: add Completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=2.6.18-164.el5xen -C /lib/modules/2.6.18-164.el5xen/build SUBDIRS=/var/lib/dkms/mpt2sasbtm/07.15.03.00/build modules....(bad exit status: 2)

Error! Bad return status for module build on kernel: 2.6.18-164.el5xen (i686)
Consult the make.log in the build directory
/var/lib/dkms/mpt2sasbtm/07.15.03.00/build/ for more information.
0
0

Error! Could not locate mpt2sasbtm.ko for module mpt2sasbtm in the DKMS tree.
You must run a dkms build for kernel 2.6.18-164.el5xen (i686) first
.
[root@rac1 sas]# dkms build -m mpt2sasbtm -v 07.15.03.00 -k 2.6.18-164.el5xen

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=2.6.18-164.el5xen -C /lib/modules/2.6.18-164.el5xen/build SUBDIRS=/var/lib/dkms/mpt2sasbtm/07.15.03.00/build modules....(bad exit status: 2)

Error! Bad return status for module build on kernel: 2.6.18-164.el5xen (i686)
Consult the make.log in the build directory
/var/lib/dkms/mpt2sasbtm/07.15.03.00/build/ for more information.
0
0

make.log 内容如下:
[root@rac1 sas]# more /var/lib/dkms/mpt2sasbtm/07.15.03.00/build/make.log
DKMS make.log for mpt2sasbtm-07.15.03.00 for kernel 2.6.18-164.el5xen (i686)
2011年 06月 24日 星期五 09:23:23 CST
make: Entering directory `/usr/src/kernels/2.6.18-164.el5-xen-i686'
CC [M] /var/lib/dkms/mpt2sasbtm/07.15.03.00/build/mpt2sas_base.o
在包含自 /var/lib/dkms/mpt2sasbtm/07.15.03.00/build/mpt2sas_base.h:65 的文件中,
从 /var/lib/dkms/mpt2sasbtm/07.15.03.00/build/mpt2sas_base.c:61:
/var/lib/dkms/mpt2sasbtm/07.15.03.00/build/mpt2sas_compatibility.h:66:1: 警告:“sdev_printk”重定义
在包含自 /var/lib/dkms/mpt2sasbtm/07.15.03.00/build/mpt2sas_base.h:60 的文件中,
从 /var/lib/dkms/mpt2sasbtm/07.15.03.00/build/mpt2sas_base.c:61:
include/scsi/scsi_device.h:207:1: 警告:这是先前定义的位置
在包含自 /var/lib/dkms/mpt2sasbtm/07.15.03.00/build/mpt2sas_base.c:61 的文件中:
/var/lib/dkms/mpt2sasbtm/07.15.03.00/build/mpt2sas_base.h:1091:28: 错误:linux/diskdump.h:没有那个文件
或目录
/var/lib/dkms/mpt2sasbtm/07.15.03.00/build/mpt2sas_base.c:78: 错误:初始值设定元素不是常量
/var/lib/dkms/mpt2sasbtm/07.15.03.00/build/mpt2sas_base.c:78: 错误:(在 ‘__param_arr_missing_delay.num’
的初始化附近)
make[1]: *** [/var/lib/dkms/mpt2sasbtm/07.15.03.00/build/mpt2sas_base.o] 错误 1
make: *** [_module_/var/lib/dkms/mpt2sasbtm/07.15.03.00/build] 错误 2
make: Leaving directory `/usr/src/kernels/2.6.18-164.el5-xen-i686'
文章评论

共有 1 条评论

  1. alick 于 2011-06-24 21:21:22发表:

    sasbtm-07.15.03.00-1.tar.gz 解压情况显示它是针对RHEL 4.8 的版本,
    在 RHEL 5上看来不行