* usb flash drive (we will wipe it clean)
* m1015 lsa sas card
* an Ubuntu desktop machine that supports uEFI (other distros might work)
(could be separate or the same machine, can use ubuntu live disk)
Take a photo of the card because we will need the SAS address.
Install the lsa card in your video card "slot" on your motherboard.
Create USB drive
* use unetbootin to create a freedos usb drive
* use gparted to flag usb as bootable
* also put these files on the flash drive (http://codefromabove.com/wp-content/uploads/2017/03/m1015.zip)
Boot to FreeDOS
We need to boot to FreeDOS to run the `megarec` command which wipes the card.
If we don't wipe the card then when we boot to EFI shell it won't be detected
by the `sas2flash` tool
On my motherboard (Asus) during POST (when the machine first turns on)
I need to press F2 to get into the uEFI.
From uEFI I can choose my boot device, and so I choose my USB.
This causes freedos to boot and I choose "Safe Mode".
Then run the following commands (change to `C:` which is the root of the USB)::
megarec -writesbr 0 sbrempty.bin
megarec -cleanflash 0
Boot to EFI Shell
Again restart the computer and press `F2` during startup.
I had to disable `secure boot` on my motherboard (be careful with this)
For Asus you disable `secure boot` when you delete the plateform key...
Make sure to make a backup first if you use secure boot!
Change to the USB device (`fs0` for me)::
sas2flash -o -f 2118it.bin
sas2flash -o -sasadd <sas address on card>
To explain (based on many posts I've read!!!):
Part 1 (DOS): Wipe out the card
megarec is a powerful LSI tool that can do almost anything
sbrempty.bin is an sbr (serial boot record) made by a non-LSI contributor that contains NO vendor ID (i.e. loading it wipes out the IBM vendor ID in the sbr)
cleanflash wipes out almost everything (including the rest of the vendor info and the sas address) but leaves the card ready to be reflashed
Part 2 (DOS or EFI): Flash new firmware and set sas address (erased in part 1)
now that the IBM is gone, sas2flash works and downloads firmaware and sets address
Further firmware upgrades are much easier.
Just update the 2118it.bin file on the USB.