Skip to content
-
Subscribe to our newsletter & never miss our best posts. Subscribe Now!
Lê Vũ Blog
Lê Vũ Blog
  • Trang Chủ
  • Kiến Thức
  • Phần Mềm
  • Du Lịch
  • Mua Sắm
  • Sức Khỏe
  • Ẩm Thực
  • Trang Chủ
  • Kiến Thức
  • Phần Mềm
  • Du Lịch
  • Mua Sắm
  • Sức Khỏe
  • Ẩm Thực
Close

Search

  • https://www.facebook.com/
  • https://twitter.com/
  • https://t.me/
  • https://www.instagram.com/
  • https://youtube.com/
Subscribe
Kiến ThứcLinux

Mellanox NIC’s on Linux

By vuat8b
April 11, 2023 1 Min Read
0

A while back I had to configure a bunch of servers with Mellanox Connect-X 4 NIC’s to talk to an ethernet Switch(Dell S6000-ON to be exact) and the NIC’s that my customer had fitted not only had really old firmware but they were also in Infiniband(I think) mode, not Ethernet. So i had to do some legwork..

First job was to update the firmware.

apt update && apt install wget unzip gcc make dkms unzip  linux-headers-$(uname -r) -y
mkdir /tmp/mellanox && cd /tmp/mellanox
wget https://downloads.hpe.com/pub/softlib2/software1/pubsw-linux/p84948234/v182403/fw-ConnectX3Pro-rel-2_42_5700-764285-B21_Ax-CLP-8025-UEFI-14.11.49-FlexBoot-3.4.754.tgz
gunzip fw-ConnectX3Pro-rel-2_42_5700-764285-B21_Ax-CLP-8025-UEFI-14.11.49-FlexBoot-3.4.754.tgz
tar -xf fw-ConnectX3Pro-rel-2_42_5700-764285-B21_Ax-CLP-8025-UEFI-14.11.49-FlexBoot-3.4.754.tar
mv fw-ConnectX3Pro-rel-2_42_5700-764285-B21_Ax-CLP-8025-UEFI-14.11.49-FlexBoot-3.4.754/* .
rm -rf fw-ConnectX3Pro-rel-2_42_5700-764285-B21_Ax-CLP-8025-UEFI-14.11.49-FlexBoot-3.4.754
cd /tmp/mellanox
wget http://www.mellanox.com/downloads/MFT/mft-4.10.0-104-x86_64-deb.tgz
tar -xvf mft-4.10.0-104-x86_64-deb.tgz
cd /tmp/mellanox/mft-4.10.0-104-x86_64-deb/
bash ./install.sh
mst start
mst status
export OUT1=$(mst status | grep cr0 )
TRIMMEDOUT=(${OUT1//-/ })
CARDID=${TRIMMEDOUT[0]}
echo $CARDID
flint -d $CARDID dc /tmp/mellanox/orig_firmware.ini
flint -y -d $CARDID -i  /tmp/mellanox/fw-ConnectX3Pro-rel-2_42_5700-764285-B21_Ax-CLP-8025-UEFI-14.11.49-FlexBoot-3.4.754.bin -allow_psid_change burn

Set both ports on the NIC to Ethernet mode

mst start

export OUT1=$(mst status | grep cr0 )
TRIMMEDOUT=(${OUT1//-/ })
CARDID=${TRIMMEDOUT[0]}
echo $CARDID
mlxconfig -d $CARDID query

#Turn both ports from VPI/Auto to Ethernet only:
mlxconfig -y -d $CARDID set LINK_TYPE_P1=2 LINK_TYPE_P2=2

#turn off bootrom
mlxconfig -y -d $CARDID set BOOT_OPTION_ROM_EN_P1=false
mlxconfig -y -d $CARDID set BOOT_OPTION_ROM_EN_P2=false
mlxconfig -y -d $CARDID set LEGACY_BOOT_PROTOCOL_P1=0
mlxconfig -y -d $CARDID set LEGACY_BOOT_PROTOCOL_P2=0

 

Tags:

Mellanox NIC's
Author

vuat8b

Follow Me
Other Articles
Previous

Active Windows Server 2022 mọi phiên bản không dùng file crack, không virus

Next

Monitor Switch, Router cisco với Prometheus và Grafana

No Comment! Be the first one.

Leave a Reply Cancel reply

You must be logged in to post a comment.

Copyright 2026 — Lê Vũ Blog. All rights reserved. Blogsy WordPress Theme