Skip to content

Commit

Permalink
Fix IOMMU related BAR1 errors, add h310-p16
Browse files Browse the repository at this point in the history
upgrade bootloaders (both bios and uefi) to set iomem=relaxed - marcan/lsirec#10 (comment)

Also add flash script for BTRFS H310 users (P16 firmware)
  • Loading branch information
Fohdeesha committed Nov 23, 2021
1 parent 6ab8b67 commit 5fdb760
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ loadfont $prefix/dejavu-bold-16.pf2
loadfont $prefix/dejavu-bold-14.pf2
loadfont $prefix/unicode.pf2
set gfxmode=auto
set iomem=relaxed
insmod all_video
insmod gfxterm
insmod png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ include menu.cfg
default vesamenu.c32
prompt 0
timeout 50
set iomem=relaxed
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Build Date: 07-20-2021
Perc Linux Live ISO v1.9
Build Date: 11-23-2021
Perc Linux Live ISO v2.0



Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/sh
# 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!"
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-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"

0 comments on commit 5fdb760

Please sign in to comment.