Showing posts with label kernel. Show all posts
Showing posts with label kernel. Show all posts

Thursday, June 13, 2019

Sc create, devcon install Difference

In Window Driver, There are the pnp(plug-and-play) type drivers, and the non-pnp type drivers. When non-pnp type drivers have once installed, they would be supposed to be used continuously without uninstall. On the other hand, pnp drivers are namely for easy plug-in(out). For two different types of driver, two-ways of installing exists.

1. PNP Driver

sc create [service name] binpath=[c:\...] type=[kernel]

sc start [service name]

sc stop [service name]

Because sc command is used for creating wide-range window-services, this is Not used only for the device driver. But this is also useful for the device driver.

2. Non PNP Driver

devcon install [filename.inf] [hardware id]

Saturday, June 8, 2019

When Devcon install command failed on VM

I was missing two basic points for installing driver on virtualbox because I never experienced developing driver before.

1. Test-certificate driver could only be installed after recovery boot. ( on 32bit window it could be simple, see this )

Settings -> Update & Security -> Recovery tab -> Restart now -> Trouble Shoot ->
Advanced Options -> Startup Settings -> Restart -> F7

hardware id location in inf file

Red-marked place should be replaced with real hardware id. it can be checked in device manager.

[osx command] file or folder monitoring

1. command fswatch [file or folder to monitor] | xargs -I {} echo $(date) {} >> [log file name] ...