Solved

installing qlogic HBA drivers on linux

Posted on 2009-06-27
21
8,602 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
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 500 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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

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 500 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

708 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now