Operating System - Linux
1827800 Members
2293 Online
109969 Solutions
New Discussion

Compilation problem with hp-netxtreme2-5.2.27-5.src.rpm

 
Michael BUTOW
Frequent Advisor

Compilation problem with hp-netxtreme2-5.2.27-5.src.rpm

Hello all,

I have a problem installing the Broadcom NIC driver from the source RPM on the HP site.

Specifically, I want to install the "HP NC-Series Broadcom 1Gb and 10GbE Multifunction and iSCSI Drivers for Linux" (hp-netxtreme2-5.2.27-5.src.rpm) on RHEL5.3 x86 on DL380 G5 and G6.

I was able to install the source RPM without problem, but none of the further instructions to compile a binary RPM work for me, I even tried all the special cases outlined in the installation document.

Please find attached the logs of my various unsuccessful trials while experimenting with various options listed in the installation guide.
I include also some system information showing that the listed dependencies for the build environment are present.

If anyone else has succeeded in building this driver package from this source RPM, I would be very interested in how you did it :-)

Regards,
Michael

P.S. I'm trying to update the bnx2 driver to see if it would solve bugs we have encountered in the standard version of the driver on RHEL 5.3 (e.g. miscounting of received packets, ref. https://bugzilla.redhat.com/show_bug.cgi?id=542826).
6 REPLIES 6
Michael BUTOW
Frequent Advisor

Re: Compilation problem with hp-netxtreme2-5.2.27-5.src.rpm

Somehow I cannot see the attachment, trying to attach it again...
wobbe
Respected Contributor

Re: Compilation problem with hp-netxtreme2-5.2.27-5.src.rpm

Funny, I did the same thing last week.
(RHEL5.3 on a DL380G5)
acoording to my notes I Did:

rpm -ivh hp-netxtreme2-5.2.27-5.src.rpm
rpm -ivh hp-netxtreme-bnx2id-5.2.27-5.noarch.rpm

cd /usr/src/redhat
rpmbuild --target=i686 --bb SPECS/hp-netxtreme2.spec --define "KVER 2.6.18-128.el5PAE"

Stopped network and unloaded old module.

cd /usr/src/redhat/RPMS/i686
rpm -ivh kmod-hp-netxtreme2-PAE-5.2.27-5.i686.rpm

Restart.

ethtool -i eth0
(to check if the new module was running)
Michael BUTOW
Frequent Advisor

Re: Compilation problem with hp-netxtreme2-5.2.27-5.src.rpm

The only difference I see is that you installed hp-netxtreme-bnx2id-5.2.27-5.noarch.rpm . Maybe that makes the difference (I also tried on a G6 with PAE kernel, failed in the same way as the G5 logs I provided).

However, I did not find that bnx2id package on the drivers page where I donwloaded the source RPM, I gave up searching for it thinking that it would be produced by the build and installed with the binary RPM.

Where does one get that bnx2id ?
Michael BUTOW
Frequent Advisor

Re: Compilation problem with hp-netxtreme2-5.2.27-5.src.rpm

I found the bnx2id package, installed it like you did, but in my case the rpmbuild step still fails.
I tried again the various commands, with and without --define KVER .
Michael BUTOW
Frequent Advisor

Re: Compilation problem with hp-netxtreme2-5.2.27-5.src.rpm

I believe I have found a solution to the problem myself.

There is a package 'redhat-rpm-config-8.0.45-29.el5.noarch.rpm' which I did not have installed.
After adding this package, I was able to build the binary RPM on G5 and G6.

On the PAE kernel (DL380 G6) I had to use

rpmbuild --target i686 -bb SPECS/hp-netxtreme2.spec --define "KVER 2.6.18-128.el5PAE"

On my DL380 G5 platform (non-PAE-kernel) the following worked:

rpmbuild --target i686 -bb SPECS/hp-netxtreme2.spec
Michael BUTOW
Frequent Advisor

Re: Compilation problem with hp-netxtreme2-5.2.27-5.src.rpm

Solution discovered myself (I was missing the redhat-rpm-config package).

This dependency ought to be better documented.