Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 9299
  • Last Modified:

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
0
vielkacarolina1239
Asked:
vielkacarolina1239
  • 12
  • 9
2 Solutions
 
Kerem ERSOYPresidentCommented:
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.

0
 
vielkacarolina1239Author 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

0
 
Kerem ERSOYPresidentCommented:
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..
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
Kerem ERSOYPresidentCommented:
kernel-devel-2.6.18-128.1.14.el5
kernel-headers-2.6.18-128.1.14.el5
kernel-2.6.18-128.el5

Your current kernel is not the same version with your devel libraries. Your kernel is 2.6.18-128 while your devel libs are: 2.6.18-128.1.14.

You must also nned to run:

yum update kernel
0
 
Kerem ERSOYPresidentCommented:
Then don't forget to reboot. After the successful reboot delete your old kernel:

rpm -ev kernel-2.6.18-128

Try to recompile.
0
 
Kerem ERSOYPresidentCommented:
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

0
 
vielkacarolina1239Author 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

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

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

0
 
Kerem ERSOYPresidentCommented:
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 ?
0
 
vielkacarolina1239Author 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,
0
 
Kerem ERSOYPresidentCommented:
ok will you please come to root install folder and run the build like that:

cd ..
./extras/build.sh
0
 
vielkacarolina1239Author Commented:
Do you mean to run this command?

yum update kernel


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

thanks,
0
 
Kerem ERSOYPresidentCommented:
yr welcome :)
0
 
vielkacarolina1239Author 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
0
 
Kerem ERSOYPresidentCommented:
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
0
 
Kerem ERSOYPresidentCommented:
yr welcome of course I doo but gotta go to bed soon . Ill do it firstthing in the mornig :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 12
  • 9
Tackle projects and never again get stuck behind a technical roadblock.
Join Now