From e3778ded85745fb173b753d050a85757e8827c0b Mon Sep 17 00:00:00 2001 From: Confusingboat Date: Thu, 20 Jan 2022 10:11:21 -0600 Subject: [PATCH] Add H200 and M1015 to out-of-the box support (#21) * Update README.md * yolo some grep changes into flash-it.sh Untested but should add out of the box support for H200 and M1015 --- README.md | 11 ++++++----- flash-it.sh | 6 +++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c55fe2b..785291a 100644 --- a/README.md +++ b/README.md @@ -23,20 +23,21 @@ This script was born from necessity. I've got a pile of 12G Dell servers that ne ## Supported hardware ### Tested servers -* R320 -* R420 -* R720 -* R720xd +* Dell R320 +* Dell R420 +* Dell R720 +* Dell R720xd +* Huawei RH2288v2 ### Tested adapters * PERC H310 Mini Monolithic * PERC H310 * PERC H200 +* IBM M1015 * _more coming soon!_ ### Untested adapters * PERC H200e -* IBM M1015 * Other cacheless LSI SAS2x08 cards ### Testing other adapters diff --git a/flash-it.sh b/flash-it.sh index 17d86ca..468d25e 100644 --- a/flash-it.sh +++ b/flash-it.sh @@ -16,7 +16,7 @@ UEFI_PACKAGE_FILE_NAME="uefi.zip" BACKUP_ROOT_DIR="/tmp" -ADAPTER_PATTERN="H310" +ADAPTER_PATTERN="H310|H200|M1015" ADAPTER_INDEX="0" #SBR_CFG_MODIFIED_FILE_PATH="H310MM_mod.cfg" FIRMWARE_UNPACK_DIR="/tmp/lsi_firmware" @@ -144,8 +144,8 @@ rmmod megaraid_sas echo 16 > /proc/sys/vm/nr_hugepages # Display full PCI information and dump PCI address to file -lspci -mnn | grep ${ADAPTER_PATTERN} -PCI_ADDRESS="$(lspci -mnn | grep ${ADAPTER_PATTERN} | grep -E '^\w+' | cut -d' ' -f1)" +lspci -mnn | grep -E ${ADAPTER_PATTERN} +PCI_ADDRESS="$(lspci -mnn | grep -E ${ADAPTER_PATTERN} | grep -E '^\w+' | cut -d' ' -f1)" if [ ${#PCI_ADDRESS} -ne 7 ]; then echo "Could not retrieve PCI address from lspci, attempting to load from existing backup file." [ ! -f "${BACKUP_PCI_ADDRESS_FILE}" ] && echo "Error: unable to locate PCI address backup file. No changes have been made." && exit 1