1. Background
Recently the company made use of the above X86 board mellanox CX-5 card, but the operating system selection is made in China, Hunan Kirin Linux operating system. OFED drive mellanox official website provided no versions for Unicorn Hunan, to that end can only find the closest driver to install, because the Hunan Kirin is based on a modified redhat, so I chose redhat version OFED drive adaptation.
2, driver download mellanox
mellanox network card driver download address is: https://www.mellanox.com/products/infiniband-drivers/linux/mlnx_ofed
Here I chose the download version redhat7.3
3, install Red Hat packages:
rpm -Uvh redhat-release-server-7.3-7.el7.x86_64.rpm redhat-rpm-config-9.1.0-72.el7.noarch.rpm --force
4, installation of real-time kernel devel package:
rpm -Uvh kernel-rt-devel-3.10.0-514.16.1.rt56.437.ky3.x86_64.rpm
5, modify rpm macro definitions:
vim /etc/rpm/macros.dist
Add a line:
%_vendor redhat
6, mounted reliance necessary,
May be repeated several times:
yum install tcl gcc-gfortran tk
7, compile and install drivers OFED
cd MLNX_OFED_LINUX-5.0-1.0.0.0-rhel7.3-x86_64
./mlnxofedinstall --distro RHEL7.3 --skip-distro-check --add-kernel-support
8, the test driver package reinstall Kirin
kylin-release-3.3-3***.rpm,kylin-rpm-config-***.rpm
You can see from the above step is to let the network card driver think the system is redhat, after the driver is installed, in exchange for the unicorn, it is really a circuitous route.