How to add USB after the image is built

M

Mike

Is it possible to add USB device drivers to an image that's already
built? Unfortunately, we already copied the image to all the devices,
and I'd rather not copy them again. I've tried adding a group of
files and setting some registry values, but still no luck when
plugging in a USB mouse. Thanks in advance for any help.

Files I've added:
To c:\windows\system32\drivers
usbccgp.sys
kbdhid.sys
mouhid.sys
hidusb.sys
usbd.sys
hidclass.sys
hidparse.sys
To c:\windows\inf
hidserv.inf
input.inf
To c:\windows\system32
hidserv.dll
hid.dll

Registry:
HKLM\System\CurrentControlSet\Parameters\WorkNicely
HKLM\System\CurrentControlSet\Service\mouhid\Parameters
TreatAbsoluteAsRelative
TreatAbsolutePointerAsAbsolute
UseOnlyMice
HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce rundll32.exe
hid.dll...
 
S

Slobodan Brcin \(eMVP\)

Hi Mike,

First make sure that your USB driver stack is working. If not you will have to add UHCI, EHCI, OHCI, HUB, etc related drivers (few
files actually).
For this you will not need to modify registry.

For hid devices you should see what dependencies are brought in by HID components that you need. And determine minimum of registry
and inf, sys, dll files.

After you copy all files to your device, use devcon to reenumerate all devices and to auto install drivers that are needed.

Regards,
Slobodan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top