echo -off
#
# 25xx Flash Update Tool, Version 2.30
# 1/4/18
#
cls

echo " "
echo "25xx Flash Update Tool"
echo " "
echo "This tool will update the HBA Flash on x64 systems."
echo " "

pause


# Set CPU specific flash tool
set -v EFIUTIL EflashX64.efi

# Get Multiboot filename
for %i in q2?*.bin
  set -v MBFILE %i
endfor

# Set ASIC family.
set -v KIND 2500


# Perform flash update
echo " "
echo "Flashing Multiboot Image ..."
echo " "
%EFIUTIL%  -k %KIND%  -f  -t MBI  -w %MBFILE%
echo " "


echo " "
echo "HBA Update Complete."
echo " "
echo "Please reboot the system for the changes to take effect."
