We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

installing qlogic HBA drivers on linux

Medium Priority
10,078 Views
Last Modified: 2013-12-15
Hi,

I am trying to install a Qlogic HBA drivers on CentOS 5.3 machine.
But the installation stops because I don't have the following file installed
/lib/modules/2.6.18-128.el5/build/Module.symvers:

I did a search on google by
"module.symvers is missing"
I am getting lots of results stating that I need to rebuild the kernel-source. Please, can some one help me install this drivers. I have attached the file for QLOGIC HBA
model# qla2344 drivers. I have post fix the file with .zip in order to upload the file to the site. Please remove the .zip on the file to decompress.

Thanks,

[root@localhost ~]# rpm -qa | grep kernel
kernel-devel-2.6.18-128.1.14.el5
kernel-2.6.18-128.el5
kernel-headers-2.6.18-128.1.14.el5
 
[root@localhost qlogic]# ./qla2xxx-8.02.23/extras/build.sh install
 
QLA2XXX -- Building the qla2xxx driver, please wait...
cat: /lib/modules/2.6.18-128.el5/build/Module.symvers: No such file or directory
Unable to build intermodule.ko
make: *** /lib/modules/2.6.18-128.el5/build: No such file or directory.  Stop.
QLA2XXX -- Failed.
 
QLA2XXX -- Installing the qla2xxx modules to 
/lib/modules/2.6.18-128.el5/kernel/drivers/scsi/qla2xxx/...
install: cannot stat `*.ko': No such file or directory
ls: /lib/modules/2.6.18-128.el5/kernel/drivers/scsi/qla2xxx//qla*.ko: No such file or directory
[root@localhost qlogic]#

Open in new window

qla2xxx-v8.02.23-4-dist.tgz.zip
Comment
Watch Question

Kerem ERSOYPresident

Commented:
Hi,

You need to install two packages before attempting to cmpile QL drivers:

kernel-headers and kernel-devel. Install them wtih these commands:

yum install kernel-devel
yum install kernel-headers

Then the installation would go uninterrupted. I'm using the same drivers myself this way.

Cheers,
K.

Author

Commented:
Hello,

I think there is a file missing for the installation of this driver to succeed. Please, see below code snippet. I have the headers and devel installed.

Thanks,


[root@localhost extras]# rpm -qa | grep kernel
kernel-devel-2.6.18-128.1.14.el5
kernel-headers-2.6.18-128.1.14.el5
kernel-2.6.18-128.el5
[root@localhost extras]# ./build.sh install
 
QLA2XXX -- Building the qla2xxx driver, please wait...
cat: /lib/modules/2.6.18-128.el5/build/Module.symvers: No such file or directory
Unable to build intermodule.ko
make: *** /lib/modules/2.6.18-128.el5/build: No such file or directory.  Stop.
QLA2XXX -- Failed.
 
QLA2XXX -- Installing the qla2xxx modules to 
/lib/modules/2.6.18-128.el5/kernel/drivers/scsi/qla2xxx/...
install: cannot stat `*.ko': No such file or directory
ls: /lib/modules/2.6.18-128.el5/kernel/drivers/scsi/qla2xxx//qla*.ko: No such file or directory
[root@localhost extras]# 

Open in new window

Kerem ERSOYPresident

Commented:
cat: /lib/modules/2.6.18-128.el5/build/Module.symvers: No such file or directory

It means that you don't have development libraries installed..
President
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Kerem ERSOYPresident

Commented:
Then don't forget to reboot. After the successful reboot delete your old kernel:

rpm -ev kernel-2.6.18-128

Try to recompile.
Kerem ERSOYPresident

Commented:
Here's the output from my system:
[root@bentham qla2xxx-8.02.23]# ./extras/build.sh 
QLA2XXX -- Building the qla2xxx driver, please wait...
Installing intermodule.ko in /lib/modules/2.6.18-128.1.14.el5/kernel/kernel/
QLA2XXX -- Build done.

Open in new window

Author

Commented:
Hello,

I see the differences on the kernel versions kernel-2.6.18-128.el5 and kernel-2.6.18-128.1.14.el5

Before I delete the kernel, I would like to confirm the above statement. should I run the following command rpm -ev kernel-2.6.18-128 or should I run rpm -ev kernel-2.6.18-128.el5

