Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

installing qlogic HBA drivers on linux

Posted on 2009-06-27
21
Medium Priority
?
9,085 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
0
Comment
Question by:vielkacarolina1239
  • 12
  • 9
21 Comments
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24729683
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
 

Author Comment

by:vielkacarolina1239
ID: 24729741
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
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24729750
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 2000 total points
ID: 24729756
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
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24729758
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
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24729762
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
 

Author Comment

by:vielkacarolina1239
ID: 24729889
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
 

Author Comment

by:vielkacarolina1239
ID: 24729891
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
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24729899
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
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24729906
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
 

Author Comment

by:vielkacarolina1239
ID: 24729916
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
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24729920
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
 

Author Comment

by:vielkacarolina1239
ID: 24729926
[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
 
LVL 30

Assisted Solution

by:Kerem ERSOY
Kerem ERSOY earned 2000 total points
ID: 24729931
ok will you please come to root install folder and run the build like that:

cd ..
./extras/build.sh
0
 

Author Comment

by:vielkacarolina1239
ID: 24729936
Do you mean to run this command?

yum update kernel


Thanks,
0
 

Author Comment

by:vielkacarolina1239
ID: 24729943
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
 

Author Comment

by:vielkacarolina1239
ID: 24729948
How can I check if the driver is install. what command what I need to run?

thanks,
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24729949
yr welcome :)
0
 

Author Comment

by:vielkacarolina1239
ID: 24729966
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
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24729976
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
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24729979
yr welcome of course I doo but gotta go to bed soon . Ill do it firstthing in the mornig :)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month10 days, 7 hours left to enroll

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question