Insight Control for Linux
cancel
Showing results for 
Search instead for 
Did you mean: 

PSP 8.70 on DL580 - building hp-nx_nic RPM Package

SOLVED
Go to solution
sreber84
Visitor

PSP 8.70 on DL580 - building hp-nx_nic RPM Package

Hi all,

 

I've just resolved a terrible issue we had on a DL580 running RHEL 5.6

After a Array Controller issue, we ran into the problem that new firmware was installed on the SPI that did not allow autoneg repsectivtly to tell ethtool to set speed and duplex to 100MB/s full

 

Anyway, for troubleshooting etc. I then tried to install PSP on the server and to install nc_nic driver to have the ability of apply Firmware updates to the server.

Unfortunately wasn't the rpmbuild for hp-nx_nic working as described in the README ... so my question, did anybody else run into similar issues and if so, how did you solve it?

 

server root:/var/tmp $ ls -ald psp-8.70.rhel5.x86_64.en.tar.gz

-rw-r--r-- 1 root root 157368701 Jul 19 19:08 psp-8.70.rhel5.x86_64.en.tar.gz

server root:/usr/src/redhat/SPECS $ rpm -ivh /var/tmp/hp-nx_nic-4.0.544-2.src.rpm

   1:hp-nx_nic              ########################################### [100%]

server root:/usr/src/redhat/SPECS $ rpmbuild -bb /usr/src/redhat/SPECS/hp-nx_nic.spec

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.14833

+ umask 022

+ cd /usr/src/redhat/BUILD

+ cd /usr/src/redhat/BUILD

+ rm -rf hp-nx_nic-4.0.544

+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/hp-nx_nic-4.0.544.tar.gz

+ tar -xvvf -

drwxr-xr-x build/unm         0 2011-01-27 23:31:45 hp-nx_nic-4.0.544/

drwxr-xr-x build/unm         0 2011-01-27 23:31:45 hp-nx_nic-4.0.544/docs/

-rw-r--r-- build/unm      9111 2010-08-30 09:14:27 hp-nx_nic-4.0.544/docs/nx_nic.4

[ ... cut ... ]

-rw-r--r-- build/unm      3095 2011-01-27 23:31:43 hp-nx_nic-4.0.544/driver/Makefile.host

-rw-r--r-- build/unm      7342 2009-08-04 06:33:02 hp-nx_nic-4.0.544/driver/unm_nic.xml

-rw-r--r-- build/unm     12570 2011-01-27 23:31:43 hp-nx_nic-4.0.544/driver/linux_module_heap.c

+ STATUS=0

+ '[' 0 -ne 0 ']'

+ cd hp-nx_nic-4.0.544

++ /usr/bin/id -u

+ '[' 0 = 0 ']'

+ /bin/chown -Rhf root .

++ /usr/bin/id -u

+ '[' 0 = 0 ']'

+ /bin/chgrp -Rhf root .

+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .

+ set -- bin docs driver hp-nx_nic-4.0.544.spec include LICENSE Makefile Module.supported nx_snmp.pl nx_xport pci.updates.netxen

+ mkdir source

+ mv bin docs driver hp-nx_nic-4.0.544.spec include LICENSE Makefile Module.supported nx_snmp.pl nx_xport pci.updates.netxen source/

+ mkdir obj

+ exit 0

Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.14833

+ umask 022

+ cd /usr/src/redhat/BUILD

+ cd hp-nx_nic-4.0.544

+ export 'EXTRA_CFLAGS=-DVERSION=\"4.0.544\"'

+ EXTRA_CFLAGS='-DVERSION=\"4.0.544\"'

+ for flavor in %flavors_to_build

+ rm -rf obj/%flavors_to_build

+ cp -r source obj/%flavors_to_build

+ export UNMsrc=/usr/src/redhat/BUILD/hp-nx_nic-4.0.544/obj/%flavors_to_build

+ UNMsrc=/usr/src/redhat/BUILD/hp-nx_nic-4.0.544/obj/%flavors_to_build

+ make -C '%{kernel_source' '%flavors_to_build}' modules M=/usr/src/redhat/BUILD/hp-nx_nic-4.0.544/obj/%flavors_to_build

make: *** %{kernel_source: No such file or directory.  Stop.

error: Bad exit status from /var/tmp/rpm-tmp.14833 (%build)

 

 

RPM build errors:

 

I finally was able to edit the SPEC file to make it work anyway, but even after that, the Firmware update was failng, while telling me that I need to install the nx_nic RPM (which I've done):

 

server root:/var/tmp/test $ bash CP014835.scexe

Copyright (c) 2009 Hewlett-Packard Development Company, L.P.

 

Please install nx_nic rpm.Need nx_xport driver to continue.

 

server root:/var/tmp/test $ rpm -qa | grep hp-nx

hp-nx_nic-tools-4.0.544-2

hp-nx_nic-4.0.544-2

server root:/var/tmp/test $ lsmod | grep nx

nx_nic                254956  0

server root:/var/tmp/test $ ethtool -i eth1

driver: nx_nic

version: 4.0.544

firmware-version: 4.0.544

bus-info: 0000:04:00.1

 

Any feedback is greatly appreciated!

 

Thanks and all the best,

Simon

1 REPLY
sreber84
Visitor
Solution

Re: PSP 8.70 on DL580 - building hp-nx_nic RPM Package

Found the problem on my own!

I simply didn't had redhat-rpm-config installed on the build system!