move H310 sbr flashing into freedos

This commit is contained in:
Jon Sands 2022-06-19 07:27:05 -04:00
parent 836e07d7d9
commit 1cff6872ec
7 changed files with 36 additions and 50 deletions

View File

@ -0,0 +1,12 @@
@echo off
echo H310 Full Size Preparation
pause If your card is not an H310 FULL SIZE, hit ctrl+c now!! Otherwise hit enter
pause If you have an H310 Mini instead, hit ctrl+c now!! Otherwise hit enter
pause Press any key to clean adapter flash
megarec -cleanflash 0
pause Press any key to continue
echo running second cleaning to be sure
megarec -cleanflash 0
pause Press any key to write IT Mode SBR
megarec -writesbr 0 H310FLMD.sbr
pause If no errors above, you may press any key then reboot

View File

@ -0,0 +1,11 @@
@echo off
echo H310 Mini Preparation
pause If your card is not an H310 MINI, hit ctrl+c now!! Otherwise hit enter
pause Press any key to clean adapter flash
megarec -cleanflash 0
pause Press any key to continue
echo running second cleaning to be sure
megarec -cleanflash 0
pause Press any key to write IT Mode SBR
megarec -writesbr 0 H310MNMD.sbr
pause If no errors above, you may press any key then reboot

Binary file not shown.

Binary file not shown.

View File

@ -1,25 +1,22 @@
#!/bin/sh
# H310 Mini Flashing
# H310 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
sleep 2
#free the card, get it into rawdog mode, boot it from RAM
/root/lsirec/lsirec 0000:$addr unbind
sleep 1
sleep 2
/root/lsirec/lsirec 0000:$addr halt
sleep 2
##write IT mode SBR
/root/lsirec/lsirec 0000:$addr writesbr /root/H310/H310-Mini-Modded.sbr
sleep 2
/root/lsirec/lsirec 0000:$addr hostboot /root/H310/2118it.bin
sleep 2
sleep 5
/root/lsirec/lsirec 0000:$addr rescan
sleep 1
echo "Pausing for 20 seconds to allow the card to boot"
sleep 20
sleep 30
# erase FW again now from lsiutil to be sure it's dell-free
/root/lsiutil/lsiutil -p1 -a 3,8, 33
sleep 2

View File

@ -1,32 +0,0 @@
#!/bin/sh
# H310 Mini Flashing (Old P16 firmware for BTRFS users)
addr=$(lspci -nnv | grep LSI | cut -b -7)
rmmod megaraid_sas mpt3sas mptctl mptbase
echo "Errors above are normal!"
echo "Preparing to flash old P16 firmware"
sleep 2
echo 16 > /proc/sys/vm/nr_hugepages
sleep 2
#free the card, get it into rawdog mode
/root/lsirec/lsirec 0000:$addr unbind
sleep 2
/root/lsirec/lsirec 0000:$addr halt
sleep 2
##write IT mode SBR
/root/lsirec/lsirec 0000:$addr writesbr /root/H310/H310-Mini-Modded.sbr
sleep 5
#hostboot the card from RAM
#must always RAM-boot using P20, older firmwares do not RAM-boot correctly
/root/lsirec/lsirec 0000:$addr hostboot /root/H310/2118it.bin
sleep 5
/root/lsirec/lsirec 0000:$addr rescan
sleep 1
echo "Pausing for 20 seconds to allow the card to boot"
sleep 30
# erase FW again now from lsiutil to be sure it's dell-free
/root/lsiutil/lsiutil -p1 -a 3,8, 33
sleep 5
# flash FW to onboard flash
/root/lsiutil/lsiutil -p1 -f /root/H310/p16-h310-2118it.bin -y 2
sleep 1
echo "All Done! Continue following the guide to set SAS addr"

View File

@ -1,29 +1,27 @@
#!/bin/sh
# H310 Full Size Flashing
# H310 Flashing (Old P16 firmware for BTRFS users)
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
sleep 2
#free the card, get it into rawdog mode, boot it from RAM
/root/lsirec/lsirec 0000:$addr unbind
sleep 1
sleep 2
/root/lsirec/lsirec 0000:$addr halt
sleep 2
##write IT mode SBR
/root/lsirec/lsirec 0000:$addr writesbr /root/H310/H310-Full-Modded.sbr
sleep 2
#must always RAM-boot using P20, older firmwares do not RAM-boot correctly
/root/lsirec/lsirec 0000:$addr hostboot /root/H310/2118it.bin
sleep 2
sleep 5
/root/lsirec/lsirec 0000:$addr rescan
sleep 1
echo "Pausing for 20 seconds to allow the card to boot"
sleep 20
sleep 30
# 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/H310/2118it.bin -y 2
# flash old FW to onboard flash
/root/lsiutil/lsiutil -p1 -f /root/H310/p16-h310-2118it.bin -y 2
sleep 1
echo "All Done! Continue following the guide to set SAS addr"