mirror of
https://github.com/Fohdeesha/lab-docu.git
synced 2024-11-29 11:15:23 +01:00
27 lines
796 B
Bash
27 lines
796 B
Bash
#!/bin/sh
|
|
# H710 B0 Revision Flashing
|
|
addr=$(lspci -nnv | grep LSI | cut -b -7)
|
|
rmmod megaraid_sas mpt3sas mptctl mptbase
|
|
echo "Errors above are normal!"
|
|
sleep 2
|
|
echo 16 > /proc/sys/vm/nr_hugepages
|
|
sleep 1
|
|
#free the card, get it into rawdog mode, boot it from RAM
|
|
/root/lsirec/lsirec 0000:$addr unbind
|
|
sleep 1
|
|
/root/lsirec/lsirec 0000:$addr halt
|
|
sleep 1
|
|
/root/lsirec/lsirec 0000:$addr hostboot /root/H710/9205-8e.bin
|
|
sleep 2
|
|
/root/lsirec/lsirec 0000:$addr rescan
|
|
sleep 1
|
|
echo "Pausing for 20 seconds to allow the card to boot"
|
|
sleep 20
|
|
# erase FW again now from lsiutil to be sure it's dell-free
|
|
/root/lsiutil/lsiutil -p1 -a 3,8, 33
|
|
sleep 2
|
|
# flash FW to onboard flash
|
|
/root/lsiutil/lsiutil -p1 -f /root/H710/9205-8e.bin -y 2
|
|
sleep 1
|
|
echo "All Done! Continue following the guide to set SAS addr"
|