Driver Installation
Rev 1.0
Mellanox Technologies
22
Run the following commands to install the driver:
The package consists of several source RPMs. The install script rebuilds the source RPMs and
then installs the created binary RPMs. The created kernel module binaries are placed under /lib/
modules/<kernel-ver>/updates/kernel/drivers/net/mlx4. mlnx_en installer supports 2 modes of
installation.The install scripts selects the mode of driver installation depending of the running
OS/kernel version.
1. Kernel Module Packaging (KMP) mode, where the source rpm is rebuilt for each installed
flavor of the kernel. This mode is used for RedHat and SUSE distributions.
2. Non KMP installation mode, where the sources are rebuilt with the running kernel. This mode
is used for vanilla kernels.
Note: If the Vanilla kernel is installed as rpm, please use the "--disable-kmp" flag when installing
the driver.
The kernel module sources are placed under /usr/src/mellanox-mlnx-en-1.5.10/.Run the follow-
ing commands to recompile the driver:
The uninstall and performance tuning scripts are installed.
Note: If the driver was installed without kmp support, the sources would be located under /usr/
srs/mlnx_en-1.5.10/
4.1.3
Loading the Driver
Step 1.
Make sure no previous driver version is currently loaded
Run:
Step 2.
Load the new driver version
Run:
The result is a new net-device appearing in 'ifconfig -a' output.
4.1.4
Unloading the Driver
To unload the Ethernet driver run:
#> tar xzvf mlnx_en-1.5.10.tgz file
#> cd mlnx_en-1.5.10
#> ./install.sh
#> cd /usr/src/mellanox-mlnx-en-1.5.10/
#> scripts/mlnx_en_patch.sh
#> make
#> make install
#> modprobe -r mlx4_en
#> modprobe mlx4_en
#> modprobe mlx4_en
Mellanox Technologies Confidential