Where is the megarec Utility to Crossflash M1015 to IT Mode?

Status
Not open for further replies.
Joined
Dec 31, 2012
Messages
8
I am trying to cross flash the IBM Serveraid M1015 to IT mode, following this tutorial: (http://www.servethehome.com/ibm-serveraid-m1015-part-4/) but it looks like the link for the files in that article is currently down. (http://forums.laptopvideo2go.com/topic/29059-lsi-92xx-firmware-files/)

Does anyone have those files here?

I found the P16 firmware files on LSI's site, but I need the megarec utility and the sbrempty.bin as shown in the following commands

Code:
megarec -writesbr 0 sbrempty.bin
megarec -cleanflash 0


so that I can get sas2flsh to even recognize the card.
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
PM your email to me and I will zip them up and send it your way.
I have no other way, sorry
 
Joined
Dec 31, 2012
Messages
8
PM sent. I really do appreciate it.

Also, unless they are more than 25MB, you could post them here for others who might be looking for them too... If they are that big, though, my email will bounce it back.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,175
They're available on LSI's website as well. Maybe not packaged with the P16 files, but with the latest files almost certainly.
 

Magnetic83

Cadet
Joined
Jul 20, 2016
Messages
4
Hi,
i'm having compatibility problems with the LSI 9240-4i and i've documented myself for an entire week.
The only one choice seem to be crossflashing it to a 9122 in IR mode (for my needs).
I just need to find the Megarec utility and the related files.
Zanginator, in another post talk about a zip with all the files needed to perform this action but i can't find his package anymore called Sas2008.
Anyone of you can help me ?
Can anyone PM me the needed files to crossflashing ?

Thank you in advance.
 

Spearfoot

He of the long foot
Moderator
Joined
May 13, 2015
Messages
2,478
Hi,
i'm having compatibility problems with the LSI 9240-4i and i've documented myself for an entire week.
The only one choice seem to be crossflashing it to a 9122 in IR mode (for my needs).
I just need to find the Megarec utility and the related files.
Zanginator, in another post talk about a zip with all the files needed to perform this action but i can't find his package anymore called Sas2008.
Anyone of you can help me ?
Can anyone PM me the needed files to crossflashing ?

Thank you in advance.
Here is the fileset I used to flash my M1015:
 

Attachments

  • m1015.zip
    5.2 MB · Views: 5,905

Magnetic83

Cadet
Joined
Jul 20, 2016
Messages
4
Thank you Spearfoot !!!!!!!!!!!:)
Now i can try to do the job...
If i can ask you, do you've used dos or uefi shell?
And the correct list of commands ? A lot of post with a lot of different commands sequence. How did you do that?
 

Magnetic83

Cadet
Joined
Jul 20, 2016
Messages
4
Booted if efi shell, ok.
1. mount fs0 (ok)
2. fs0: (ok)
3. sas2flash.efi -listall (no lsi adapter found...)
4. megarec -writesbr 0 sbrempty.bin (megarec is not recognized as an internal or external program)

What can i do?
 

Spearfoot

He of the long foot
Moderator
Joined
May 13, 2015
Messages
2,478
Booted if efi shell, ok.
1. mount fs0 (ok)
2. fs0: (ok)
3. sas2flash.efi -listall (no lsi adapter found...)
4. megarec -writesbr 0 sbrempty.bin (megarec is not recognized as an internal or external program)

What can i do?
Hmmm... I would try booting DOS from a USB stick, instead of loading the UEFI shell. I don't think you can execute the megarec.exe program from a UEFI shell. I flashed my M1015 using DOS on an older PC, creating the bootable USB stick with Rufus.

I included two batch files in the zip archive. Before using them, you should run sas2flsh --listall and obtain the 16-digit SAS ID of your card; you will need to edit the second batch file and specify this ID where indicated.

The first (TOITMD1.BAT) runs these commands:
Code:
megarec -writesbr 0 sbrempty.bin
megarec -cleanflash 0
echo Reboot and run the next batch file

