[原创+整理]NVIDIA的官方制作集成SATA驱动程序教程(翻译+添加补充+个人实战)


最近我在制作我自己的XP SP2的安装光盘,搜寻了大量的RAIDSATA驱动,并研究了NVIDIA RAID的驱动文件,并且在官方的文件中获得了这个集成方法,介绍给大家(本人翻译,难免有错误,请大家指正,原文在下面,我只翻译了其驱动中部分,其余的可以不用看了,貌似太简单...)

这是NVIDIA官方列举的集成方法,我把它翻译过来并加以补充修改,该方法已经通过我的虚拟机测试以及真机测试(nFore 570 SLI)

本例以NVIDIA Raid驱动为例.

1.解压 NVIDIA nForce驱动(用参数解压‘-x’ )

2.在解压下来的驱动文件夹中…IDEWinXPsataraid文件夹中找到Raid驱动,把*.sys, *.dll, *.inf *.cat用makecab压缩成*.sy_, *.dl_, *.in_ *.ca_并且复制到winxp i386文件夹下。

3.编辑i386txtsetup.sif(用笔记本打开),用Ctrl+F找到[WinntDirectories]段落,在该段落的最后添加:

300 = nvidianvraid
意思是指向nvidianvraid,系统安装时会自动建立该文件夹。
继续用Ctrl+F找到[SourceDisksFiles]段落,在段落的最后添加:

nvraidco.dll = 1,,,,,,,300,0,0
nvraid.sys    = 1,,,,,,,300,0,0
nvraid.inf    = 1,,,,,,,300,0,0
nvraid.cat    = 1,,,,,,,300,0,0
NvAtaBus.sys = 1,,,,,,,300,0,0
idecoi.dll    = 1,,,,,,,300,0,0
NvAtaBus.sys = 100,,,,,,,4,0,0,,1,4
nvraid.sys    = 100,,,,,,,4,0,0,,1,4

意思是告诉安装程序请复制以上驱动文件到复制"%systemroot%nvidianvraid"并将其中两个.sys(nvraid.sys;NvAtaBus.sys)复制到"%systemroot%system32drivers"。
接下来就是为你的SATA和RAID控制器添加相应的驱动ID码,通过ID码告诉系统应该加载什么驱动
同样是编辑txtsetup.sif,用Ctrl+F找到 [HardwareIdsDatabase]段落,你可以从驱动文件nvraid.inf或者TXTSETUP.OEM中找到,(本例就nvraid.inf讲解)就在[NVIDIA]段落你应该会看到:
[NVIDIA]
%CK804SSS%=Crush11_Inst,PCIVEN_10DE&DEV_0055&CC_0104
%CK804SSS%=Crush11_Inst,PCIVEN_10DE&DEV_0054&CC_0104
%NVRAID_DESC%=nvraid,GenNvRaidDisk
%NVRAID_BUS_DESC%=nvraidbus,*_NVRAIDBUS
%NVRAID_BUS_DESC%=nvraidbus,*NVRAIDBUS

把他改成:

PCIVEN_10DE&DEV_0054 = "nvatabus"
PCIVEN_10DE&DEV_0055 = "nvatabus"
GenNvRaidDisk      = "nvraid"
*_NVRAIDBUS      = "nvraid"
*NVRAIDBUS        = "nvraid"
并且添加到txtsetup.sif的[HardwareIdsDatabase]段落的下面
注意:这是最难也是最重要的步骤!!不同驱动的ID码形式各不同,可以从驱动文件INF或者TXTSETUP.OEM(用文本打开)获得,但是添加到[HardwareIdsDatabase]下的格式必须一样,必须仔细修改!
接着同样修改txtsetup.sif,在[SCSI.Load]段落添加:
[SCSI.Load]
nvatabus = NvataBus.sys,4
nvraid = nvraid.sys,4
在[SCSI]段落添加:
[SCSI]
nvraid    = "NVIDIA RAID CLASS DRIVER"
nvatabus = "NVIDIA nForce SATA Controller"
最后一步就是修改i386文件夹下的hivesft.inf,添加一句:
HKLM,"SOFTWAREMicrosoftWindowsCurrentVersion","DevicePath",0x00020002,"%SystemRoot%inf";"%systemroot%nvidianvraid"
意思告诉系统驱动文件在哪里并加入注册信息
驱动集成完毕
封装系统成ISO,发布!
本方法可以应用到非NVIDIA 驱动,大家慢慢品尝.

[size=4]原文:
NVIDIA® MediaShield™

How to Build a Slipstream XP-SP2 CD

This section explains how to create a CD that will install XP-SP2 onto a bootable RAID array.

Create a slipstream CD that includes MediaShield RAID drivers using the following steps:

Initial Setup

There are several methods of setting up the directory structures. The following is one example, and is not meant to suggest that other methods are incorrect.

1.    Create the following 3 folders:

o    C:slipstreamXP

o    C:slipstreamXP-SP2

o    C:slipstreamXP-BootImage

You can use any directory names and structure you wish to create the slipstream. The names and structure used in this app note are for example only.

