miniport installation error.

Hi All

I am new to driver writing.

With reference to the existing miniport samples in WDK, I am trying to write
a Virtual Storport Miniport.

I have written a basic driver of it.

I want to load it, hence I have written a .inf file for the same.

I am observing following error in setupapi.log while installing the driver.

#-166 Device install function: DIF_REGISTER_COINSTALLERS.
#I056 Coinstallers registered.
#-166 Device install function: DIF_INSTALLINTERFACES.
#-011 Installing section [DiskInstall.NT.Interfaces] from “c:\documents and
settings\administrator\desktop\mini.inf”.
#I054 Interfaces installed.
#-166 Device install function: DIF_INSTALLDEVICE.
#I123 Doing full install of “ROOT\SCSIADAPTER\0000”.
#W362 An unsigned, incorrectly signed, or Authenticode™ signed file
“c:\documents and settings\administrator\desktop\mini.inf” for driver
“StorPort Virtual Miniport” will be installed (Policy=Warn). Error
0xe000022f: The third-party INF does not contain digital signature
information.
#-035 Processing service Add/Delete section [DiskInstall.NT.Services].
#E275 Error while installing services. Error 0xe0000219: The installation
failed because a function driver was not specified for this device instance.
#E122 Device install failed. Error 0xe0000219: The installation failed
because a function driver was not specified for this device instance.
#E157 Default installer failed. Error 0xe0000219: The installation failed
because a function driver was not specified for this device instance.
#I060 Set selected driver.
#I125 Installing NULL driver for “ROOT\SCSIADAPTER\0000”.
#I121 Device install of “ROOT\SCSIADAPTER\0000” finished successfully.

Can any one please help with it?

Thanks a lot for your help.

contents of inf file

[Version]
Signature=“$Windows NT$”
Provider=%Intel%
ClassGUID={4D36E97B-E325-11CE-BFC1-08002BE10318}
Class=SCSIAdapter
DriverVer=04/10/2009,1.10.0000.0

;
; Source file information
;

[SourceDisksNames]
1 = %DiskId1%,“”

[SourceDisksFiles]
mini.sys = 1,

[DiskCopyfiles]
mini.sys

[ControlFlags]
;ExcludeFromSelect = *

[DestinationDirs]
DefaultDestDir = 12

;
; Driver information
;

[Manufacturer]
%Intel% = DiskDevice,NTamd64

[DiskDevice.NTamd64]
%DiskDevDesc% = DiskInstall, SCSIAdapter

[DiskInstall.NT]
CopyFiles = DiskCopyfiles
AddReg = mini_DriverAddReg

;
; General installation section
;

[DiskCopyfiles]
mini.sys,0x100

[mini_DriverAddReg]
HKR,Parameters,“DoThisTHING”,0x00010003,01

;
; Service Installation
;

[DiskInstall.NT.Services]
AddService = mini, %SPSVCINST_ASSOCSERVICE%, DiskServiceInst

[DiskServiceInst]
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType = %SERVICE_DEMAND_START%
ErrorControl = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\mini.sys
LoadOrderGroup = SCSI miniport

[Strings]
;
; Localizable Strings
;
diskId1 = “mini Installation Disk”
DiskDevDesc = “StorPort Virtual Miniport”
Intel = “Intel”

;
; Non-Localizable Strings
;

REG_EXPAND_SZ = 0x00020000
REG_DWORD = 0x00010001
SERVICE_KERNEL_DRIVER = 1
SERVICE_DEMAND_START = 3
SERVICE_ERROR_NORMAL = 1

Thanks,
Shekhar.

You need to specify a type of bus driver in your inf file. The example, which you used, has a reference to PCI bus driver and specific information for PCI device as Device&Vendor ID. You eliminate such information because your driver has something different than PCI.
What is you low edge interface?

Igor Sharovar

Hi

Could you please help with some of my queries,

As I am writing a virtual sotrport miniport,

1.what type of bus shall I specify in the inf
for the same reason I put the ‘*’ in ControlFlag section in inf.

  1. I assumed for the basic level all I/Os shall go on ram buffer.
    am I interpreting ‘low edge interface’ in right way ?
    Please correct me if I am wrong.

Thanks
Shekhar

On Mon, Sep 7, 2009 at 9:26 PM, <igor.sharovar> wrote:

> You need to specify a type of bus driver in your inf file. The example,
> which you used, has a reference to PCI bus driver and specific information
> for PCI device as Device&Vendor ID. You eliminate such information because
> your driver has something different than PCI.
> What is you low edge interface?
>
> Igor Sharovar
>
> —
> 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
></igor.sharovar>

I may regret this, but I am hoping your virtual Storport driver will never get on my system. You need a root enumerated driver since you have no hardware. This is driver 101 stuff.
“Shekhar Kulkarni” wrote in message news:xxxxx@ntdev…
Hi

Could you please help with some of my queries,

As I am writing a virtual sotrport miniport,

1.what type of bus shall I specify in the inf
for the same reason I put the ‘*’ in ControlFlag section in inf.

