Disk Enclosures
Showing results for 
Search instead for 
Did you mean: 

Re: Install QLogic HBA missing Makefile in /lib/modules/2.6.18-128.el5/build

Occasional Contributor

Install QLogic HBA missing Makefile in /lib/modules/2.6.18-128.el5/build

I'm following instruction at
to install QLogic HBA driver on RHEL 5.3 attached to MSA1000. But running the wrapper script INSTALL or its underlined script build_driver.rh or master.sh or directly run `rpm -ivh hp_qla2x00src-8.02.11-1.linux.noarch.rpm' all throw errors:

Building FC driver modules...

make clean
make: Entering directory `/lib/modules/2.6.18-128.el5/kernel'
make: Leaving directory `/lib/modules/2.6.18-128.el5/kernel'

Make clean failed!

Driver build unsuccessful

Reading build_driver.rh, I notice the make command needs Makefile under /lib/modules/2.6.18-128.el5/build, which is a link to /lib/modules/2.6.18-128.el5/kernel. But that file doesn't exist:

# ls /lib/modules/2.6.18-128.el5/kernel
arch crypto drivers fs kernel lib net sound

I checked another RHEL 5.3 box. It's the same. (I guess make clean in build_driver.rh can be ignored, but there's a make modules right below it, so hacking build_driver.rh is not a solution.) Thanks for any help.

Yong Huang
yong321 at yahoo.com
Trusted Contributor

Re: Install QLogic HBA missing Makefile in /lib/modules/2.6.18-128.el5/build

Hello Yong,

Can you please check if you have kernel-devel-2.6.18-128.el5 package?

Looks like that your are missing that rpm.

Hope this helps.

-Thank You
Occasional Contributor

Re: Install QLogic HBA missing Makefile in /lib/modules/2.6.18-128.el5/build


Yes, I do:

# rpm -qa | grep kernel-devel

But we don't need to do this any more. We found the RJ45Z cable to directly connect to MSA1000 storage controller and upgraded its firmware. Since then, /proc/partitions shows all entries we need to see.

Yong Huang