LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-12-2006, 02:02 PM   #1
rcaisse
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Rep: Reputation: 0
Emulex lpfc Driver Problems


10 filesystem using a custom kernel (2.6.16.2) and I'm trying to install the lpfc driver using the lpfc-install script found in the lpfc_2.6_driver_kit-8.0.16.27-1. When I run the script, this is what I get:

linux:/pdd/Emulex/lpfc_2.6_driver_kit-8.0.16.27-1 # ./lpfc-install
Emulex LPFC Driver Installer Version 2906
Determining distribution type and kernel version ...
Checking for Emulex LPFCDFC driver packages ...
Checking for old Emulex driver ...
Looking for kernel source package ...
Looking for compilers ...
Searching for LPFC Driver source RPM from /pdd/Emulex/lpfc_2.6_driver_kit-8.0.16.27-1/. ...
Installing package ...
Preparing... ########################################### [100%]
1:lpfcdriver_2.6 ########################################### [100%]
Building LPFC driver ......
- Error 1 while building/installing driver.
- Log is contained in /usr/src/lpfc/errlog
error: %post(lpfcdriver_2.6-8.0.16.27-1) scriptlet failed, exit status 5

Error during RPM installation
Error installing LPFC Driver source RPM.
Loading LPFC Driver .FATAL: Could not open '/lib/modules/2.6.16.2/kernel/drivers/scsi/lpfc/lpfc.ko': No such file or directory
.

Error loading LPFC Driver
Please refer to the following file(s) for more information
about this driver load failure:
/var/log/messages
/var/log/warn
Please contact Emulex Technical Support




The /usr/src/lpfc/errlog contains:

