Flashing LSI HBA to IT mode or IR Mode

I wanted to share a good guide I found for those needing to flash their lsi hba over to IT mode

IT MODE basically makes it in pass through mode so no RAID is being used by the controller. You might ask why would you do this. Well the simple answer is that is needed for ZFS or freenas so it handles the raid setup for you ans doesn’t act as a raid controller card. Once again i take no responsibility in the unlikely event you incorrectly flash your card wrong. Please read this carefully before you make any changes,  Following information comes from

IBM ServeRAID M1015 Part 4: Cross flashing to a LSI9211-8i in IT or IR mode

 

 

One of the most popular SAS 6.0gbps/ SATA III controllers for enthusiasts is the IBM M1015. In its native form, it is a very capable host bus adapter (HBA) based on the LSI SAS2008 chip. With the low price on places such as ebay (see here for an ebay search for the M1015) and an enthusiastic community that has learned to unlock many features, it has quickly become a go-to choice for low-cost SATA III connectivity. This series of articles was written by Pieter Schaar perhaps best known as the one behind laptopvideo2go.com. He has been a regular contributor in the STH forums and has been detailing his learning in threads such as these. I do want to note that these modifications are not endorsed by this site, LSI, IBM or others and the information herein is purely for educational purposes. If you do encounter problems, you are solely responsible for those consequences.

There are now quite a few parts to this piece including:

Why crossflash?
In the previous 3 articles I’ve discussed the ins and outs of what the IBM M1015 is capable of in various modes. Now if you were to proceed and purchase an IBM M1015 and wanted to use it in other than it’s default LSI9240/9220 mode you will need to crossflash the card to a LSI9211 HBA 6.0gbps SAS / SATA III adaptor.
To recap:
LSI9211-IT = Straight pass through no RAID, best for ZFS file system etc
LSI9211-IR = Pass through as in IT mode, but you also have RAID options (RAID 0, RAID 1, RAID 1e and RAID 10), better for RAID 0 Windows boot SSDs etc, and possibly run Software RAID 5 on the other drives.
LSI9240 = default mode, only really useful feature this mode has is RAID1/ RAID 10, drives have to be set to JBOD (single) or RAID to be seen by OS, can be annoying when adding removing drives often.

How to cross flash
First things first, we take no responsibility for anything going wrong.
Please read carefully, don’t take shortcuts, and BE CAREFUL.
If in doubt or you can’t afford a replacement should it go wrong then ‘walk a away’
Warnings are done, lets flash:

Make a bootable USB stick, needs to be DOS bootable for the flasher etc to work, there are number ways to do it, ask Google
Download the files I have compressed over here
Self Extract the files somewhere, then place onto the USB stick
Turn machine off grab the SAS address of the card, it’s on the back on a green sticker (ie 500605B0xxxxxxxx)
Turn machine on (with card back in) choose USB stick at boot option, for all the below it is assumed you are booted to USB stick in the directory with the files from download.

Convert LSI9240(IBM M1015) to a LSI9211-IT mode
Type in the following exactly:
megarec -writesbr 0 sbrempty.bin
megarec -cleanflash 0
<reboot, back to USB stick >
sas2flsh -o -f 2118it.bin -b mptsas2.rom (sas2flsh -o -f 2118it.bin if OptionROM is not needed)
sas2flsh -o -sasadd 500605bxxxxxxxxx (x= numbers for SAS address)
<reboot>
Done!

Convert LSI9240(IBM M1015) to a LSI9211-IR mode
Type in the following exactly:
megarec -writesbr 0 sbrempty.bin
megarec -cleanflash 0
<reboot, back to USB stick>
sas2flsh -o -f 2118ir.bin -b mptsas2.rom
sas2flsh -o -sasadd 500605b0xxxxxxxx (x= numbers for SAS address)
<reboot>
Done!

Convert LSI9211-IT or IR to LSI9211 IR or IT
Type in the following exactly:
Megarec -cleanflash 0
<reboot, back to USB stick>
sas2flsh -o -f 2118ir.bin -b mptsas2.rom (2118it.bin = IT mode Firmware, change according to which way to flash)
sas2flsh -o -sasadd 500605bxxxxxxxxx (x= numbers for SAS address)
<reboot>
Done!

Convert LSI9211-IT/IR back to LSI9240 (IBM M1015)
Type in the following exactly:
Megarec -cleanflash 0
Megarec -writesbr 0 sbrm1015.bin
<reboot, back to USB stick>
Megarec -m0flash 0 0061_lsi.rom (for latest LSI firmware, also included 2x IBM roms too, just change name)
<reboot>
Done!

Tweaks
Of possible use to ZFS fanatics, when flashing the card to IT mode, do not flash the mptsas2.rom, this then will not load the boot BIOS
Any SAS or SATA IIIdrives added will just passthrough as normal, as there is nothing to see or do in the BIOS in IT mode, you may as well not load it. This makes boot and reboot time faster as it doesn’t have to load the BIOS and wait for a key press. BUT you will need it if you are booting from one of the drives attached to the IBM M1015. You will also need it if you are running IR mode to access to the BIOS to setup RAID functions. This might be of use to some users.

Leave a comment