2012年6月22日星期五

How to make usb host driver work in Vista64

OEM may find load the usb host driver in Vista64 failed, this is because for Vista 64, driver signature is mandatory.

In development phase, we can use a test signature and load driver in vista test mode.

To run Vista in test mode:

1}. Start--->All Programs--->Accessories--->Right Hit "Command Prompt"--->Run as administrator

2). Input this command "Bcdedit �set testsigning ON"

3)Restart Vista, then vista run in test mode


To make a test signature for the driver

1. open certmgr.exe, and remove all the cert for USBHostDriver in root and trustedpublisher you already installed.
2. makecert -r -pe -ss trustedpublisher -n CN=USBHostDriver(Test002) qcusbtest.cer
you get a qcusbtest.cer
3.Certmgr.exe -add qcusbtest.cer -s -r localMachine root
4.Certmgr.exe -add qcusbtest.cer -s -r localMachine trustedpublisher
5. makecat qcusbnet.cdf to get qcusbcer.cat
6.SignTool sign /v /s trustedpublisher /n USBHostDriver(Test002) /t http://timestamp.verisign.com/scripts/timstamp.dll qcusbnet.cat
Now you get a signed cat file, you can verify it with signtool.
7. entry Vista test mode, reboot and install the driver.


For more details, please refer to Windows WDK document

没有评论:

发表评论