make: Entering directory `/usr/src/lpfc'
make -C /lib/modules/2.6.16.2/build SUBDIRS=`pwd` CONFIG_SCSI_LPFC=m modules
make[1]: Entering directory `/usr/src/packages/BUILD/kernel-2.6.16.2'
CC [M] /usr/src/lpfc/lpfc_mem.o
/usr/src/lpfc/lpfc_mem.c: In function âlpfc_mem_allocâ:
/usr/src/lpfc/lpfc_mem.c:80: warning: passing argument 2 of âmempool_createâ from incompatible pointer type
/usr/src/lpfc/lpfc_mem.c:86: warning: passing argument 2 of âmempool_createâ from incompatible pointer type
/usr/src/lpfc/lpfc_mem.c:92: warning: passing argument 2 of âmempool_createâ from incompatible pointer type
/usr/src/lpfc/lpfc_mem.c:98: warning: passing argument 2 of âmempool_createâ from incompatible pointer type
/usr/src/lpfc/lpfc_mem.c:104: warning: passing argument 2 of âmempool_createâ from incompatible pointer type
CC [M] /usr/src/lpfc/lpfc_sli.o
In file included from /usr/src/lpfc/lpfc_sli.c:43:
/usr/src/lpfc/lpfc_compat.h:40:5: warning: "__BIG_ENDIAN" is not defined
In file included from /usr/src/lpfc/lpfc_sli.c:44:
/usr/src/lpfc/lpfc_fcp.h:76:5: warning: "__BIG_ENDIAN" is not defined
/usr/src/lpfc/lpfc_sli.c: In function âlpfc_sli_issue_iocbâ:
/usr/src/lpfc/lpfc_sli.c:2530: warning: âiocbâ may be used uninitialized in this function
CC [M] /usr/src/lpfc/lpfc_ct.o
CC [M] /usr/src/lpfc/lpfc_els.o
CC [M] /usr/src/lpfc/lpfc_hbadisc.o
In file included from /usr/src/lpfc/lpfc_hbadisc.c:44:
/usr/src/lpfc/lpfc_fcp.h:76:5: warning: "__BIG_ENDIAN" is not defined
CC [M] /usr/src/lpfc/lpfc_init.o
In file included from /usr/src/lpfc/lpfc_init.c:44:
/usr/src/lpfc/lpfc_compat.h:40:5: warning: "__BIG_ENDIAN" is not defined
CC [M] /usr/src/lpfc/lpfc_mbox.o
In file included from /usr/src/lpfc/lpfc_mbox.c:38:
/usr/src/lpfc/lpfc_compat.h:40:5: warning: "__BIG_ENDIAN" is not defined
CC [M] /usr/src/lpfc/lpfc_nportdisc.o
CC [M] /usr/src/lpfc/lpfc_scsiport.o
In file included from /usr/src/lpfc/lpfc_scsiport.c:42:
/usr/src/lpfc/lpfc_fcp.h:76:5: warning: "__BIG_ENDIAN" is not defined
/usr/src/lpfc/lpfc_scsiport.c: In function âlpfc_target_unblockâ:
/usr/src/lpfc/lpfc_scsiport.c:1351: warning: implicit declaration of function âfc_target_unblockâ
/usr/src/lpfc/lpfc_scsiport.c: In function âlpfc_target_blockâ:
/usr/src/lpfc/lpfc_scsiport.c:1380: warning: implicit declaration of function âfc_target_blockâ
CC [M] /usr/src/lpfc/lpfc_fcp.o
In file included from /usr/src/lpfc/lpfc_fcp.c:51:
/usr/src/lpfc/lpfc_fcp.h:76:5: warning: "__BIG_ENDIAN" is not defined
In file included from /usr/src/lpfc/lpfc_fcp.c:57:
/usr/src/lpfc/lpfc_compat.h:40:5: warning: "__BIG_ENDIAN" is not defined
/usr/src/lpfc/lpfc_fcp.c: In function âlpfc_get_port_idâ:
/usr/src/lpfc/lpfc_fcp.c:1707: warning: implicit declaration of function âfc_port_idâ
/usr/src/lpfc/lpfc_fcp.c:1707: error: invalid lvalue in assignment
/usr/src/lpfc/lpfc_fcp.c: In function âlpfc_get_node_nameâ:
/usr/src/lpfc/lpfc_fcp.c:1718: warning: implicit declaration of function âfc_node_nameâ
/usr/src/lpfc/lpfc_fcp.c:1718: error: invalid lvalue in assignment
/usr/src/lpfc/lpfc_fcp.c: In function âlpfc_get_port_nameâ:
/usr/src/lpfc/lpfc_fcp.c:1729: warning: implicit declaration of function âfc_port_nameâ
/usr/src/lpfc/lpfc_fcp.c:1729: error: invalid lvalue in assignment
/usr/src/lpfc/lpfc_fcp.c: At top level:
/usr/src/lpfc/lpfc_fcp.c:1756: error: unknown field âget_port_idâ specified in initializer
/usr/src/lpfc/lpfc_fcp.c:1756: warning: initialization from incompatible pointer type
/usr/src/lpfc/lpfc_fcp.c:1757: error: unknown field âshow_port_idâ specified in initializer
/usr/src/lpfc/lpfc_fcp.c:1757: warning: initialization makes pointer from integer without a cast
/usr/src/lpfc/lpfc_fcp.c:1759: error: unknown field âget_node_nameâ specified in initializer
/usr/src/lpfc/lpfc_fcp.c:1759: warning: initialization from incompatible pointer type
/usr/src/lpfc/lpfc_fcp.c:1760: error: unknown field âshow_node_nameâ specified in initializer
/usr/src/lpfc/lpfc_fcp.c:1760: warning: initialization makes pointer from integer without a cast
/usr/src/lpfc/lpfc_fcp.c:1762: error: unknown field âget_port_nameâ specified in initializer
/usr/src/lpfc/lpfc_fcp.c:1762: warning: initialization from incompatible pointer type
/usr/src/lpfc/lpfc_fcp.c:1763: error: unknown field âshow_port_nameâ specified in initializer
/usr/src/lpfc/lpfc_fcp.c:1763: warning: initialization makes pointer from integer without a cast
make[2]: *** [/usr/src/lpfc/lpfc_fcp.o] Error 1
make[1]: *** [_module_/usr/src/lpfc] Error 2
make[1]: Leaving directory `/usr/src/packages/BUILD/kernel-2.6.16.2'
make: *** [build] Error 2
make: Leaving directory `/usr/src/lpfc'



Any thoughts?
 
Old 08-01-2006, 11:52 PM   #2
DrAxeman
Member
 
Registered: Jun 2004
Location: State of Confusion
Distribution: My other OS is your Solaris box.
Posts: 84

Rep: Reputation: 15
I've worked a lot with Emulex drivers.

Can I see any relevant info /var/log/messages and /var/log/warn?

Also, are you sure you downloaded the correct version of the lpfc source?
 
Old 08-07-2006, 10:44 AM   #3
rcaisse
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Original Poster
Rep: Reputation: 0
I switched to QLogic HBA's and now they work fine. But thanks anyways!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Emulex 7000E configuration Wells Debian 1 02-27-2006 04:26 PM
Emulex FC, STK 9740 - Confusion. dorga Linux - Hardware 0 09-13-2005 10:55 AM
AIX 5.1 Emulex HBA drivers jamesps AIX 4 02-01-2005 01:48 PM
Red Hat Enterpraise 3 & driver emulex facs Linux - Enterprise 2 02-01-2005 02:08 AM
Trouble Compiling Emulex Drivers vsubrama Red Hat 4 10-08-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration