Steps basically are as follows for flashing on UEFI/EFI based computer:
1. Go into computer boot menu and choose the DOS (non UEFI) version to boot.
2. Run the following to verify that the card is recognized:
megarec -adpList
3. Run the following to save a file with the info of the card, then shutdown and find SAS Address and make note of it for a later step.
megaoem -adpallinfo -a0 > allinfo.txt
4. Run the following to erase the SAS drive once back in DOS.
megarec -writesbr 0 sbrempty.bin
megarec -cleanflash 0
5. Shutdown the machine and boot back up into the boot menu to find the UEFI version where you will remain until all steps are done
sas2flash.efi -o -f 6GBPSAS.FW
sas2flash.efi -o -b mptsas2.rom
sas2flash.efi -o -sasadd {ADDRESS NOTED FROM FILE}
6. Now verify that the cards are working by rebooting and pressing ctrl-c to enter configuration utility of the SAS. Once verified that it’s written, reboot.
7. go back into UEFI run the following to remove the BIOS to make booting faster.
sas2flash.efi -o -e 6
sas2flash.efi -o -f 6GBPSAS.FW