Skip to content

Instantly share code, notes, and snippets.

@bitrut
Last active February 13, 2023 13:22
Show Gist options
  • Save bitrut/0c8294987fd54bcd657b89a8f4fca75f to your computer and use it in GitHub Desktop.
Save bitrut/0c8294987fd54bcd657b89a8f4fca75f to your computer and use it in GitHub Desktop.
Flash M1015 SAS Controller to IT mode on HPE Microserver gen 10 from USB

What's the IT mode: https://dannyda.com/2021/09/22/what-are-it-mode-hba-mode-raid-mode-in-sas-controllers/

Sources:

Problems:

  • sas2flsh.exe doesn't work on booted FreeDOS, due to lack of BIOS32 in Microserver
  • sas2flash.efi in UEFI shell doesn't see LSI Card

Solution:

  • Take the photo of the back of your SAS card (to memoize the SAS Address on the sticker, see youtube)
  • Create FreeDOS bootable USB: https://www.freedos.org/download/
  • Download LSI tools for DOS and uncompress it to the USB drive
  • Download EFI Shell v1 and put in under \efi\boot\bootx64.efi in the USB drive
  • Download LSI firmware version P20 and save it to the USB drive
  • Go to BIOS, change Boot Mode to "Legacy Only" and boot DOS from USB
  • Erase NVRAM of the LSI card:
    megarec -writesbr 0 sbrempty.bin
    megarec -cleanflash 0
    
  • Now, you can change to "UEFI Only" mode in BIOS and boot the UEFI shell to use sas2flash.efi:
    sas2flash.efi -o -f 2118it.bin -b mptsas2.rom (sas2flsh -o -f 2118it.bin if OptionROM is not needed)
    sas2flash.efi -o -sasadd 500605bxxxxxxxxx (x= numbers for SAS address from the sticker)
    

Done.

Creating a dual boot USB key for both UEFI Mode and Legacy BIOS Mode (source)

You can create a dual boot USB device to boot both Legacy BIOS (for example DOS) and a UEFI Shell. This is useful, for example, for performing an offline ROM upgrade utility. To do so:

Procedure

  • Attach a USB device with a FAT/FAT32 partition that contains a Legacy BIOS Mode MBR.
  • Add the \efi\boot\bootx64.efi boot loader to the legacy-bootable USB.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment