打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
IBM X3650 M3 自带的 RAID卡 M1015改刷IT Mode 固件以便ZFS
IBM X3650 M3 自带的 RAID卡 M1015改刷IT Mode 固件以便ZFS认盘
 
2 个附件
IBM X3650 M3 自带的 RAID卡 M1015 (LSI 9220-8i) 改刷(Cross flashing) IT Mode 固件 (Firmware) 以便ZFS认盘

在主题:http://bbs.et8.net/bbs/showthread.php?t=1028717
5楼:http://bbs.et8.net/bbs/showpost.php?...24&postcount=5
提到:

数据恢复需要一个能够直读裸盘的HBA卡,或者叫做IT mode的SAS卡。
其实ZFS也需要。

基础知识学习: IR/IT Mode
http://tech.hexun.com/2011-01-20/126902646.html
参见其中的 关键词 LSI SAS MegaRAID 9240 部分。
IBM M1015/M5015就是OEM自LSI的SAS9220-8i型号
附件 568196
原始的IR Mode 固件(MegaRAID)启动画面。
即使只有一个硬盘,也必须进入MegaRAID设置成单盘的JBOD模式才可以安装系统,识别硬盘。

sharin2012-06-29 12:31

5 个附件
首先参考了老外论坛里的资料:

http://bbs.et8.net/bbs/showpost.php?...28&postcount=6
http://www.servethehome.com/ibm-serveraid-m1015-part-4/
引用:

手头另有几个LSI的SAS卡,如LSI 1064 PCIX,无法插到X3650 M3中;其他服务器没有2.5寸笼子,也没法试,只有相办法把手头的M1015(OEM LSI SAS MegaRAID 9211-8i,只能做RAID1/0的最低端的6GB SAS卡)改造成IT mode。
这个老外论坛上有讨论,参见 http://lime-technology.com/forum/index.php?topic=12767

在第5贴,或者搜索关键词 M1015。

翻墙下载 LSI MegaRAID to SAS2008(P11).zip - 5.87 MB,
附件 568200
附件 568201
附件 568202
找了个U盘 用HP写入DOS FAT32文件,然后修改IBM X3650 M3 bios 从USB key启动,这中间的几番折腾不表,M3 服务器重启一次就是5分钟,来回折腾了三个多小时。
关键:BIOS中设置要把 Boot Options 里面加入 “Legacy Devices” and move it to the top。
否则USB key 无法启动。刷好IT mode的 M1015 也无法认盘。
下图为刷完IT mode 的 M1015卡,认出8个单盘SAS。


https://bbs.et8.net/bbs/attachment.p...hmentid=566476

老外原文:

引用:

1) Prepare a USB stick you do not mind formatting. You only need about 12MB.

2) Go into the bootable_usb_stick directory and install the HP USB Boot Utility (HP_USB_Boot_Utility.exe)

3) Launch the HP USB Disk Storage Format Tool

4) See screenshot "bootable_usb_stick.png" as reference, you just need to select "FAT32" file system
I named the volume KILLMEGA :), "Quick Format" otherwise it takes a LONG time, "Create a DOS startup disk"
and select "using DOS system files located at:" and browse to the directory "usbdos" which is a sub
folder under the boot_usb_stick directory where you installed the HP USB Boot Utility.
Click start

5) Once completed, unzip "LSIMega.zip" to the root of the usb stick.

6) Boot up to the usb stick.

7) Launch each step, Step 1, 1.bat (This will dump all the information about your card to a file Named ADAPTERS.TXT
In this file is your SAS Address which will be required for step 6 (6.bat)

Example: 
HW Configuration
================
SAS Address : 500605b001f31fa0

8) Step 2, 2.bat will save your current controllers SBR to a file Mega.sbr, please rename it to the cards model
your using this on, example IBM M1015, rename mega.sbr to SBRM1015.bin and post on the forum (would like
to collect all SBRs)

9) Step 3, 3.bat will wipe your current SBR and clear your controllers BIOs.

10) Set 4, Shutdown your system now, plug your USB stick in another system were you can get at the ADAPTERS.TXT
(that was dumped in step 1) file to write donw your SAS Controllers Address

11) Put back usb stick in the system with the Mega card and boot to usb again.

12) In step 5 you can Flash your card to either IT or IR mode by lauched the respective batch file (5IT.bat or
5IR.bat) This will file your mega controller to SAS2008 firmware P10 (lastest as of time posted)

13) Step 6, 6.bat will echo out the command you need to run manually in a commandline to re-program back your
SAS Address you obtain when you shutdown your system and wrote it down from the ADAPTERS.TXT file

SHOULD for any reason the SAS Address have not been in the ADAPTERS.TXT file, it should be on a sticker on the
back of your controller card, 16 characters without "-" dashes or spaces

14) reboot and enjoy!

我翻译的对照译文:
附件 568198
引用:

1) Prepare a USB stick you do not mind formatting. You only need about 12MB.
准备一个U盘,容量大于12MB,需要要格式化后作为启动盘用途。

2) Go into the bootable_usb_stick directory and install the HP USB Boot Utility (HP_USB_Boot_Utility.exe)
在文件包的bootable_usb_stick 文件夹中找到HP U盘启动盘制作工具,名为HP_USB_Boot_Utility.exe
3) Launch the HP USB Disk Storage Format Tool
运行 该HP U盘启动盘制作工具。
4) See screenshot “bootable_usb_stick.png” as reference, you just need to select “FAT32” file system
看图,你只需要更改一点,选中FAT32文件系统这个选项。
I named the volume KILLMEGA :), “Quick Format” otherwise it takes a LONG time, “Create a DOS startup disk” and select “using DOS system files located at:” and browse to the directory “usbdos” which is a sub folder under the boot_usb_stick directory where you installed the HP USB Boot Utility.
Click start
我设置了U盘的卷标为KILLMEGA :) 如果你没选“Quick Format”,可能要等好一会儿。选中“Create a DOS startup disk” 然后再选择 “using DOS system files located at:”,然后浏览到位于你在上一步中安装HP USB Boot Utility的boot_usb_stick 文件夹中的usbdos文件夹,然后点开始。
5) Once completed, unzip “LSIMega.zip” to the root of the usb stick.
完成后,解压缩“LSIMega.zip”中的所有文件到U盘根目录。
6) Boot up to the usb stick.
用这个U盘启动插着M1015卡的PC或服务器
7) Launch each step, 
运行U盘中的1-8.数字开头的每一个批处理,逐个按步骤进行。
Step 1, 1.bat (This will dump all the information about your card to a file Named ADAPTERS.TXT
In this file is your SAS Address which will be required for step 6 (6.bat)
Example: 
HW Configuration
SAS Address : 500605b001f31fa0
步骤1,1.bat (此步骤将读取当前阵列卡中的所有信息,写入到一个名为ADAPTERS.TXT的文件中。
在ADAPTERS.TXT中,你能找到你的SAS卡的WWN地址,如下图所示。请记下这个地址,在步骤6中会用到这个地址。我建议你在完成这一步后,直接将ADAPTERS.TXT文件名改为WWN地址后8位.txt
8) Step 2, 2.bat will save your current controllers SBR to a file Mega.sbr, please rename it to the cards model your using this on, example IBM M1015, rename mega.sbr to SBRM1015.bin and post on the forum (would like to collect all SBRs)
第二步,2.bat将保存阵列卡的SBR信息到一个文件名为Mega.sbr的文件。请将此文件改名为你阵列卡的型号,如SBRM1015.bin,然后将它张贴到论坛中(我(作者)需要收集全部型号的SBR文件)
9) Step 3, 3.bat will wipe your current SBR and clear your controllers BIOs.
第三步:3.bat 将擦除当前阵列卡的SBR和BIOs.这块卡ROM里的所有的信息将被清除一空。
10) Set 4, Shutdown your system now, plug your USB stick in another system were you can get at the ADAPTERS.TXT
(that was dumped in step 1) file to write donw your SAS Controllers Address
第四步:现在关机,拔出U盘,插到另一台Windows 机器中去进行上面1,2步骤中的一系列读取ADAPTERS.TXT(就是那个导出的配置文件)、改名等工作。
11) Put back usb stick in the system with the Mega card and boot to usb again.
将U盘插回被清空的卡所在的PC或服务器,然后再次用U盘启动到DOS界面。
12) In step 5 you can Flash your card to either IT or IR mode by lauched the respective batch file (5IT.bat or 5IR.bat) This will file your mega controller to SAS2008 firmware P10 (lastest as of time posted)
第5步,你有两个选择,IT或IR模式的刷机批处理分别名为5it和5ir,请按你的需求执行之,阵列卡将被对应地改刷为你需要的SAS2008型号。
13) Step 6, 6.bat will echo out the command you need to run manually in a commandline to re-program back your SAS Address you obtain when you shutdown your system and wrote it down from the ADAPTERS.TXT file
SHOULD for any reason the SAS Address have not been in the ADAPTERS.TXT file, it should be on a sticker on the back of your controller card, 16 characters without “-“ dashes or spaces

