Getting started with Mellanox Firmware tools (MFT) for Linux

Version 5

    This post helps you get started with Mellanox Firmware Tools (MFT) for Linux.

    The post is basic and is intended for beginners.

     

    References

     

     

    Installation

    1. Download the MFT package from Mellanox website (check the latest release) see, http://www.mellanox.com/page/management_tools

    # mkdir mft

    # cd mft

    # wget  http://www.mellanox.com/downloads/MFT/mft-4.5.0-31-x86_64-rpm.tgz    .

    ...

     

    2. Unzip the package:

    # tar xzvf mft-4.1.0-34.tgz

    ...

     

    3. Install the package:

    # cd mft-4.1.0-34

    #./install.sh

    ...

     

    Configuration

     

    1. As a start, you need to run MFT:

    # mst start

    Starting MST (Mellanox Software Tools) driver set

    Loading MST PCI module - Success

    Loading MST PCI configuration module - Success

    Create devices

     

    2. Check which adapter cards are installed on the server by running the following command:

     

    # mst status

    MST modules:

    ------------

        MST PCI module loaded

        MST PCI configuration module loaded

     

     

    MST devices:

    ------------

    /dev/mst/mt4103_pciconf0         - PCI configuration cycles access.

                                       domain:bus:dev.fn=0000:81:00.0 addr.reg=88 data.reg=92

                                       Chip revision is: 00

    /dev/mst/mt4103_pci_cr0          - PCI direct access.

                                       domain:bus:dev.fn=0000:81:00.0 bar=0xc8000000 size=0x100000

                                       Chip revision is: 00

    /dev/mst/mt4115_pciconf0         - PCI configuration cycles access.

                                       domain:bus:dev.fn=0000:05:00.0 addr.reg=88 data.reg=92

                                       Chip revision is: 00

     

     

    In this output, you can see that there are two adapter cards on two PCI slots. You can run lspci to verify the card types (ConnectX-3 Pro and ConnectX-4).

     

    # lspci | grep Mellanox

    05:00.0 Ethernet controller: Mellanox Technologies MT27700 Family [ConnectX-4]

    05:00.1 Ethernet controller: Mellanox Technologies MT27700 Family [ConnectX-4]

    81:00.0 Network controller: Mellanox Technologies MT27520 Family [ConnectX-3 Pro]

     

    There are multiple commands that can be run to configure the port type, to update the firmware, to configure SR-IOV, and so on, all depending on the adapter type.

     

    For all configuration options, refer to MFT User Manual at: http://www.mellanox.com/page/management_tools

     

    See also: