jarnning
驱动牛犊
驱动牛犊
  • 注册日期2003-07-14
  • 最后登录2005-07-20
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1964回复:4

有关周立功D12驱动源码的问题

楼主#
更多 发布于:2004-04-05 11:04
我拿驱动网上流行的2003-10-19_LqbD12drv去编译,生成SYS文件。

但是装载驱动的时候,发生错误,最后系统提示无法启动设备,错误码是10。 我的调试环境是XP, DDK  FOR XP。

我用DBGVIEW看了调试输出
据我观察时第125行那里,读取设备的interface配置时,没有成功。
我用周立功的驱动程序,启动这个设备没有问题,这说明底下固件
程序没有问题。

请教大虾,问题出在哪里??????

00000000 0.00000000 D12TEST.SYS: entering (D12) DriverEntry
00000001 0.00001732 D12TEST.SYS: exiting (D12) DriverEntry (0)
00000002 0.00064701 D12TEST.SYS: enter D12_PnPAddDevice
00000003 0.00230141 D12TEST.SYS:  ntStatus from IoCallDriver to PCI = 0x0
00000004 0.00231594 D12TEST.SYS:  >>>>>> DeviceCaps
00000005 0.00232516 D12TEST.SYS:  SystemWake = (2)
00000006 0.00233437 D12TEST.SYS:  DeviceWake = (D2)
00000007 0.00234555 D12TEST.SYS:  Device State Map: sysstate 0 = devstate 0x0
00000008 0.00235700 D12TEST.SYS:  Device State Map: sysstate 1 = devstate 0x1
00000009 0.00236790 D12TEST.SYS:  Device State Map: sysstate 2 = devstate 0x3
00000010 0.00237879 D12TEST.SYS:  Device State Map: sysstate 3 = devstate 0x4
00000011 0.00238969 D12TEST.SYS:  Device State Map: sysstate 4 = devstate 0x4
00000012 0.00240086 D12TEST.SYS:  Device State Map: sysstate 5 = devstate 0x4
00000013 0.00241176 D12TEST.SYS:  Device State Map: sysstate 6 = devstate 0x4
00000014 0.00242014 D12TEST.SYS:  '<<<<<<<<DeviceCaps
00000015 0.00243020 D12TEST.SYS: exit D12_PnPAddDevice (0)
00000016 0.00247182 D12TEST.SYS: IRP_MJ_PNP
00000017 0.00248160 D12TEST.SYS: PnP IOCTL not handled
00000018 0.00249250 D12TEST.SYS: Passing PnP Irp down, status = 0
00000019 0.00251512 D12TEST.SYS: Pending io count = 1
00000020 0.00252518 D12TEST.SYS: Exit D12_Dispatch 0
00000021 0.00254055 *** IopQueryLegacyBusInformation - Driver D12TEST returned STATUS_SUCCESS
00000022 0.00255144    for IRP_MN_QUERY_LEGACY_BUS_INFORMATION, and a NULL POINTER.
00000023 0.02307807 D12TEST.SYS: IRP_MJ_PNP
00000024 0.02309511 D12TEST.SYS: PnP IOCTL not handled
00000025 0.02310796 D12TEST.SYS: Passing PnP Irp down, status = 0
00000026 0.02322670 D12TEST.SYS: Pending io count = 1
00000027 0.02323759 D12TEST.SYS: Exit D12_Dispatch 0
00000028 0.02332363 D12TEST.SYS: IRP_MJ_PNP
00000029 0.02333397 D12TEST.SYS: PnP IOCTL not handled
00000030 0.02334347 D12TEST.SYS: Passing PnP Irp down, status = 0
00000031 0.02335939 D12TEST.SYS: Pending io count = 1
00000032 0.02336833 D12TEST.SYS: Exit D12_Dispatch 0
00000033 0.02354238 D12TEST.SYS: IRP_MJ_PNP
00000034 0.02355243 D12TEST.SYS: IRP_MN_START_DEVICE
00000035 0.06457161 D12TEST.SYS: enter D12_StartDevice
00000036 0.06458810 D12TEST.SYS: enter D12_ResetIrpQueue
00000037 0.06459843 D12TEST.SYS: enter D12_CallUSBD
00000038 0.06460793 D12TEST.SYS: calling USBD
00000039 0.06472359 D12TEST.SYS: return from IoCallDriver USBD 103
00000040 0.06473309 D12TEST.SYS: Wait for single object
00000041 0.06476214 D12TEST.SYS: IRP_MJ_SYSTEM_CONTROL
00000042 0.06477136 D12TEST.SYS: Passing SysCtrl Irp down
00000043 0.06478030 D12TEST.SYS: Pending io count = 2
00000044 0.06479874 D12TEST.SYS: Exit D12_Dispatch 0
00000045 0.07011869 D12TEST.SYS: Wait for single object, returned 0
00000046 0.07013741 D12TEST.SYS: URB status = 0 status = 0 irp status 0
00000047 0.07014635 D12TEST.SYS: exit D12_CallUSBD (0)
00000048 0.07015864 D12TEST.SYS: Device Descriptor = 810e84e0, len 12
00000049 0.07016730 D12TEST.SYS: D12 Device Descriptor:
00000050 0.07017596 D12TEST.SYS: -------------------------
00000051 0.07018434 D12TEST.SYS: bLength 18
00000052 0.07019272 D12TEST.SYS: bDescriptorType 0x1
00000053 0.07020082 D12TEST.SYS: bcdUSB 0x110
00000054 0.07020892 D12TEST.SYS: bDeviceClass 0xdc
00000055 0.07021730 D12TEST.SYS: bDeviceSubClass 0x0
00000056 0.07022541 D12TEST.SYS: bDeviceProtocol 0x0
00000057 0.07023462 D12TEST.SYS: bMaxPacketSize0 0x10
00000058 0.07024273 D12TEST.SYS: idVendor 0x471
00000059 0.07025111 D12TEST.SYS: idProduct 0x666
00000060 0.07025977 D12TEST.SYS: bcdDevice 0x100
00000061 0.07026787 D12TEST.SYS: iManufacturer 0x0
00000062 0.07027541 D12TEST.SYS: iProduct 0x0
00000063 0.07028351 D12TEST.SYS: iSerialNumber 0x0
00000064 0.07029217 D12TEST.SYS: bNumConfigurations 0x1
00000065 0.07030195 D12TEST.SYS: enter D12_ConfigureDevice
00000066 0.07031229 D12TEST.SYS: enter D12_CallUSBD
00000067 0.07032318 D12TEST.SYS: calling USBD
00000068 0.07042599 D12TEST.SYS: return from IoCallDriver USBD 103
00000069 0.07043521 D12TEST.SYS: Wait for single object
00000070 0.07810211 D12TEST.SYS: Wait for single object, returned 0
00000071 0.07812334 D12TEST.SYS: URB status = 0 status = 0 irp status 0
00000072 0.07813256 D12TEST.SYS: exit D12_CallUSBD (0)
00000073 0.07814485 D12TEST.SYS: Configuration Descriptor = ff860348, len 2e
00000074 0.07815546 D12TEST.SYS: enter D12_SelectInterface
00000075 0.07816831 D12TEST.SYS: enter D12_CallUSBD
00000076 0.07817949 D12TEST.SYS: calling USBD
00000077 0.17013643 D12TEST.SYS: return from IoCallDriver USBD 0
00000078 0.17015738 D12TEST.SYS: URB status = 0 status = 0 irp status 0
00000079 0.17016604 D12TEST.SYS: exit D12_CallUSBD (0)
00000080 0.17017554 D12TEST.SYS: ---------
00000081 0.17018448 D12TEST.SYS: NumberOfPipes 0x4
00000082 0.17019258 D12TEST.SYS: Length 0x60
00000083 0.17020068 D12TEST.SYS: Alt Setting 0x0
00000084 0.17020906 D12TEST.SYS: Interface Number 0x0
00000085 0.17022024 D12TEST.SYS: Class, subclass, protocol 0xdc 0xa0 0xb0
00000086 0.17022722 D12TEST.SYS: ---------
00000087 0.17023476 D12TEST.SYS: PipeType 0x3
00000088 0.17024342 D12TEST.SYS: EndpointAddress 0x81
00000089 0.17025292 D12TEST.SYS: MaxPacketSize 0x10
00000090 0.17026075 D12TEST.SYS: Interval 0x1
00000091 0.17026996 D12TEST.SYS: Handle 0xff304e54
00000092 0.17027946 D12TEST.SYS: MaximumTransferSize 0xffff
00000093 0.17028645 D12TEST.SYS: ---------
00000094 0.17029399 D12TEST.SYS: PipeType 0x3
00000095 0.17030209 D12TEST.SYS: EndpointAddress 0x1
00000096 0.17031047 D12TEST.SYS: MaxPacketSize 0x10
00000097 0.17031829 D12TEST.SYS: Interval 0x1
00000098 0.17032751 D12TEST.SYS: Handle 0xff304e74
00000099 0.17033673 D12TEST.SYS: MaximumTransferSize 0xffff
00000100 0.17034372 D12TEST.SYS: ---------
00000101 0.17035126 D12TEST.SYS: PipeType 0x2
00000102 0.17035992 D12TEST.SYS: EndpointAddress 0x82
00000103 0.17036830 D12TEST.SYS: MaxPacketSize 0x40
00000104 0.17037612 D12TEST.SYS: Interval 0xa
00000105 0.17038534 D12TEST.SYS: Handle 0xff304e94
00000106 0.17039456 D12TEST.SYS: MaximumTransferSize 0xffff
00000107 0.17040266 D12TEST.SYS: ---------
00000108 0.17041021 D12TEST.SYS: PipeType 0x2
00000109 0.17041915 D12TEST.SYS: EndpointAddress 0x2
00000110 0.17042836 D12TEST.SYS: MaxPacketSize 0x40
00000111 0.17043591 D12TEST.SYS: Interval 0xa
00000112 0.17044485 D12TEST.SYS: Handle 0xff304eb4
00000113 0.17045407 D12TEST.SYS: MaximumTransferSize 0xffff
00000114 0.17046133 D12TEST.SYS: ---------
00000115 0.17047222 D12TEST.SYS: enter D12_CallUSBD
00000116 0.17048312 D12TEST.SYS: calling USBD
00000117 0.17059626 D12TEST.SYS: return from IoCallDriver USBD 103
00000118 0.17060604 D12TEST.SYS: Wait for single object
00000119 0.17409252 D12TEST.SYS: Wait for single object, returned 0
00000120 0.17411012 D12TEST.SYS: URB status = 0 status = 0 irp status 0
00000121 0.17411850 D12TEST.SYS: exit D12_CallUSBD (0)
00000122 0.17412828 D12TEST.SYS: Configuration 1 (0)
00000123 0.17413833 D12TEST.SYS: enter D12_CallUSBD
00000124 0.17414727 D12TEST.SYS: calling USBD
00000125 0.17418331 D12TEST.SYS: return from IoCallDriver USBD c00000bb
00000126 0.17419840 D12TEST.SYS: URB status = c0000e00 status = 0 irp status c00000bb
00000127 0.17420845 D12TEST.SYS: exit D12_CallUSBD (c00000bb)
00000128 0.17421907 D12TEST.SYS: Interface 255 (c00000bb)
00000129 0.17423052 D12TEST.SYS: exit D12_SelectInterface (c00000bb)
00000130 0.17424337 D12TEST.SYS: exit D12_ConfigureDevice (c00000bb)
00000131 0.17425455 D12TEST.SYS: exit D12_StartDevice (c00000bb)
00000132 0.17426740 D12TEST.SYS: Pending io count = 1
00000133 0.17427802 D12TEST.SYS: Exit D12_Dispatch c00000bb
00000134 0.22261377 D12TEST.SYS: IRP_MJ_PNP
00000135 0.22263165 D12TEST.SYS: IRP_MN_REMOVE_DEVICE
00000136 0.22264338 D12TEST.SYS: Pending io count = 1
00000137 0.22611282 D12TEST.SYS: Pending io count = 0
00000138 0.22613097 D12TEST.SYS: enter D12_RemoveDevice
00000139 0.22636816 D12TEST.SYS: exit D12_RemoveDevice (0)
00000140 0.22638129 D12TEST.SYS: Detaching from FF7A5030
00000141 0.22639134 D12TEST.SYS: Deleting FE9F50A8
00000142 0.22641453 D12TEST.SYS: Exit D12_Dispatch 0
00000143 0.22651398 D12TEST.SYS: enter D12_Unload
00000144 0.22652320 D12TEST.SYS: exit D12_Unload


jarnning
驱动牛犊
驱动牛犊
  • 注册日期2003-07-14
  • 最后登录2005-07-20
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2004-04-05 14:01
谈点看法阿,说得可能也行啊!!!帮帮忙了!!!!
fspeed
驱动牛犊
驱动牛犊
  • 注册日期2001-07-19
  • 最后登录2005-02-21
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2004-04-05 21:45
我也是遇到了同样的问题没能解决。
zhaobeishengcoo
驱动牛犊
驱动牛犊
  • 注册日期2004-02-25
  • 最后登录2005-05-29
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2004-04-09 18:53
jarnning,能否给我2003-10-19_LqbD12drv源代码?

邮箱:zhaobeishengcool@sohu.com
jerry_yang
驱动牛犊
驱动牛犊
  • 注册日期2002-10-15
  • 最后登录2005-05-28
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2004-04-12 09:38
我也想要一份.
  yixianwei@hotmail.com
不胜感激!
智者当借力而行
游客

返回顶部