二.编辑“txtsetup.sif”文件
1. 修改[SourceDisksFiles]参数
打开
“
E:\dell\I386
”
文件夹,找到一个名为
“
txtsetup.sif
”
的文件,这是
Windows 2003
在安装时加载驱动程序的信息文件,用写字板程序打开它。按
“
Ctrl+F
”
快捷键,打开查找对话框,以
“
[SourceDisksFiles]
”
为关键字进行查找。找到这个字段后,其下面已经存在一些内容
再以
“
[
”
为关键字查找到这个字段的末尾(注意:不是整个文件内容的末尾),添加以下内容:
“
lsi_sas.sys = 1,,,,,,3_,4,1,,,1,4 percsas.sys = 1,,,,,,3_,4,1,,,1,4
”
lsi_sas.sys = 1,,,,,,3_,4,1,,,1,4
(dell-1950-raid)
percsas.sys = 1,,,,,,3_,4,1,,,1,4
((dell-2950-raid))
2. lsi_sas.sys注释
这里的
“
lsi_sas.sys
= 1,,,,,,3_,4,1,,,1,4”
是描述驱动程序所在位置的代码。代码的格式为
“filename_on_source=diskid,subdir,upgradecode,newinstallcode,spare,spare,newfilename”
,在
“txtsetup.sif”
文件中的
“[SourceDisksNames]”
和
“[WinntDirectories]”
等字段中有详细的描述。
在实际操作时,绝对不可以照搬代码!特别是扩展名为
sys
的文件
“
lsi_sas.sys
”
,它是
RAID
驱动程序目录
“D:\w2003RAID\$OEM$\$1\drivers\ sas_raid\r194052 ”
中的驱动程序文件名,如果您的
RAID
驱动程序与本文所述的不同,则只需换成目录中相应的文件即可。而等号后面的代码,一般可以直接照抄使用。
3. 编辑“txtsetup.oem”文件
拷贝
txtsetup.oem—[HardwareIds.scsi.MegaSR]
中参数添加到
txtsetup.oem--- [HardwareIdsDatabase]
中,首先切换到前面打开的
“
txtsetup.oem
”
文件,以
“
[HardwareIds.
”
为关键字进行搜索,应该可以找到类似
“
[HardwareIds.SICS.MegaSR]
”
的字段
该字段下的代码如:
id = "PCI\VEN_1000&DEV_0054&SUBSYS_1F041028", "lsi_sas"
。
切换到刚才打开的
“
txtsetup.sif
”
文件窗口中,以
“
[HardwareIdsDatabase]
”
为关键字进行搜索。找到后,将
“
txtsetup.oem
”
文件中
“
[HardwareIds.scsi.MegaSR]
”
字段下的代码拷贝到
“
txtsetup.sif
”
文件的
“
[HardwareIdsDatabase]
”
字段末尾。这里直接搜索
[Map.Computer]
就是
[HardwareIdsDatabase]
末尾,
不过,我们需要更改一下代码的格式,如将:
“
id = "PCI\VEN_1000&DEV_0054&SUBSYS_1F041028", "lsi_sas"
”
改为:
“
PCI\VEN_1000&DEV_0054&SUBSYS_1F041028
= "
lsi_sas
"
”
(其他代码修改方法相同),
更改后的代码如下:
"PCI\VEN_1000&DEV_0054&SUBSYS_1F041028" = "lsi_sas"
"PCI\VEN_1000&DEV_0054&SUBSYS_1F061028" = "lsi_sas"
"PCI\VEN_1000&DEV_0054&SUBSYS_1F071028" = "lsi_sas"
"PCI\VEN_1000&DEV_0054&SUBSYS_1F081028" = "lsi_sas"
"PCI\VEN_1000&DEV_0054&SUBSYS_1F091028" = "lsi_sas"
"PCI\VEN_1000&DEV_0058&SUBSYS_1F0E1028" = "lsi_sas"
"PCI\VEN_1000&DEV_0058&SUBSYS_1F0F1028" = "lsi_sas"
"PCI\VEN_1000&DEV_0058&SUBSYS_1F101028" = "lsi_sas"
"PCI\VEN_1000&DEV_0058&SUBSYS_021D1028" = "lsi_sas"
"PCI\VEN_1028&DEV_0015&SUBSYS_1F011028" = "percsas"
"PCI\VEN_1028&DEV_0015&SUBSYS_1F021028" = "percsas"
"PCI\VEN_1028&DEV_0015&SUBSYS_1F031028" = "percsas"
"PCI\VEN_1000&DEV_0060&SUBSYS_1F0A1028" = "percsas"
"PCI\VEN_1000&DEV_0060&SUBSYS_1F0B1028" = "percsas"
"PCI\VEN_1000&DEV_0060&SUBSYS_1F0C1028" = "percsas"
"PCI\VEN_1000&DEV_0060&SUBSYS_1F0D1028" = "percsas"
"PCI\VEN_1000&DEV_0060&SUBSYS_1F111028" = "percsas"
提示
:不同
RAID
驱动程序的代码内容各不相同,应该根据具体情况灵活处理。
检查拷贝修改的内容是否与原有的内容重复,如果有,则把重复的一行删除。
4. 修改“[SCSI.load]”和“[SCSI]”
接着在
“txtsetup.sif”
文件查找
“[SCSI.load]”
和
“[SCSI]”
字段末尾添加如下内容:
[SCSI.load]
lsi_sas = lsi_sas.sys,4
(
等号前的字符根据驱动酌情更改,等号
lsi_sas
后代码一般照抄使用
)
具体操作如下:
cpqarry2 = cpqarry2.sys,4
symmpi = symmpi.sys,4
perc2 = perc2.sys,4
hpn = hpn.sys,4
cbidf2k = cbidf2k.sys,4
dac2w2k = dac2w2k.sys,4
dellcerc = dellcerc.sys,4
hpt3xx = hpt3xx.sys,4
cpqcissm = cpqcissm.sys,4
hpcisss = hpcisss.sys,4
afcnt = afcnt.sys,4
lsi_sas = lsi_sas.sys,4
percsas = percsas.sys,4
[BootBusExtenders.Load]
pci = pci.sys
acpi = acpi.sys
isapnp = isapnp.sys
acpiec = acpiec.sys
ohci1394 = ohci1394.sys
[SCSI]
末尾添加
lsi_sas = "Dell SAS 5x and SAS 6x Controller Driver (Windows Server 2003 32-bit)"
ql10wnt = "QLogic PCI SCSI Host Adapter"
ql1080 = "Qlogic QLA1080, 64 bit PCI LVD SCSI HBA"
ql1280 = "Qlogic QLA1280, 64 bit PCI LVD SCSI HBA"
ql12160 = "QLogic QLA12160, 64 bit PCI DUAL 160M SCSI HBA"
ql2100 = "QLogic QLA2000/QLA2100 PCI Fibre Channel Adapter"
ql2200 = "QLogic QLA2200 PCI Fibre Channel Adapter"
ql2300 = "QLogic QLA2300 PCI Fibre Channel Adapter"
sym_hi = "LSI Logic C896 PCI SCSI Host Adapter"
sym_u3 = "LSI Logic C1010 PCI SCSI Host Adapter"
symc810 = "LSI Logic C8100 PCI SCSI Host Adapter"
symc8xx = "LSI Logic C8xx PCI SCSI Host Adapter"
symmpi = "LSI Logic PCI Fibre Channel/LSI Logic PCI-X Ultra320 SCSI Host Adapter"
hpn = "Hewlett Packard NetRAID-4M RAID Controller"
perc2 = "Dell PERC 2/3 RAID Controller"
perc2gat = "Dell PERC 2/3 RAID Controller (Gatling)"
lsi_sas = "Dell SAS 5x and SAS 6x Controller Driver (Windows Server 2003 32-bit)"
percsas = "DELL PERC5 and PERC6/CERC6 RAID Controller Driver (Server 2003 32 bit)"
[BootBusExtenders]
pci = "PCI Bus Driver",files.pci,pci
acpi = "ACPI Plug & Play Bus Driver",files.acpi,acpi
isapnp = "ISA Plug & Play Bus Driver",files.isapnp,isapnp
acpiec = "ACPI Embedded Controller Driver",files.none,acpiec
ohci1394 = "IEEE 1394 Bus OHCI Compliant Port Driver",files.ohci1394,ohci1394
[
注意]
此信息是从驱动的
txtsetup.oem
文件(或
.INF
文件)
[SCSI]
字段中获取,如下图:
scsi = DELL_SAS_2K3
[scsi]
# This section lists the options available for a particular component.
#
# <id> is the unique string for the option
# <description> is a text string, presented to the user in a menu
# <key_name> gives the name of the key to be created for the component in
# HKEY_LOCAL_MACHINE\ControlSet001\Services
DELL_SAS_2K3 = "Dell SAS 5x and SAS 6x Controller Driver (Windows Server 2003 32-bit)",lsi_sas
[HardwareIds.scsi.DELL_SAS_2K3]
id = "PCI\VEN_1000&DEV_0054&SUBSYS_1F041028", "lsi_sas"
id = "PCI\VEN_1000&DEV_0054&SUBSYS_1F061028", "lsi_sas"
id = "PCI\VEN_1000&DEV_0054&SUBSYS_1F071028", "lsi_sas"
id = "PCI\VEN_1000&DEV_0054&SUBSYS_1F081028", "lsi_sas"
id = "PCI\VEN_1000&DEV_0054&SUBSYS_1F091028", "lsi_sas"
id = "PCI\VEN_1000&DEV_0058&SUBSYS_1F0E1028", "lsi_sas"
至此,我们就把自己的
RAID
驱动程序的相关信息添加到了
Windows 2003
安装信息文件
“txtsetup.sif”
中了!
上述添加自定义
RAID
信息内容的步骤看似很复杂,其实也就是同时打开
Windows 2003
安装文件目录中的
“txtsetup.sif”
文件和驱动程序目录中的
“.inf”
或
“.oem”
信息文件,然后将后者文件中相关字段下面的内容一一对应地移植到
“txtsetup.sif”
文件中。知道了方法,做起来就容易了!
--->后续