Forked from Banshee1221/00-maas-00-infiniband-c6100.sh
Created
April 16, 2025 02:53
-
-
Save zhouqt/7584c430da76690cc642890d9f14852f to your computer and use it in GitHub Desktop.
This script will update the Mellanox MT25408A0-FCC-QI (PSID: DEL09A0000009) and install OFED on Ubuntu 18.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# --- Start MAAS 1.0 script metadata --- | |
# name: Infiniband FW and SW prep | |
# parallel: instance | |
# may_reboot: True | |
# tags: infiniband | |
# type: commissioning | |
# for_hardware: pci:15B3:673C | |
# --- End MAAS 1.0 script metadata --- | |
set -e | |
# SETUP | |
FW="http://www.mellanox.com/downloads/firmware/fw-ConnectX2-rel-2_8_0600-059MP7.bin.zip" | |
. /etc/lsb-release | |
OFED_MD5=3ab6ab5d6a6b6cae9c69f9ca320adcf6 | |
OFED_NAME="MLNX_OFED_LINUX-4.6-1.0.1.1-ubuntu${DISTRIB_RELEASE}-x86_64" | |
OFED_URL="https://repo.nrg.wustl.edu/mlnx/OFED/$OFED_NAME.tgz" | |
# FW FLASH | |
cd / | |
rm -rf /tmp/mellanox_fw* | |
sudo apt-get update | |
sudo apt install -y unzip mstflint | |
curl -L $FW --output /tmp/mellanox_fw.zip | |
cd /tmp | |
unzip mellanox_fw.zip -d mellanox_fw/ | |
cd mellanox_fw | |
#mstflint -y -d $(lspci | grep -i mellanox | cut -d' ' -f1) -i *.bin b | |
sleep 5 | |
# DRIVER | |
cd / | |
curl -L $OFED_URL --output /tmp/ofed.tgz | |
cd /tmp | |
if [ $(md5sum ofed.tgz | cut -d' ' -f1) != $OFED_MD5 ]; then exit 1; fi | |
tar xf ofed.tgz | |
cd $OFED_NAME | |
./mlnxofedinstall --without-fw-update --force | |
/etc/init.d/openibd restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment