我就是想把别的BSP下的usb function的驱动直接拿到我的bsp下用
但现在不知道执行的! 看到他的sources里面链接了ufnmdd.lib \和ufnmddbase.lib
就想知道ufnmdd.lib怎么生成的!
这个usb function是samsung官网的! 我想直接拿过来用,应该可以的但是不行! 郁闷!
这个是原来的注册表设置项:
- IF BSP_NOUSBSER !
- [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\USB]
- "Dll"="sc2440_usb_ser.Dll"
- "IoBase"=dword:B1200000
- "Irq"=dword:B
- "IoLen"=dword:130
- "Tsp"="Unimodem.dll"
- "DeviceArrayIndex"=dword:0
- "Prefix"="COM"
- "Order"=dword:2
- "DeviceType"=dword:0
- "FriendlyName"="SC2440 USB Cable:"
- ; Eliminate flow control bit
- "DevConfig"=hex: 10,00,00,00,05,00,00,00,00,01,00,00,00,4B,00,00,00,00,08,00,00,00,00,00,00
- [HKEY_LOCAL_MACHINE\Comm\USB\Linkage]
- "Bind"=multi_sz:"SC2440USB1"
-
- [HKEY_LOCAL_MACHINE\Comm\SC2440USB]
- "DisplayName"="SC2440 USB Driver"
- "Group"="Serial"
- "ImagePath"="sc2440_usb_ser.dll"
- [HKEY_LOCAL_MACHINE\Comm\SC2440USB\Linkage]
- "Route"=multi_sz:"SC2440USB1"
- [HKEY_LOCAL_MACHINE\Comm\SC2440USB1\Parms]
- ENDIF BSP_NOUSBSER !
这个是新的设置项:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SC2440USBFN]
"Dll"="sc2440usbfn.dll"
"Prefix"="UFN"
"Priority256"=dword:64
"IoBase"=dword:B1200000
"IoLen"=dword:1000 ; Use one page
"Irq"=dword:19
"Order"=dword:2
"BusIoctl"=dword:2a0048
"IClass"=multi_sz:"{E2BDC372-598F-4619-BC50-54B3F7848D35}=%b","{6F40791D-300E-44E4-BC38-E0E63CA8375C}=%b"
不知道怎么配置了才可以让他执行! 新的driver可以实现 class 和mass storage功能,原来的只能是class 功能! 有做过的吗?