第六步:6.bat将会提示刷回SAS地址的语法。因为在第三步中,SAS地址也被擦除,因此需要将正确的SAS地址写回卡中。如果你找不到,其实卡身背面某张小标签上也贴着一份,16位长度,以500605开头的,中间-号分割的那串就是。
14) reboot and enjoy!
重起生效。

下图为刷完IT mode 的 M1015卡,对比上一贴的图可以发现,原来的MegaRAID bios变成了 MPT2 bios, 显示 IT Mode,能识别硬盘型号了。

sharin2012-06-29 13:08

后来发现按它的刷法,固件也不完整。表现为几点:
1. 无法按Ctrl +c 进入设置;
2. 没有刷入EFI BIOS,必须更改BIOS中设置,要把 Boot Options 里面加入 “Legacy Devices” and move it to the top。否则无法启动上图认盘载入HBA卡rom画面,刷好IT mode的 M1015 也无法认盘。
3. 该卡移到X3650服务器(bios模式服务器,非EFI模式,IBM服务器 从X3650 M2 开始进入EFI时代,所有的外接卡都带EFI固件),则启动画面只出现在第一次冷启动(HBA卡加电操作)时,如果服务器热启动、如操作系统重起、reset时则一律不再出现

以上第三点尤其致命,造成X3650服务器无法软件远程重起了。

sharin2012-06-29 13:09

1 个附件
于是自己继续埋头找资料。
LSI网站上找到LSI 9211,官方提供 IR-IT双模式固件:

固件不重要,重要的是得到了操作固件的程序:SAS2flash.exe,在各个操作系统中的版本;
了解了LSI 的92系列卡的操作系统结构,固件资料等;
引用:

***********************************************************************************************************************
Package for P13 Firmware BIOS Upgrade on MSDOS & Windows
************************************************************************************************************************
LSI Host Bus Adapter(HBA) - LSI SAS 9211_8i
Package Contents- 

Readme first note : README_9211_8i_Package_P12_IT_IR_Firmware_BIOS_for_MSDOS_Windows.txt 
Installer(SAS2FLSH) : \sas2flash_dos_rel\sas2flsh Version no: 13.00.00.00 Release date: 17-FEB-12 
Installer(SAS2FLASH) : \sas2flash_win_x86_rel\sas2flash Version no: 13.00.00.00 Release date: 17-FEB-12 
Installer(SAS2FLASH) : \sas2flash_win_x64_rel\sas2flash Version no: 13.00.00.00 Release date: 17-FEB-12 
Installer(SAS2FLASH) : \sas2flash_win_ia64_rel\sas2flash Version no: 13.00.00.00 Release date: 17-FEB-12 
Installer(SAS2FLASH)
Reference Guide : SAS2Flash_ReferenceGuide.pdf Version no: 2.1 Release date: JUNE-11
Firmware : \firmware\HBA_9211_8i_IR\211ir.bin Version no: 13.00.01.00 Release date: 17-FEB-12
Firmware : \firmware\HBA_9211_8i_IT\211it.bin Version no: 13.00.01.00 Release date: 17-FEB-12
BIOS : \sasbios_rel\mptsas2.rom Version no: 7.25.00.00 Release date: 17-FEB-12
Readme for BIOS : \sasbios_rel\mptbios.txt Version no: NA Release date: NA
Release notes : SAS2BIOS_Release_Notes_P13.txt, Firmware_Release_Notes_P13.txt, SAS2FLASH_Release_Notes_P13.txt 

----------------------------------------------------------------------------------------------------------------------------


sharin2012-06-29 13:11

如上文引用的资料所示,LSI 92xx系列卡的固件有2部分组成:
一部分叫做BIOS,一部分叫做Firmware;

BIOS的作用是在系统引导时载入,作为ROM的一部分,在内存中载入硬盘或raid的相关信息,从而让操作系统能够识别硬盘或者阵列;
——BIOS目前可以分为两种,传统的BIOS和新型的EFI BIOS;
——BIOS同时在系统引导时提供一个热键,按下后可以进入一个界面,进行硬盘阵列或HBA卡的相关设置等操作。
——这个功能LSI有时同时也提供一份程序,在各操作系统中也能进行类似的操作,察看及修改设置。

Firmware 就是前面提到的固件,分为IR模式和IT模式,
——IR模式可以组合各种不同类型的阵列;
——IT模式下把卡作为一个HBA卡(Host BUS Adapter,接口界面卡)使用,直接识别单个硬盘,
——优点是操作系统可以直接操作单个硬盘本身,做软RAID/察看硬盘SMART信息必须是这种模式。

