LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 09-29-2006, 03:52 AM   #1
JAdj
Member
 
Registered: Aug 2006
Posts: 30

Rep: Reputation: 15
Problem installing HBA and loading its driver


Hello everyone.

I have a computer with a HBA pci card on it (For those who don't know what an HBA is, look here: http://www.webopedia.com/TERM/H/HBA.html In fact it doesn't matter).

I followed the instruction on the driver's manual in order to install and load the device's driver into the kernel, and I get the following error:

[root@lbackha1 network-scripts]# insmod lpfcdd
Using /lib/modules/2.4.21-32.ELsmp/kernel/drivers/scsi/lpfcdd.o
/lib/modules/2.4.21-32.ELsmp/kernel/drivers/scsi/lpfcdd.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg


dmesg drops out these lines:

Emulex LightPulse FC SCSI/IP: 2.01g Osgt: 1.08
PCI: Unable to reserve mem region #1:1000@fceff000 for device 02:03.0
PCI: Unable to reserve mem region #1:1000@fceff000 for device 02:03.0
lpfc pci I/O region is already in use.
a driver for lpfc is already loaded on this system

So apparently, there is another driver already loaded. But I can't see my device!!

I have another computer with the same installation as this one ( RHEL AS 3.0 update 5), but I haven't tried to install and load the driver yet. I tried to install there some application thats works with HBA and I couldn't because it says it doesn't find the proper driver. So, from that i guet that there isn't a lpfc driver built-in in this linux distribution, is there?

Can anyone help me and give me some clue about where the problem might be?

(Warning: My linux knowledge is low, so please take that into account :P)

Thanks a lot
 
Old 09-29-2006, 09:09 PM   #2
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 538

Rep: Reputation: 32
I'm using the same RHEL version (3.0 update5)& running Oracle.
I vaguely remember removing the HBA entries in modules.conf and recompiling the kernel & reboot (without HBA cards installed). Then shutdown and reboot again this time add cards and then add the entries to modules.conf and recompile the kernel one more time. Reboot one last time. This was using q-logic cards. A real pain but it works.
 
Old 10-02-2006, 03:15 AM   #3
JAdj
Member
 
Registered: Aug 2006
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by DotHQ
I'm using the same RHEL version (3.0 update5)& running Oracle.
I vaguely remember removing the HBA entries in modules.conf and recompiling the kernel & reboot (without HBA cards installed). Then shutdown and reboot again this time add cards and then add the entries to modules.conf and recompile the kernel one more time. Reboot one last time. This was using q-logic cards. A real pain but it works.
No entries on modules.conf for HBA. There were tqo different ways to load the driver according to the manual. One required adding the following entry to modules.conf:

alias scsi_hostadapter lpfcdd

I noticed that there was another entry for scsi_hostadapter:

alias scsi_hostadapter megaide (that is a driver I loaded in order to use my sata RAID).

Can this be an issue?

I'm sensing that maybe this distro has the required driver for my HBA built-in, because, in other computer with the same installation except for the driver installation I did the following:

[root@lbackha2 root]# lspci -vv
[...]
02:03.0 Fibre Channel: Emulex Corporation LP9802 Fibre Channel Host Adapter (rev 01)
Subsystem: Emulex Corporation LP9802 Fibre Channel Host Adapter
Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV+ VGASnoop- ParErr+ Stepping- SERR+ FastB2B-
Status: Cap+ 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 248 (63750ns min), cache line size 20
Interrupt: pin A routed to IRQ 24
Region 0: Memory at fceff000 (64-bit, non-prefetchable) [size=4K]
Region 2: Memory at fcefec00 (64-bit, non-prefetchable) [size=256]
Region 4: I/O ports at cc00 [size=256]
Capabilities: [4c] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [54] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
Address: 0000000000000000 Data: 0000
Capabilities: [64] Vital Product Data
Capabilities: [44] PCI-X non-bridge device.
Command: DPERE- ERO+ RBC=0 OST=1
Status: Bus=0 Dev=0 Func=0 64bit- 133MHz- SCD- USC-, DC=simple, DMMRBC=0, DMOST=0, DMCRS=0, RSCEM-

If i get this response from lspci, can I then conclude that the driver needed is already on the kernel?

What I did on my other computer was install the driver from an rpm file, build it as a module and then load it like this:

rpm -i package.rpm
cd intallation directory
make
make install
insmod driver1
insmod driver2

If I am right and the driver is built-in, how can I undo this?

Thanks for your help
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I find HBA driver version? rivethead Linux - General 2 07-20-2006 04:48 AM
problem loading up driver for 2 exact nic cutejai Linux - Networking 4 09-16-2005 08:19 PM
help how to install driver of Fibre channel Host Bus Adapter(HBA) on Slackware 10 zhouj Slackware 1 12-06-2004 08:37 AM
Problem in loading ehci-hcd driver amit10p Linux - Software 0 07-16-2004 12:50 AM
Unable to boot into Mandrake - ALSA driver loading problem jianneng Linux - Newbie 1 02-13-2003 06:20 PM


All times are GMT -5. The time now is 05:30 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration