Tech Support > Microsoft Windows > Drivers > Question about OEM and INF file (Window XP)
Question about OEM and INF file (Window XP)
Posted by Charles on June 21st, 2005


I have written an Scsi driver and installation OEM and INF files
for my Scsi adapter. Of course, it is an unsigned driver.

During installing the WinXP, I pressed the 'F6' and 'S'
when I saw "Press F6 if you need to install a third .."
and "S=Specify Additional Device" messages.

The Windows was installed successfully, except that it
would detect my Scsi adapter as two controllers

The Device Manager shows:
-SCSI and RAID controllers
--SCSI/RAID Host Controller
(device PNP ID:ROOT\ABC\000)
-Other Device
--SCSI Controller
(with a yellow exclamation point,
device PNP ID:PCI\VEN_144D&DEV_A510&SUBSYS_A510144D&REV_01... )

the Registry Key:
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\A BC
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\A BC\Enum

I update the device driver for "Other Device"->"SCSI Controller"
and reboot. The Device Manager shows:
-SCSI and RAID controllers
--ABC SCSI Adapter
(device PNP ID:PCI\VEN_144D&DEV_A510&SUBSYS_A510144D&REV_01... )
--SCSI/RAID Host Controller
(device PNP ID:ROOT\ABC\000, with a yellow exclamation point)
Then I uninstall SCSI/RAID Host Controller, the Windows works well.

the Registry Key:
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\A BC
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\A BC\Enum
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\A BC\Parameters\PnpInterface

Cound someone help me what's wrong in my OEM or INF file?
Thanks in advance.

================================================== =======================
#TxtSetup.OEM
[Disks]
d1 = "AAA Driver",\disk1,\winxp

[Defaults]
scsi = WXP

[scsi]
WXP = "AAA (WinXP)", ABC

[Files.scsi.WXP]
driver = d1, ABC.sys, ABC
inf = d1, ABC.inf, ABC

[Config.scsi.WXP]
value = "", Tag, REG_DWORD, 1
value = "Parameters\PnpInterface", 5, REG_DWORD, 1

================================================== =======================
;ABC.inf
[Version]
Signature = "$Windows NT$"
Class=SCSIAdapter
ClassGUID={4D36E97B-E325-11CE-BFC1-08002BE10318}
Provider=%ABC%
DriverVer=06/15/2005,1.3.0.0

[DestinationDirs]
DefaultDestDir = 12

[SourceDisksNames]
0=%FLOPPY_DESCRIPTION%,,,

[SourceDisksFiles]
ABC.sys=0,,,,,,,,

[Manufacturer]
%ABC%=ABC

;DeviceId:A510, VendorId:144D, SubSystemID:A510, SubSystemVendorId:144D
[ABC]
%ABC_Desc%=ABC_Inst,PCI\VEN_144D&DEV_A510&SUBSYS_A 510144D

[ABC_Inst.nt]
CopyFiles=@ABC.sys

[ABC_Inst.nt.Services]
AddService = ABC,0x00000002,ABC_Service_Instx86, ABC_EventLog_Inst

[ABC_Service_Instx86]
ServiceType = 1 ; %SERVICE_KERNEL_DRIVER%
StartType = 0 ; %SERVICE_BOOT_START%
ErrorControl = 1 ; %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\ABC.sys
LoadOrderGroup = SCSI Miniport
AddReg = pnpsafe_pci_addreg

[ABC_EventLog_Inst]
AddReg = ABC_EventLog_Inst.AddReg

[ABC_EventLog_Inst.AddReg]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\S ystem32\IoLogMsg.dll"
HKR,,TypesSupported,0x00010001,7

[pnpsafe_pci_addreg]
HKR, "Parameters\PnpInterface", "5", 0x00010001, 0x00000001

[Strings]
ABC= "ABC"
FLOPPY_DESCRIPTION= "Windows Driver"
ABC_Desc= "ABC SCSI Adapter"


Posted by fat_boy on June 21st, 2005


Hi

Have you tried chkinf from the ddk? It will indicate any problems in
an inf file.
BTW You need a perl interpreter and chkinf in the path.

ATB

Posted by Don Burn on June 21st, 2005


Charles,

You have several things wrong with the txtsetup.oem. The hardware
section [scsi] only has one value after the equals, the files section should
only have the driver tag ABC on the driver entry. The config section should
have the driver tag ABC not the WXP as part of this.

As the other poster suggested, you should run chkinf on your inf file
and be sure it is clean. Take a look at my article on debugging driver
instataltion at windows setup at http://www.osronline.com/article.cfm?id=264


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply




"Charles" <charles_lin@dummy.jadecom.com.tw> wrote in message
news:e0z2kyidFHA.2076@TK2MSFTNGP15.phx.gbl...


Posted by Charles on June 23rd, 2005


Hi Don,

I revised my txtsetup and INF files and reinstall.
This time the OS won't boot. The windbg showed that the OS could not
found any device driver for the boot device.
I checked the setupapi.log and it showed that the system searching failed
to load any compatible device driver for the device.

After revised and reinstallation many times, I doubt the problem might be
caused by the OS. The CD I used supports automating installation.
I used another XP CD-ROM without automating installation, the driver
was installed correctly. I think the original CD-ROM might be
misconfiguration
such that it won't search the INF files not belonging to the Windows\inf
directory.

Thank you very much for your answering.

Charles

"Don Burn" <burn@stopspam.acm.org> ¦b¶l¥ó news:NAUte.7489$uS2.7245@fe03.lga
¤¤¼¶¼g...



Similar Posts