sharin2012-06-29 13:12

1 个附件
关于新型的EFI BIOS:
根据找到的资料,除了卡上必须有EFI BIOS 外,貌似主板上还必须加载对应的EFI BIOS驱动。

引用:

*****************************************************

LSI Corporation SAS2 MPT UEFI BSD HII Driver Release

*****************************************************

====================== 
Supported Controllers:
======================
SAS2004 
SAS2008 
SAS2108_1
SAS2108_2
SAS2108_3
SAS2116_1
SAS2116_2
SAS2208_1
SAS2208_2
SAS2208_3
SAS2208_4
SAS2208_5
SAS2208_6
SAS2308_1
SAS2308_2
SAS2308_3


Component:
=========
Binary image name: ebcsas2.rom (for Flashing on EBC Compatible supported Platforms)
Binary image name: ebcsas2.efi (for Shell load test on EBC Compatible supported platforms)
Binary image name: x64sas2.rom (for Flashing on X64 platforms)
Binary image name: x64sas2.efi (for Shell load test on X64 platforms)


Installation:
=============
Use SAS2Flash.efi to install the SAS2 BSD HII Driver binary.
The SAS2Flash utility is included in the package zip file.
UEFI version of SAS2Flash can be downloaded from the Support & Downloads section of www.lsi.com.

The command line installation instruction to flash the UEFI SAS2 BSD HII Driver is:

1. Run 'drivers' command under uefi shell
2. Locate the driver handles for existing SAS2 MPT Drivers
3. unload <dh>
where <dh> is the driver handle for already loaded driver.

4.sas2flash -c <n> -b ebcsas2.rom (for EBC compatible supported platforms)
or
sas2flash -c <n> -b x64sas2.rom (for X64 platforms)

where <n> is the controller number (starting with zero (0)).

If you need further help, please contact the LSI FAE associated with your Organization.

Notes: 
1) UEFI BSD with or without HII does not require Legacy BIOS to be loaded on to the controller.
2) A latest Firmware either IR or IT version with proper NVData is required.
3) To load the images for testing under shell only:
a. load ebcsas2.efi
or
loadpcirom ebcsas2.rom
or
load pcirom x64sas2.rom


但是我无法在IBM X3650 M3 的bios中进入执行.efi文件的命令行界面。
如果有人有这方面经验的,欢迎告知,多谢。

sharin2012-06-29 13:12

由于LSI官方的固件存在3楼提到的3点问题,尤其是第三点显然是LSI没有考虑到的,所以我们拿到上面4,5楼的资料后,把注意力转回IBM.
首先,毫无疑问,IBM在服务器存储方面使用了大量的LSI设备,所以我们确信除了M1015这类阵列卡外,肯定也有类似芯片的HBA卡在IBM的服务器上使用。经过一番查找(关键词:IBM 6 Gb SAS Host Bus Adapter ),一个FRU为46M0907 的HBA卡映入眼帘:
http://www-947.ibm.com/support/entry...d=MIGR-5084922

从上面的IBM资料可以看出,有三块HBA卡
引用:

IBM 6Gb SAS HBA (46M0907)
IBM 6Gb SSD HBA (68Y7362)
IBM 6Gb Performance Optimized HBA (46M0912)

共享同一份固件资料页面:
表明他们血统相近,存在很明显的Cross flashing 的可行性。

sharin2012-06-29 13:13

再进入下一级下载界面,我们找到了以下关键词:

System x3650 (1914,7979)

哈哈,这正是我们需要的。这份固件不仅支持大于2TB的硬盘,而且支持x3650 服务器,肯定解决了X3650重起后的bios load 问题。就是他了。

引用:

Supported controllers:

IBM 6Gb SAS HBA (46M0907)
IBM 6Gb SSD HBA (68Y7362)
IBM 6Gb Performance Optimized HBA (46M0912)
Change history
Version 1.10.01

Contains: 
Controller BIOS Firmware UEFI Driver 
IBM 6Gb SAS HBA 7.19.00.00 10.00.05.00 7.18.01.05 
IBM 6Gb SSD HBA 7.19.00.00 10.00.05.00 7.18.01.05 
IBM 6Gb Performance Optimized HBA 7.19.00.00 10.00.05.00 7.18.01.05 

Enhancements:

Add support for SATA 6GB drives greater then 2.1TB


sharin2012-06-29 13:13