2.    Copy XP Gold CD contents into “XP” (make sure your Folder Options View tab has [Show hidden files and folders] radio button is selected and [Hide protected operating system files] is unchecked.)

3.    Download (NOT INSTALL) SP2 from Microsoft website into “XP-SP2” folder

4.    Extract SP2 to “XP-SP2” folder with following command:

WindowsXP-KB835935-SP2-ENU.exe –x

5.    Run SP2 on c:slipstreamXP with the following:

CslipstreamXP-SP2i386UpdateUpdate.exe -S:C:slipstreamXP

6.    Use IsoBuster or equivalent application to extract the bootable image file to c:slipstreamXP-BootImage.

Add NVIDIA Drivers

1.    Extract the NVIDIA driver files from the nForce package using ‘-x’ option.

2.    Copy all *.sys, *.dll, *.inf and *.cat files from “…IDEWinXPsataraid” to “c:slipstreamXPi386”.

3.    Edit “c:slipstreamXPi386txtsetup.sif” and add the following

1.    Under [WinntDirectories] section add:

300 = nvidianvraid

This will add a directory to hold the storage driver files.

2.    Directly under header [SourceDisksFiles] add the following lines:

nvraidco.dll = 1,,,,,,,300,0,0

nvraid.sys    = 1,,,,,,,300,0,0

nvraid.inf    = 1,,,,,,,300,0,0

nvraid.cat    = 1,,,,,,,300,0,0

NvAtaBus.sys = 1,,,,,,,300,0,0

idecoi.dll    = 1,,,,,,,300,0,0

NvAtaBus.sys = 100,,,,,,,4,0,0,,1,4

nvraid.sys    = 100,,,,,,,4,0,0,,1,4

This tells installer to copy all driver files to "%systemroot%nvidianvraid" and then the two .sys files to "%systemroot%system32drivers"

3.    Now add the device IDs for your SATA controller directly under the [HardwareIdsDatabase] section.

This will tell OS which drivers to load for SATA controllers on your platform.

You can get this information from the file nvraid.inf. Search for “[NVIDIA]” and you should see something like the following:

[NVIDIA]

%CK804SSS%=Crush11_Inst,PCIVEN_10DE&DEV_0055&CC_0104

%CK804SSS%=Crush11_Inst,PCIVEN_10DE&DEV_0054&CC_0104

%NVRAID_DESC%=nvraid,GenNvRaidDisk

%NVRAID_BUS_DESC%=nvraidbus,*_NVRAIDBUS

     %NVRAID_BUS_DESC%=nvraidbus,*NVRAIDBUS

You will require an entry for each of these lines in the following format:

[HardwareIdsDatabase]

PCIVEN_10DE&DEV_0054 = "nvatabus"

PCIVEN_10DE&DEV_0055 = "nvatabus"

GenNvRaidDisk      = "nvraid"

*_NVRAIDBUS      = "nvraid"

     *NVRAIDBUS        = "nvraid"

Note: Your platform will likely have different device IDs, so you should modify your entries accordingly.

4.    Add NVIDIA storage drivers to the SCSI preload section.

[SCSI.Load]

nvatabus = NvataBus.sys,4

nvraid = nvraid.sys,4

5.    Add the message that will get displayed during text setup driver load.

[SCSI]

nvraid    = "NVIDIA RAID CLASS DRIVER"

nvatabus = "NVIDIA nForce SATA Controller"

4.    Modify hivesft.inf to include the driver files location info into the DevicePath registry key.

This tells the GUI mode setup where to find the driver files. Since this example places them in "%systemroot%nvidianvraid", that is what we use here:

HKLM,"SOFTWAREMicrosoftWindowsCurrentVersion","DevicePath",0x00020002,"%SystemRoot%inf";"%systemroot%nvidianvraid"

Burning a CD

There are a number of tools that allow you to burn a bootable CD image. Here are some tips when using Nero.

·      Select CD-ROM [Boot] option

·      Select the Boot tab and

o    Set image to file in c:slipstreamXP-BootImage

o    Select “Enable expert settings”

o    Set Kind of Emulation to No Emulation

o    Set load segment to 07C0

o    Set number of loaded segments to 4 (Very important!)

·      Select ISO 9660 Volume label to

o    XP Professional enter WXPCCP_EN

o    XP Home enter WXHCCP_EN

o    XP Professional OEM enter WXPOEM_EN

o    XP Home OEM enter WXHOEM_EN

·      Select everything from c:slipstreamXP for burning onto CD

版权声明:
作者:xiaoniba
链接:https://blog.xiaoniba.com/2007/05/01/%e5%8e%9f%e5%88%9b%e6%95%b4%e7%90%86nvidia%e7%9a%84%e5%ae%98%e6%96%b9%e5%88%b6%e4%bd%9c%e9%9b%86%e6%88%90sata%e9%a9%b1%e5%8a%a8%e7%a8%8b%e5%ba%8f%e6%95%99%e7%a8%8b%e7%bf%bb%e8%af%91%e6%b7%bb/
来源:小泥吧的博客
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码

)">
< <上一篇
下一篇>>