https://github.com/microsoft/Windows-driver-samples/tree/master/audio/sysvad
드라이버 설치 명령어
(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)
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
'잡것들' 카테고리의 다른 글
Onnx 시각화 프로그램 netron (0) | 2022.03.19 |
---|---|
VSCode python auto lint, black format, organize import (0) | 2022.03.14 |
FlexASIO Driver 빌드&설치법 (0) | 2021.10.20 |
Visual Studio CMake 환경 구성하기 (0) | 2021.10.20 |
USB Streamer firmware 변경하는 법 (0) | 2021.10.01 |