Does the .el5 makes a difference on the kernel name for the delete command?
[root@localhost extras]# rpm -qa | grep kernel
kernel-headers-2.6.18-128.1.14.el5
kernel-2.6.18-128.el5
kernel-devel-2.6.18-128.1.14.el5
 
kernel-2.6.18-128.1.14.el5

Open in new window

Author

Commented:
sorry,

on the above statement I meant
I see the differences on the kernel versions kernel-2.6.18-128 VS. kernel-2.6.18-128.1.14.el5
Kerem ERSOYPresident

Commented:
Hi,

You need to run rpm -ev kernel-2.6.18-128.el5 . The theng is it must be identical to what rpm -qa displays. If you omit it it will no harm simply it will quit without deleting anyting.

Cheers,
K.
Kerem ERSOYPresident

Commented:
Furthermore it will nag that it can not find the fileset to delete:

error: package kernel-headers-2.6.18-128 is not installed

Author

Commented:
thanks alot for all the details. I have run the commands specified. I still cannot install the drivers. you mentioned to recompile on the following post
06/27/09 08:43 PM, ID: 24729758

Please, could you tell me how I can do this?

Thanks.

[root@localhost ~]# rpm -qa | grep kernel
kernel-headers-2.6.18-128.1.14.el5
kernel-devel-2.6.18-128.1.14.el5
kernel-2.6.18-128.1.14.el5
[root@localhost ~]# cd Desktop/
[root@localhost Desktop]# cd qla-drivers/
[root@localhost qla-drivers]# cd qlogic/
[root@localhost qlogic]# cd qla2xxx-8
bash: cd: qla2xxx-8: No such file or directory
[root@localhost qlogic]# cd qla2xxx-8.02.23/
[root@localhost qla2xxx-8.02.23]# cd extras/
[root@localhost extras]# ./build.sh inst
QLA2XXX -- Building the qla2xxx driver, please wait...
Unable to build intermodule.ko
make: Entering directory `/usr/src/kernels/2.6.18-128.1.14.el5-x86_64'
scripts/Makefile.build:17: /root/Desktop/qla-drivers/qlogic/qla2xxx-8.02.23/extras/Makefile: No such file or directory
make[1]: *** No rule to make target `/root/Desktop/qla-drivers/qlogic/qla2xxx-8.02.23/extras/Makefile'.  Stop.
make: *** [_module_/root/Desktop/qla-drivers/qlogic/qla2xxx-8.02.23/extras] Error 2
make: Leaving directory `/usr/src/kernels/2.6.18-128.1.14.el5-x86_64'
QLA2XXX -- Failed.
[root@localhost extras]# 

Open in new window

Kerem ERSOYPresident

Commented:
hi,

Will you please post your uname -a output here ?

It seems that your source file is incomplete will you try to re download it ?

Author

Commented:
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-128.1.14.el5 #1 SMP Wed Jun 17 06:38:05 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]#

thanks,
Kerem ERSOYPresident
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Author

Commented:
Do you mean to run this command?

yum update kernel


Thanks,

Author

Commented:
I ran the following

[root@localhost qla2xxx-8.02.23]# ./extras/build.sh
QLA2XXX -- Building the qla2xxx driver, please wait...
Installing intermodule.ko in /lib/modules/2.6.18-128.1.14.el5/kernel/kernel/
QLA2XXX -- Build done.
[root@localhost qla2xxx-8.02.23]#

I guess is install now.

Thanks alot.

Author

Commented:
How can I check if the driver is install. what command what I need to run?

thanks,
Kerem ERSOYPresident

Commented:
yr welcome :)

Author

Commented:
I am now  posting another question for creating LUNs on a VA7410 using Qlogic SANsurfer FC HBA Manager software. Please could you help me configure the LUNs?

Thanks for all your help
Kerem ERSOYPresident

Commented:
you  can check to see if /lib/modules/2.6.18-128.1.14.el5/kernel/kernel/ has the dirver. if you see the driver there (it should be cause iit told during the build)

- To load the driver directly from the local build directory, use the following commands in order:
# insmod qla2xxx_conf.ko
# insmod qla2xxx.ko
- To load the driver using modprobe:
# modprobe -v qla2xxx
Kerem ERSOYPresident

Commented:
yr welcome of course I doo but gotta go to bed soon . Ill do it firstthing in the mornig :)
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.