I want to update my INF so that my storport driver is no longer listed as a boot driver.
This should make it easier to debug driver problems.
I tried changing to SERVICE_DEMAND_START but Windows won’t load the driver.
Is there a list of storport starttype values available somewhere?
I tried searching at MSDN but could not find much that was relevant to storport drivers.
Here is the relevant section of my INF:
; Service Install Section
[Driver_Service_Inst]
ServiceType = %SERVICE_KERNEL_DRIVER%
;Don’t use SERVICE_BOOT_START because it causes problems during debugging
StartType = %SERVICE_BOOT_START%
ErrorControl = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\PMC80XX.SYS
LoadOrderGroup = SCSI Miniport
What do you mean by 'windows won’t load my driver"? Is this an install time
error?
Mark Roddy
On Mon, Jun 28, 2010 at 4:28 PM, wrote:
> I want to update my INF so that my storport driver is no longer listed as a
> boot driver.
> This should make it easier to debug driver problems.
>
> I tried changing to SERVICE_DEMAND_START but Windows won’t load the driver.
> Is there a list of storport starttype values available somewhere?
> I tried searching at MSDN but could not find much that was relevant to
> storport drivers.
>
> Here is the relevant section of my INF:
>
> ; Service Install Section
> [Driver_Service_Inst]
>
> ServiceType = %SERVICE_KERNEL_DRIVER%
>
> ;Don’t use SERVICE_BOOT_START because it causes problems during debugging
> StartType = %SERVICE_BOOT_START%
> ErrorControl = %SERVICE_ERROR_NORMAL%
> ServiceBinary = %12%\PMC80XX.SYS
> LoadOrderGroup = SCSI Miniport
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
Windows rejected the new StartType during installation.
I want to use a setting that is not locked into booting the system. My HBA is not booting the system and I have seen driver problems that required a fresh install.
So install is pretty stupid with respect to service entries, so my guess is
that you have an inf file syntax error instead. You did define the
SERVICE_DEMAND_START string someplace in your inf file, right?
I’m pretty sure storport is fine with demand start.
Mark Roddy
On Mon, Jun 28, 2010 at 5:45 PM, wrote:
> Windows rejected the new StartType during installation.
>
> I want to use a setting that is not locked into booting the system. My HBA
> is not booting the system and I have seen driver problems that required a
> fresh install.
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
Doh!!
The installation works fine now.
inf files suck.
but checkinf is always worth tossing at them.
Mark Roddy
On Tue, Jun 29, 2010 at 1:06 PM, wrote:
> Doh!!
>
> The installation works fine now.
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> I tried changing to SERVICE_DEMAND_START
I think PnP drivers can only be boot-start and non-boot-start, the rest of the SERVICE_xxx_START are ignored (well, “disabled” works too).
PnP driver is always started if the device related to it is discovered. If it is boot start - then it will be started very early in the boot process, being loaded to memory by the boot loader.
If it is system/automatic/manual start - then it is loaded and started later, after the SystemRoot volume is mounted. It will be loaded using the usual MmLoadSystemImage.
If it is disabled - then the devnode start fails.
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com