Link to home
Start Free TrialLog in
Avatar of vielkacarolina1239
vielkacarolina1239Flag for United States of America

asked on

installing qlogic HBA drivers on linux

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
Avatar of Kerem ERSOY
Kerem ERSOY

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.

Avatar of vielkacarolina1239

ASKER

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

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..
ASKER CERTIFIED SOLUTION
Avatar of Kerem ERSOY
Kerem ERSOY

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Then don't forget to reboot. After the successful reboot delete your old kernel:

rpm -ev kernel-2.6.18-128

Try to recompile.
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

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

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
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.
Furthermore it will nag that it can not find the fileset to delete:

error: package kernel-headers-2.6.18-128 is not installed
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

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 ?
[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,
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Do you mean to run this command?

yum update kernel


Thanks,
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.
How can I check if the driver is install. what command what I need to run?

thanks,
yr welcome :)
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
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
yr welcome of course I doo but gotta go to bed soon . Ill do it firstthing in the mornig :)