본문 바로가기

잡것들

windows driver documentation

 

https://github.com/microsoft/Windows-driver-samples/tree/master/audio/sysvad

 

GitHub - microsoft/Windows-driver-samples: This repo contains driver samples prepared for use with Microsoft Visual Studio and t

This repo contains driver samples prepared for use with Microsoft Visual Studio and the Windows Driver Kit (WDK). It contains both Universal Windows Driver and desktop-only driver samples. - GitHub...

github.com

 

드라이버 설치 명령어

(Must check inf and other dll files are located on disk where OS installed not in USB)

cd C:\develop\Windows-driver-samples\audio\sysvad\x64\Release\package
./devcon.exe install ComponentizedAudioSample.inf Root\Sysvad_ComponentizedAudioSample

powershell (Run as administrator)

 

devcon log location

c:\windows\inf\setupapi.dev.log

 

 

Error like below appear when install to another computer (with untrusted certificate)

Error 0x800b0109: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.

 

Solution

1. On the client computer, click Start , click Run , type mmc , and then click OK .
2. On the File menu, click Add/Remove Snap-in .
3. In the Add/Remove Snap-in dialog box, click Add .
4. In the Available Standalone Snap-In dialog box, click Certificates , and then click Add .
5. In the Certificates snap-in dialog box, click Computer account , click Next , and then click Finish .
6. Click Close , and then click OK .
7. In the Console1 MMC snap-in, expand Certificates (Local Computer) , expand Trusted Root Certification Authorities , and then click Certificates .
8. Examine the certificates that appear in the details pane to determine whether a certificate from the certification authority is present.
9. If the appropriate certificate is not present in the Trusted Root Certification Authorities store, you must import a certificate for the appropriate certification authority.

 

import built certificate (e.g package.crt)

 

driver debug step by step (sysvad)

https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/debug-universal-drivers--kernel-mode-#connectto

 

Debug Drivers - Step-by-Step Lab (Sysvad Kernel Mode) - Windows drivers

This lab provides hands-on exercises that demonstrate how to debug the Sysvad audio kernel-mode device driver.

docs.microsoft.com

 

device remove (this command does not remove driver package)

./devcon.exe remove Root\sysvad_*

 

driver package remove with pnputil (need to check oem*.inf is related to your custom driver)

pnputil /delete-driver oem0.inf /uninstall

 

shell script for copying files needed to install custom driver

Set-Variable -Name "Projectpath" -Value "C:\develop\Windows-driver-samples\audio\sysvad\"
Set-Variable -Name "Copypath" -Value "D:\drivier\New folder\"
Set-Variable -Name "BuildMode" -Value "Release"
cp $Projectpath\APO\DelayAPO\x64\$BuildMode\DelayAPO.dll $Copypath
cp $Projectpath\APO\AecAPO\x64\$BuildMode\AecAPO.dll $Copypath
cp $Projectpath\APO\SwapAPO\x64\$BuildMode\SwapAPO.dll $Copypath
cp $Projectpath\APO\KWSAPO\x64\$BuildMode\KWSAPO.dll $Copypath
cp $Projectpath\KeywordDetectorAdapter\x64\$BuildMode\KeywordDetectorContosoAdapter.dll $Copypath
cp $Projectpath\x64\$BuildMode\package\sysvad.cat $Copypath
cp $Projectpath\x64\$BuildMode\package\tabletaudiosample.inf $Copypath
cp $Projectpath\x64\$BuildMode\package\TabletAudioSample.sys $Copypath
cp $Projectpath\TabletAudioSample\x64\\$BuildMode\TabletAudioSample.cer $Copypath

if ($BuildMode -eq "Debug") {
    cp $Projectpath\APO\DelayAPO\x64\$BuildMode\DelayAPO.pdb $Copypath
    cp $Projectpath\APO\AecAPO\x64\$BuildMode\AecAPO.pdb $Copypath
    cp $Projectpath\APO\SwapAPO\x64\$BuildMode\SwapAPO.pdb $Copypath
    cp $Projectpath\APO\KWSAPO\x64\$BuildMode\KWSAPO.pdb $Copypath
    cp $Projectpath\KeywordDetectorAdapter\x64\$BuildMode\KeywordDetectorContosoAdapter.pdb $Copypath
    cp $Projectpath\TabletAudioSample\x64\$BuildMode\TabletAudioSample.pdb $Copypath
}

드라이버 

https://github.com/lostindark/DriverStoreExplorer

 

GitHub - lostindark/DriverStoreExplorer: Driver Store Explorer [RAPR]

Driver Store Explorer [RAPR]. Contribute to lostindark/DriverStoreExplorer development by creating an account on GitHub.

github.com