From e549d554592b9c9dacf7bbeefd3e835c397811d9 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Mon, 30 Jun 2025 00:52:48 +0100 Subject: [PATCH] Update mlx script to install all dependencies and echo instructions --- scripts/mlx-cx3.f42.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/mlx-cx3.f42.sh b/scripts/mlx-cx3.f42.sh index d5a9c6b..bd00cdb 100644 --- a/scripts/mlx-cx3.f42.sh +++ b/scripts/mlx-cx3.f42.sh @@ -2,7 +2,8 @@ mkdir ml cd ml # Install Dependencies -dnf install gcc make dkms #Also kernel here +dnf install -y gcc make dkms rpm-build +dnf install -y "kernel-devel-$(uname -r)" # Download, Extract & Install Software wget https://www.mellanox.com/downloads/MFT/mft-4.30.1-113-x86_64-rpm.tgz @@ -16,5 +17,8 @@ unzip fw-ConnectX3-rel-2_42_5000-MCX354A-FCB_A2-A5-FlexBoot-3.4.752.bin.zip mv fw-ConnectX3-rel-2_42_5000-MCX354A-FCB_A2-A5-FlexBoot-3.4.752.bin fw.bin # End -echo "To install firmare, run `mst start`, `mst status` to get the (cr0) device address" -echo "Then run flint -d [device_address] -i fw.bin --allow_psid_change burn" \ No newline at end of file +echo "To install firmare, run 'mst start', 'mst status' to get the (cr0) device address" +echo "Then run flint -d [device_address] -i fw.bin --allow_psid_change burn" +echo "Server must be rebooted after firmware upgrade" +echo "To set ports to ethernet: 'mlxconfig -d [device_address] set LINK_TYPE_P1=2 LINK_TYPE_P2=2'" +echo "To turn off Bootrom: use the set command as above with 'BOOT_OPTION_ROM_EN_P1=false', Then do the same for P2., then LEGACY_BOOT_PROTOCOL_P1=0, and the same for P2." \ No newline at end of file