Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

127 lines
5.9 KiB

  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
  5. <meta name="ProgId" content="FrontPage.Editor.Document">
  6. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  7. <title>Installing the Driver</title>
  8. </head>
  9. <body>
  10. <p>Installing the Driver<br>
  11. ---------------------</p>
  12. <ol>
  13. <li>Make an 'OEM installation diskette' or equivalent installation source
  14. directory for Bulkusb.sys by copying Bulkusb.sys and Bulkusb.inf into it.The
  15. sample BulkUsb.Inf is in the DDK BulkUsb\Sys source directory. </li>
  16. <li>Make sure your device has been programmed with the device VID/PID in the
  17. Bulkusb.inf file. If not, edit the device VID, PID, and description text to
  18. match your test board/device.</li>
  19. <li>Depending on the operating system you are using:</li>
  20. </ol>
  21. <blockquote>
  22. <p>On Windows NT 5.0:</p>
  23. <blockquote>
  24. <p>When you plug in the device, the &quot;Found New Hardware Wizard&quot; dialog box
  25. will appear with the subheading &quot;Install Hardware Device Drivers&quot;. Hit the
  26. radio button labelled &quot;Search for a suitable driver for your device
  27. (Recommended)&quot; and then hit the &quot;Next&quot; button. The following screen has you
  28. specify your installation source floppy or directory. Do so, then hit the
  29. &quot;Next&quot; button. The next screen should indicate that Windows NT is ready to
  30. install the driver. Near the middle of the box, you should see the full
  31. source path to BulkUsb.Inf. Hit the &quot;Next&quot; button. You'll briefly see a
  32. &quot;copying Files&quot; message box, then once again the &quot;Found New Hardware Wizard&quot;
  33. box, now displaying the subheading, &quot;Hardware Install: The hardware
  34. installation is complete&quot;. Hit the &quot;Finish&quot; button. You should now have a
  35. copy of BulkUsb.Sys in your \System32\Drivers directory, a BulkUsb.Inf&nbsp;
  36. in your \Winnt\Inf directory, and a newly-created BulkUsb.Pnf file, which is
  37. a precompiled setup info file that NT creates. If the final &quot;Add New
  38. Hardware Wizard&quot; box indicates any error, or if the OS says you must reboot
  39. to finish installation of this device, something has gone wrong. Check your
  40. Inf file, Install directory, or driver code, follow the instructions in the
  41. below section on simulating a 'first-time' install, and start over.</p>
  42. </blockquote>
  43. <p>On Win98: </p>
  44. <blockquote>
  45. <p>Plug in the device. The &quot;Add New Hardware Wizard&quot; dialog box will appear,
  46. indicating that&nbsp; &quot;This wizard searches for new drivers for: [your
  47. deviceName as programmed into your board's hardware]. Hit the &quot;Next&quot; button.
  48. On the following screen, hit the radio button labelled &quot;Search for the best
  49. driver for your device (Recommended)&quot; . Hit the &quot;Next&quot; button. The next
  50. screen has you specify your installation source floppy or directory. Do so,
  51. then hit the &quot;Next&quot; button. The next screen should indicate that Windows is
  52. ready to install the driver. You should see the full source path to
  53. BulkUsb.Inf under the label: &quot;Location of Driver&quot;. Hit the &quot;Next&quot; button.
  54. You will see the &quot;Building Driver Information Database&quot; message box, then,
  55. if the installation and loading of the driver have succeeded, you will see
  56. the final wizard box saying &quot; Windows has finished installing the software
  57. that your new hardware device requires.&quot; Hit the &quot;Finish&quot; button. If the
  58. final &quot;Add New Hardware Wizard&quot; box indicates any error, or if the OS says
  59. you must reboot to finish installation of this device, something has gone
  60. wrong. Check your Inf file, Install directory, or driver code, follow the
  61. below instructions on simulating a 'first-time' install, and start over.</p>
  62. </blockquote>
  63. </blockquote>
  64. <p><br>
  65. Updating the Driver<br>
  66. -------------------</p>
  67. <p>To install a new version of your driver after a successful initial
  68. installation, simply replace the binary in \System32\Drivers. If the initial or
  69. last installation failed for any reason, follow the below instructions on
  70. simulating a 'first-time' install.</p>
  71. <p>Simulating a 'First-time' Install <br>
  72. -------------------------------</p>
  73. <p>If you want to test Inf file or installation program modifications, or if
  74. your first install failed for any reason and you need to do, in effect, a new
  75. 'first-time' driver installation without reinstalling a fresh Win98 or NT5, do
  76. the following:</p>
  77. <ol>
  78. <li>Delete BulkUsb.inf from the \Windows\Inf or \Winnt\Inf directory. On Winnt,
  79. also delete BulkUsb.PNF from the \Winnt\Inf directory.</li>
  80. <li>Delete BulkUsb.Sys from the \System32\Drivers directory.</li>
  81. <li>Using RegEdit on Win98, or RegEdt32 on NT5, purge the registry of the
  82. following driver information:</li>
  83. </ol>
  84. <p><br>
  85. For Windows 98: </p>
  86. <blockquote>
  87. <p>Delete the following registry key:<br>
  88. \LocalMachine\System\Enum\USB\[the key with your device ID/PID], <br>
  89. ( in the case of our sample as published, this would be:<br>
  90. \LocalMachine\System\Enum\USB\VID_045E&amp;PID_930A ) </p>
  91. </blockquote>
  92. <p><br>
  93. For Windows NT 5.0:</p>
  94. <blockquote>
  95. <p>Delete the following registry key:<br>
  96. \LocalMachine\System\CurrentControlSet\Enum\USB\[the key with your deviceId/PID]<br>
  97. On NT5, you must restart the system before reinstalling the driver; this is
  98. not neccesary on Win98.</p>
  99. </blockquote>
  100. <p><br>
  101. <br>
  102. BulkUsb.Inf is in the Sys subdirectory.</p>
  103. <p><br>
  104. It allows you to set registry overrides for:</p>
  105. <ol>
  106. <li>&quot;DebugLevel&quot; debug verbosity level, where 0 == no debug output, 1 ==
  107. default ,<br>
  108. higher == more verbose. </li>
  109. <li>&quot;MaximumTransferSize&quot; The 'chunk size' ( default 4k ) large IO requests
  110. are broken up into by the driver.</li>
  111. </ol>
  112. <p><br>
  113. <br>
  114. <br>
  115. <br>
  116. <br>
  117. <br>
  118. <br>
  119. <br>
  120. &nbsp;</p>
  121. </body>
  122. </html>