Fix IOMMU related BAR1 errors, add h310-p16

upgrade bootloaders (both bios and uefi) to set iomem=relaxed - https://github.com/marcan/lsirec/issues/10#issuecomment-848207659

Also add flash script for BTRFS H310 users (P16 firmware)
This commit is contained in:
Jon Sands 2021-11-23 04:18:13 -05:00
parent d970c0ab93
commit ebc838e531
5 changed files with 36 additions and 2 deletions

View File

@ -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

View File

@ -2,3 +2,4 @@ include menu.cfg
default vesamenu.c32
prompt 0
timeout 50
set iomem=relaxed

View File

@ -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

View File

@ -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"