s5clouds8-lsi9211-8i-IR-to-IT-EFI-bootable-usb

Creating USB Flash drive

The following 'spec' has been confirmed to work

  • Sony 4GB USB2.0 Flash Drive. I have been told that USB3 sticks may not work.

Format as follows, use lsblk -f and fdisk -l to locate the correct device and replace /dev/sdX below

  • Wipe the drive with dd if=/dev/null of=/dev/sdX bs=16k status=progress
  • fdisk /dev/sdX
    • Select o to create new empty DOS partition table.
    • n and choose to create a primary partition, where the last sector is +500M.
    • w to write and exit
  • fdisk /dev/sdX1 + a to set the primary partition as bootable (active). Choose w to write and exit.
  • sudo mkfs.vfat /dev/sdX1 to format as FAT16.

Preparing the drive

Mount and copy the contents of the usb folder to the root of the USB drive. Here's a breakdown of where these files have been obtained from

The zip files mentioned above are included in the root of this repo for archival purposes.

Disabling Secure Boot (in Asus UEFI)

In the Boot tab, scroll down to Secure Boot and choose 'Other OS' as the selection. You will need to save and reboot to ensure this persists. This same view will let you verify that keys are unloaded.

You do not need to wipe your Secure Boot keys; if you do, make sure to make a backup first.

Booting the drive (in Asus UEFI)

In Asus UEFI, going to Exit > Launch EFI Shell from USB devices would not work (for me, YMMV); instead it would keep presenting a warning regarding Secure Boot.

Instead, head to the Boot tab in the UEFI and locate a bootable entry starting with UEFI: .... that matches the capacity of your media. In my case, this was a Sony USB drive.

Since Secure Boot was already disabled, this booted into the EFI shell straight away.

Flashing the LSI HBA Card to IT-mode

  • Erase controller flash memory: sas2flash.efi -o -e 6 DO NOT REBOOT!!

  • Write new firmware and BIOS to card: sas2flash.efi -o -f 2118it.bin -b mptsas2.rom.

  • Make sure to verify before rebooting: sas2flash.efi -listall

Reboot and hit Ctrl-C to verify the new firmware in IT mode has persisted.

Hardware Used (as a baseline)

  • AMD Ryzen Threadripper 1950X
  • Asus Zenith Extreme X399 (TR4) w/ Noctual NH-U14S-TR4-SP3 Cooler
  • G.Skill DDR4 32GB RAM @ 3200MT/s
  • Fedora 27 / 4.15.14-300.fc27.x86_64
  • Samsung 850 Pro 250GB SSD

Level1Tech's Thread

This repo is a result of posting my findings in a thread on the Level1Tech's forum. Feel free to share your findings there.

Much thanks to Whizdumb for pointing me in the right direction with crucial info about using USB2 drives.

References

License

This project is licensed under the terms of the MIT License.