Operating System - Linux
1748214 Members
3218 Online
108759 Solutions
New Discussion юеВ

Re: RHEL 5 version of hp_qla2x00src-8.01.03p4-20b.linux.rpm

 
James Tenley
New Member

RHEL 5 version of hp_qla2x00src-8.01.03p4-20b.linux.rpm

Installing RHEL5 on my box and trying to download the new HBA driver for RHEL5, I know this version
hp_qla2x00src-8.01.03p4-20b.linux.rpm is for RHEL4. I found this and it tells me that this is for RHEL5 (hp_qla2x00src-8.01.03p4-20b.linux.rpm)
So when I do the ./INSTALL I get an error saying that cannot find /lib/modules/2.6.18-164.el5/build
Driver build unsuccessful
I know that /build is linked to /usr/src/kernels/2.6.18-164.el5-x86-64 since I tried in on another RHEL5 box and it gave me the same error. I checked to make sure that link was still good before I did the install and it was. So I am really confused on what my next step is.
3 REPLIES 3
Miquel Gouarre
New Member

Re: RHEL 5 version of hp_qla2x00src-8.01.03p4-20b.linux.rpm

Hi James, can you solve this error?

I am triying to install the bundle hp_qla2x00-2008-05-09.tar over Red Hat Enterprise 5.4 (Tikanga) and I have the same message:

# ./INSTALL -f
Writing new /etc/hp_qla2x00.conf...done
Installing hp_qla2x00src RPM...
...
Kernel modules directory: /lib/modules/2.6.18-164.el5/kernel/drivers/scsi/qla2xxx
Kernel build directory: /lib/modules/2.6.18-164.el5/build
Cannot find /lib/modules/2.6.18-164.el5/build

Thank you.
Regards

Fernando
Matti_Kurkela
Honored Contributor

Re: RHEL 5 version of hp_qla2x00src-8.01.03p4-20b.linux.rpm

Have you installed the "kernel-devel" and/or "kernel-headers" packages matching your current kernel version?

The installation procedure for hp_qla2x00 packages will try to build the kernel module to match exactly the current kernel version. If the correct versions of kernel-devel and kernel-headers packages are not installed, module building will fail.

The actual kernel packages are essential to system's functioning, and therefore the package management tools (yum etc.) will only install new kernel versions when updating the system. The old versions are left in place. But the kernel-devel and kernel-headers packages are not "essential" in the same sense, and they are updated like regular packages.

A common pitfall seems to be that a routine "yum update" installs a new kernel and upgrades "kernel-devel", leaving the system unable to build modules for the _current_ kernel until the system is rebooted. At this situation, building modules for the new kernel version (that would become the new operational kernel at the next reboot) would be successful.

MK
MK
Miquel Gouarre
New Member

Re: RHEL 5 version of hp_qla2x00src-8.01.03p4-20b.linux.rpm

Hi Matti,

I could solve the problem installing the kernel-devel package!

Thank you very much for your post.

Best regards.

Fernando