OK,新固件找好,回过头来看2楼的14步改固件教程。先弄懂原理,再改进脚本,加入我们自己的固件。

sharin2012-06-29 13:14

我做了以下改进:
1. 加入了DOS版的edit.exe程序。第三步完成后本来需要关机,把U盘弄到其他机器上操作,这样就不需要了,第4步改为直接
引用:

edit ADAPTERS.TXT

查找5006开头的字符串即可。DOS没有GREP,否则脚本里加入GREP更为直观。当然重启还是必须要的。

2. 5IT 增加了刷新EFI BIOS的语句,一次把固件都刷进去。
固件使用 IBM 6Gb Performance Optimized HBA (46M0912) 升级包里提取的固件,它有SAS和SSD两款固件,具体区别不知道,其中有一款是不识别SAS盘的,我没SSD可以测试,能否识别SSD也不清楚。

5IT_SAS.BAT
引用:

@echo off
cls
echo .
REM ========================================================
REM Start firmware and BIOS update
echo . Using SAS2008, Initator-Target (IT) firmware
echo.
echo . COMMANDLINE THAT WILL BE USED:
echo sas2flsh -l Flashlog.txt -o -f 03CA_I~1.FW -b BIOS-0~1.ROM -b UEFI-0~1.ROM
echo.
pause
echo.
echo . Proceeding to Flash and Log too Flashlog.txt
echo . in the current directory
echo.
sas2flsh.exe -l Flashlog.txt -o -f 03CA_I~1.FW -b BIOS-0~1.ROM -b UEFI-0~1.ROM
pause

5IT_SSD.BAT
引用:

@echo off
cls
echo .
REM ========================================================
REM Start firmware and BIOS update
echo . Using SAS2008, Initator-Target (IT) firmware
echo.
echo . COMMANDLINE THAT WILL BE USED:
echo sas2flsh -l Flashlog.txt -o -f 03CB_R~1.FW -b BIOS-0~1.ROM -b UEFI-0~1.ROM
echo.
pause
echo.
echo . Proceeding to Flash and Log too Flashlog.txt
echo . in the current directory
echo.
sas2flsh.exe -l Flashlog.txt -o -f 03CB_R~1.FW -b BIOS-0~1.ROM -b UEFI-0~1.ROM
pause
sas2flsh.exe -list

3. 6改为更简单的做法,直接6 跟上WWN后10位即可。M1015卡前6位是固定的IBM 厂商代码,不需要浪费时间在输入上。

6.BAT
引用:

@echo off
cls
echo .
REM ========================================================
echo . Re-Program back the SAS address
echo .
echo You will need to do this step manually from commandline
echo .
echo Commandline you will need to input example:
echo .
echo sas2flsh -o -sasadd 500605bxxxxxxxxx
echo .
echo Where "500605bxxxxxxxxx" is the SAS address
echo .
sas2flsh -o -sasadd 500605b0%1

附件是更改过的程序包。改过的5IT系列脚本放在 46M0912_IT 文件夹里。根目录下的脚本是老外原作,未改动。

呃,附件10M没法传,我放另一个论坛里,自己下载吧。

http://bbs.fyjy.net/attachment.php?a...7&d=1340940696

sharin2012-06-29 13:42

补充信息:
据测试,楼上5IT_SAS.BAT 刷的SAS可能会出现不认盘的情况,有认一个盘的,也有全部不认的。
反而5IT_SSD.BAT 能识别全部硬盘。
具体原因未知。

测试 atom g45能进ctrl + C,g61进不了 。
不过IT mode 不进ctrl +C问题不大,反正it 模式,无所谓了,又没啥要改的



本帖发布时,淘宝的M1015成交价在500-600左右。请各位密切关注,如果JS因此涨价,作者概不负责。特此声明。

sunnie2012-06-29 17:16

仔细看了好久,没看懂 :blush;

大白鲨2012-06-29 17:21

我也是仔细看了好久,没看懂:blush;

princenigma2012-06-29 19:33

这文章看过,还下了firmware准备刷成IT
两块9211-8i装上后默认是IR,开机可以认8个单硬盘,freenas下的zfs直接使用,也没去深究
难道是我记错了,有机会重启时看看
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
LSI 9217-8i HBA 卡刷 IT 模式
NAS装机指南:魔改ES板U、阵列卡、二手硬盘等硬件的剖析与排雷
Raid/HBA卡的硬盘顺序启动
路由器软件部分的几个概念:CFE、固件(Firmware)、NVRAM
搞不定与不搞定:从910看Intel的SSD战略
IBM system X3250 M4 配置RAID阵列
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服