You should reboot the system after running this first batch file. Then run the second batch file (TOITMD2.BAT) which runs these commands:
Code:
sas2flsh -o -f 2118it.bin -b mptsas2.rom
REM Edit and specify your 16-digit Hex SAS address:
sas2flsh -o -sasadd XXXXXXXXXXXXXXXX

Note that you must edit this batch file, replacing the 'X's with the 16-digit SAS ID of your card!

Also, you can remove the '-b mptsas2.rom' specifier if you don't want to flash the option ROM onto the card.
 

Spearfoot

He of the long foot
Moderator
Joined
May 13, 2015
Messages
2,478

Magnetic83

Cadet
Joined
Jul 20, 2016
Messages
4
Oooops, the megarec is .exe not .efi... sorry! :D
Ok, i'll try and iìll give you a feedback after the operations, i hope it will work without problems.
Thank you again.
 

Murac

Dabbler
Joined
Mar 18, 2015
Messages
46
How's it going, i found these alternative instructions here: https://blog.grem.de/sysadmin/LSI-SAS2008-Flashing-2012-04-12-22-17.html

  1. Boot FreeDOS from USB thumb drive

  2. Check for available controllers (important):

    sas2flsh -listall

  3. Clean controller flash memory (without removing WWN, 0 is the controller number):

    sas2flsh -o -e 6 -c 0

  4. Flash firmware and OptionROM images (0 is the controller number):

    sas2flsh -o -f 2108it.bin -b mptsas2.rom -c 0

  5. Reboot into OS

a) Can I get away without the megarec utility with a 9210-8i?
b) if I use the files from your zip, should I copy my firmware files over to that fileset or can I just copy the megarec.exe file? (not sure if it has dependencies)

http://www.avagotech.com/products/server-storage/host-bus-adapters/sas-9210-8i#overview for reference
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,175
You only need megarec to erase cards that do not ship with IT/IR firmware.
 

Murac

Dabbler
Joined
Mar 18, 2015
Messages
46
And if my firmware mismatches the drivers? Still no megarec?
 

Spearfoot

He of the long foot
Moderator
Joined
May 13, 2015
Messages
2,478
How's it going, i found these alternative instructions here: https://blog.grem.de/sysadmin/LSI-SAS2008-Flashing-2012-04-12-22-17.html

  1. Boot FreeDOS from USB thumb drive

  2. Check for available controllers (important):

    sas2flsh -listall

  3. Clean controller flash memory (without removing WWN, 0 is the controller number):

    sas2flsh -o -e 6 -c 0

  4. Flash firmware and OptionROM images (0 is the controller number):

    sas2flsh -o -f 2108it.bin -b mptsas2.rom -c 0

  5. Reboot into OS

a) Can I get away without the megarec utility with a 9210-8i?
b) if I use the files from your zip, should I copy my firmware files over to that fileset or can I just copy the megarec.exe file? (not sure if it has dependencies)

http://www.avagotech.com/products/server-storage/host-bus-adapters/sas-9210-8i#overview for reference
@Murac, there's a copy of megarec.exe in the M1015.ZIP file available above in post #6 in this thread.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,175
And if my firmware mismatches the drivers? Still no megarec?
No. You use sas2flash for all IR/IT firmware operations.
 

Fidget08

Cadet
Joined
Sep 17, 2016
Messages
3
I feel like I'm so close. When I run Sas2flsh.exe I get an Error: Failed to initialize PAL. Exiting program. My Lenovo TS440 doesn't have UEFI so I can't go that route. Pretty sure I'm screwed for now till I can get an old computer from work to do this flash. Am I missing anything?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,175

Spearfoot

He of the long foot
Moderator
Joined
May 13, 2015
Messages
2,478

Fidget08

Cadet
Joined
Sep 17, 2016
Messages
3
Well color me completely wrong. I guess I meant to say is that I can't find if it has a UEFI Shell built into the boot options.

Edit: I downloaded rEFInd Boot Manager and have successfully booted into an UEFI Shell.
 
Last edited:
Status
Not open for further replies.
Top