我按移植说明的步骤做
1 把rt2870.dll 拷贝的 \RelDir\mini2440a_ARMV4I_Release 文件夹下,
2 添加 rt2870.bib文件内容到 platform.bib
3 添加 rt2870.reg文件内容到 platform.reg
生成镜像文件。nk.bin
下载到开发板后调试com口输出如下信息
RT2870:==> DllEntry
RT2870: DLL_PROCESS_ATTACH
Build Date: Apr 16 2009 Time: 17:16:04
Driver Version: 0x01040100 (DBG)
CPU=ARM
PageSize=4096
ProcessorLevel=4
ProcessorRevision=0000
RT2870:<== DllEntry
RT2870:==> USBDeviceAttach (0x3ace70, RT2870)
Deafult USB Interface=0x003acd30
RT2870: Device Class:0xffffffff
RT2870:==> ParseUsbDescriptors
USB_DEVICE_DESCRIPTOR:
----------------------
bLength: 0x12
bDescriptorType: 0x1
bcdUSB: 0x200
bDeviceClass: 0x0
bDeviceSubClass: 0x0
bDeviceProtocol: 0x0
bMaxPacketSize0: 0x40
idVendor: 5263=0x148f
idProduct: 12400=0x3070
bcdDevice: 0x101
iManufacturer: 0x1
iProduct: 0x2
iSerialNumber: 0x3
bNumConfigurations: 0x1
USB_CONFIGURATION_DESCRIPTOR:
-----------------------------
bLength: 0x9
bDescriptorType: 0x2
wTotalLength: 0x43
bNumInterfaces: 0x1
bConfigurationValue: 0x1
iConfiguration: 0x0
bmAttributes: 0x80
MaxPower: 0xe1
RT2870:==> LoadVIDFromRegistry
Load CustomizedControlFlag Failed, CtrlFlag(Default)=0
CustomizedControlFlag=0, Load Internal VID/PID
RT2870:<== LoadVIDFromRegistry
Total supported 107 USB devices.
Found a supported device(VID=0x148f, PID=0x3070).
USB Config Index=0
USB_INTERFACE_DESCRIPTOR[0]:
-------------------------
bLength: 0x9
bDescriptorType: 0x4
bInterfaceNumber: 0x0
bAlternateSetting: 0x0
bNumEndpoints: 0x7
bInterfaceClass: 0xff
bInterfaceSubClass: 0xff
bInterfaceProtocol: 0xff
iInterface: 0x5
RT2870:Found Usb interface=0x003acd30, idx=0
RT2870:<== ParseUsbDescriptors. Desired USB Interface=0x003acd30
RT2870:==> RTUSBCE_InterfaceStart
RT2870:==> RTUSBCE_ConfigureDevice
USB_ENDPOINT_DESCRIPTOR:
-----------------------------
bLength: 0x7
bDescriptorType: 0x5
bEndpointAddress: 0x81
bmAttributes: 0x2
wMaxPacketSize: 0x40
bInterval: 0x0
Open Bulk In Pipe...
BulkIn Index=129, MaxPacketSize=64
USB_ENDPOINT_DESCRIPTOR:
-----------------------------
bLength: 0x7
bDescriptorType: 0x5
bEndpointAddress: 0x1
bmAttributes: 0x2
wMaxPacketSize: 0x40
bInterval: 0x0
Open Bulk Out Pipe 0.
BulkOut Index=1, MaxPacketSize=64
USB_ENDPOINT_DESCRIPTOR:
-----------------------------
bLength: 0x7
bDescriptorType: 0x5
bEndpointAddress: 0x2
bmAttributes: 0x2
wMaxPacketSize: 0x40
bInterval: 0x0
Open Bulk Out Pipe 1.
BulkOut Index=2, MaxPacketSize=64
USB_ENDPOINT_DESCRIPTOR:
-----------------------------
bLength: 0x7
bDescriptorType: 0x5
bEndpointAddress: 0x3
bmAttributes: 0x2
wMaxPacketSize: 0x40
bInterval: 0x0
Open Bulk Out Pipe 2.
BulkOut Index=3, MaxPacketSize=64
USB_ENDPOINT_DESCRIPTOR:
-----------------------------
bLength: 0x7
bDescriptorType: 0x5
bEndpointAddress: 0x4
bmAttributes: 0x2
wMaxPacketSize: 0x40
bInterval: 0x0
Open Bulk Out Pipe 3.
BulkOut Index=4, MaxPacketSize=64
USB_ENDPOINT_DESCRIPTOR:
-----------------------------
bLength: 0x7
bDescriptorType: 0x5
bEndpointAddress: 0x5
bmAttributes: 0x2
wMaxPacketSize: 0x40
bInterval: 0x0
OpenPipe error:0
RT2870.DLL: Code Coverage Trap in: c:\wince5\wince_rt2870_1.4.1.0_v2\wince.c, Line: 682
RT2870 is configred in 7 pipes...FAIL
RT2870:<== RTUSBCE_ConfigureDevice
RTUSBCE_ConfigureDevice failed.
RT2870:==> RTUSBCE_RemoveDeviceContext: RT2870
Close Pipe handle=0x003ad8b0!
Close Pipe handle=0x003ad9d0!
Close Pipe handle=0x003adaf0!
Close Pipe handle=0x003adc10!
RT2870: RTUSBCE_ClosePipe -Invalid Parameter!
RT2870: RTUSBCE_ClosePipe -Invalid Parameter!
Close Pipe handle=0x003ad730!
RT2870:<== RTUSBCE_RemoveDeviceContext
RT2870: Unable to NdisRegisterAdapter [RT28701 Status=c0010006]
RT2870:<== USBDeviceAttach
RT2870:==> DllEntry
RT2870: DLL_PROCESS_DETACH
RT2870:<== DllEntry
而LCD屏幕上提示 未识别USB设备,请输入驱动名.