请教 : HBA 卡的安装
各位大侠好:我们单位刚买了一块EMULEX 的型号为LP9002L 的HBA卡,准备安装在我们的服务器上,服务器安装的系统是REDHATFEDORA CORE 2, 在EMULEX的网站上没有找到FORREDORA CORE 的驱动。 用服务器版的驱动试了一下,没有成功。在生成lpfcdd.o 文件是出错。
请各位大侠帮忙,谢先。 gcc 的版本 gcc-3.3.3-7
rpm 包安装在/usr/src/llinux/drivers/scsi/lpfc下。make时的出错信息如下:
# cd lpfc
# ls
COPYING elx_mem.h lpfc.conf lpfcLINUXlan.c
core.c elx_os.h lpfc_core.c lpfc_module_param.h
elx_cfgparm.helx_os_scsiport.hlpfc_crtn.h lpfc.spec
elx_clock.h elx_sched.h lpfc_diag.h Makefile
elx_crtn.h elx_scsi.h lpfc_disc.h prod_crtn.h
elx_disc.h elx_sli.h lpfc_hba.h prod_linux.c
elx.h elx_util.h lpfc_hw.h prod_os.h
elx_hw.h hbaapi.h lpfc_ioctl.h README
elx_ioctl.h Install.sh lpfc_ip.h Remove.sh
elx_logmsg.h lpfc_cfgparm.h lpfcLINUXfcp.c
# make
gcc -Wall -O2 -fomit-frame-pointer -D__KERNEL__-DVARYIO=21 -DUSE_HIGHMEM_IO=2
-I/lib/modules/2.6.5-1.358/build/include -I/lib/modules/2.6.5-1.358/build/driver
s/scsi -I/lib/modules/2.6.5-1.358/build/include/scsi -DMODULE -DMODVERSIONS -inc
lude /lib/modules/2.6.5-1.358/build/include/linux/modversions.h -c lpfc_core.c
<command line>:165425646:12848: /lib/modules/2.6.5-1.358/build/include/linux/mod
versions.h: No such file or directory
In file included from /lib/modules/2.6.5-1.358/build/include/asm/processor.h:18,
from /lib/modules/2.6.5-1.358/build/include/asm/thread_info.h:1
6,
from /lib/modules/2.6.5-1.358/build/include/linux/thread_info.h
:21,
from /lib/modules/2.6.5-1.358/build/include/linux/spinlock.h:12
,
from /lib/modules/2.6.5-1.358/build/include/linux/irq.h:17,
from /lib/modules/2.6.5-1.358/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.5-1.358/build/include/linux/delay.h:13,
from prod_crtn.h:24,
from lpfc_core.c:39:
/lib/modules/2.6.5-1.358/build/include/asm/system.h: In function `__set_64bit_va
r':
/lib/modules/2.6.5-1.358/build/include/asm/system.h:193: warning: dereferencing
type-punned pointer will break strict-aliasing rules
/lib/modules/2.6.5-1.358/build/include/asm/system.h:193: warning: dereferencing
type-punned pointer will break strict-aliasing rules
In file included from /lib/modules/2.6.5-1.358/build/include/linux/irq.h:20,
from /lib/modules/2.6.5-1.358/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.5-1.358/build/include/linux/delay.h:13,
from prod_crtn.h:24,
from lpfc_core.c:39:
/lib/modules/2.6.5-1.358/build/include/asm/irq.h:16:25: irq_vectors.h: No such f
ile or directory
In file included from /lib/modules/2.6.5-1.358/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.5-1.358/build/include/linux/delay.h:13,
from prod_crtn.h:24,
from lpfc_core.c:39:
/lib/modules/2.6.5-1.358/build/include/linux/irq.h: At top level:
/lib/modules/2.6.5-1.358/build/include/linux/irq.h:70: error: `NR_IRQS' undeclar
ed here (not in a function)
In file included from /lib/modules/2.6.5-1.358/build/include/linux/irq.h:72,
from /lib/modules/2.6.5-1.358/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.5-1.358/build/include/linux/delay.h:13,
from prod_crtn.h:24,
from lpfc_core.c:39:
/lib/modules/2.6.5-1.358/build/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS'
undeclared here (not in a function)
/lib/modules/2.6.5-1.358/build/include/asm/hw_irq.h:32: error: `NR_IRQS' undecla
red here (not in a function)
make: *** Error 1
# rpm -q gcc
gcc-3.3.3-7
#
在线等。。。。。。。
页:
[1]