2. I assumed for the basic level all I/Os shall go on ram buffer.
am I interpreting ‘low edge interface’ in right way ?
Please correct me if I am wrong.

Thanks
Shekhar

On Mon, Sep 7, 2009 at 9:26 PM, <igor.sharovar> wrote:

You need to specify a type of bus driver in your inf file. The example, which you used, has a reference to PCI bus driver and specific information for PCI device as Device&Vendor ID. You eliminate such information because your driver has something different than PCI.
What is you low edge interface?

Igor Sharovar


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</igor.sharovar>

David Craig wrote:

I may regret this, but I am hoping your virtual Storport driver will
never get on my system. You need a root enumerated driver since you
have no hardware. This is driver 101 stuff.

David and I were both cranky this weekend.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

>David and I were both cranky this weekend.
Yep, the long weekend always bring some challenge :slight_smile:

1.what type of bus shall I specify in the inf for the same reason I put the ‘*’ in ControlFlag section in >inf. 2. I assumed for the basic level all I/Os shall go on ram buffer. am I interpreting ‘low edge >interface’ in right way ? Please correct me if I am wrong.
In general you need a bus driver. In WDK you could find a sample of bus driver. Toaster is a good example. You should also look the example of WinDDK.\src\network\ndis\netvmini which is Virtual Ethernet Adapter. *.inf file for this example contains a section which point out to a bus driver, used for this driver. You could use the same approach for you Virtual StorPort driver also.

Igor Sharovar

Hi Igor,
Thanks a lot for the right direction.

hardwareID need to be corrected.

for netvmin its “root\netvmini”

corrected the hardware id on the same line as netvmini, Things have moved
further.

Thanks a lot once again,

-Bharat.

On Wed, Sep 9, 2009 at 4:14 AM, <igor.sharovar> wrote:

> >David and I were both cranky this weekend.
> Yep, the long weekend always bring some challenge :slight_smile:
>
> >1.what type of bus shall I specify in the inf for the same reason I put
> the ‘*’ in ControlFlag section in >inf. 2. I assumed for the basic level all
> I/Os shall go on ram buffer. am I interpreting ‘low edge >interface’ in
> right way ? Please correct me if I am wrong.
> In general you need a bus driver. In WDK you could find a sample of bus
> driver. Toaster is a good example. You should also look the example of
> WinDDK.\src\network\ndis\netvmini which is Virtual Ethernet Adapter. *.inf
> file for this example contains a section which point out to a bus driver,
> used for this driver. You could use the same approach for you Virtual
> StorPort driver also.
>
> Igor Sharovar
>
>
>
> —
> 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
></igor.sharovar>

Yes, this example should help you. Unfortunately there is not example of Virtual StorPort driver. And there is not much documentation in WDK. But using sample of Virtual Ethernet mini-port driver could help you for sure. You need some knowledge of low-edge interface of Virtual mini port driver and from this sample you could get an idea how to use it.

Igor Sharovar

> Yes, this example should help you. Unfortunately there is not example

of Virtual StorPort driver. And there is not much documentation in WDK.
But using sample of Virtual Ethernet mini-port driver could help you
for sure. You need some knowledge of low-edge interface of Virtual mini
port driver and from this sample you could get an idea how to use it.

If you call and talk to MS support, there IS a virtual storport sample
driver they can send you.

Jan

The next issue of the NT Insider will begin a series on how to write a
virtual Storport driver. It should be out in a few weeks.

–Mark Cariddi
OSR, Open Systems Resources, Inc.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jan Bottorff
Sent: Wednesday, September 09, 2009 12:51 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] miniport installation error.

Yes, this example should help you. Unfortunately there is not example
of Virtual StorPort driver. And there is not much documentation in
WDK.
But using sample of Virtual Ethernet mini-port driver could help you
for sure. You need some knowledge of low-edge interface of Virtual
mini
port driver and from this sample you could get an idea how to use it.

If you call and talk to MS support, there IS a virtual storport sample
driver they can send you.

Jan


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

Thank a lot guys !

I would be waiting for the same.

On Wed, Sep 9, 2009 at 11:37 PM, Mark Cariddi wrote:

> The next issue of the NT Insider will begin a series on how to write a
> virtual Storport driver. It should be out in a few weeks.
>
> --Mark Cariddi
> OSR, Open Systems Resources, Inc.
>
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Jan Bottorff
> Sent: Wednesday, September 09, 2009 12:51 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] miniport installation error.
>
> > Yes, this example should help you. Unfortunately there is not example
> > of Virtual StorPort driver. And there is not much documentation in
> WDK.
> > But using sample of Virtual Ethernet mini-port driver could help you
> > for sure. You need some knowledge of low-edge interface of Virtual
> mini
> > port driver and from this sample you could get an idea how to use it.
>
> If you call and talk to MS support, there IS a virtual storport sample
> driver they can send you.
>
> Jan
>
>
>
> —
> 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
>
> —
> 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
>

>If you call and talk to MS support, there IS a virtual storport sample driver they can send you.
Could I use my regular MSDN subscription to get a sample of Virtual StorPort driver?

Igor Sharovar