2017-05-29 24 views
1

私はドライバ開発の初心者です。簡単に、ドライバをコンパイルし、Visual Studio 2015でF5キーを押してVMwareマシンでデバッグできる簡単なセットアップを簡単に取得したいと思います。私はこれをやろうとしましたが、私はGoogleがまったく私を助けてくれないという問題に遭遇しています。Visual Studioドライバのデプロイメントに失敗しました

私の基本的な設定は、シリアルポートをターゲットとし、Windows 10 x64をホストとするWindows 10 x64 VMWareマシンです。ターゲットはホスト上にあります。起動するには

、ここで私は私のドライバをデバッグしようとしたとき、私は、Visual Studioでwindbgのに入る完全なログです:それは限りC:\DriverTest\DriversNewにドライバファイルを置くようにやっている

Microsoft (R) Windows Debugger Version 10.0.15063.400 AMD64 
Copyright (c) Microsoft Corporation. All rights reserved. 

DESKTOP-AF13U59\Lupe (npipe WinIDE_01D2D83A52532800) connected at Mon May 29 00:13:35 2017 

Microsoft (R) Windows Debugger Version 10.0.15063.400 AMD64 
Copyright (c) Microsoft Corporation. All rights reserved. 

Opened \\.\pipe\com_1 
Waiting to reconnect... 
[00:13:36:302]: Remove Existing Remote Package 
[00:13:37:137]: Task "Remove Existing Remote Package" completed successfully 
[00:13:37:143]: Copy Driver Package 
[00:13:40:517]: Task "Copy Driver Package" completed successfully 
[00:13:40:532]: Driver Removal 
[00:13:40:532]: Removing any existing files from test execution folder. 
[00:13:41:367]: Copying required files for "Driver Removal". 

$KitRoot$\Testing\Runtimes\TAEF\te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_DriverRemoval'" /p:"InfFile=auxkdb.inf" /p:"ImportDriver=1" /p:"RemoveDriver=1" /p:"CertificateFile=auxkdb.cer" /p:"PackageGuid=x64" /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Run\Driver_Removal_00014.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated 




Error message: Unable to start process 
[00:13:50:909]: Driver Preparation 
[00:13:50:910]: Removing any existing files from test execution folder. 
[00:13:51:745]: Copying required files for "Driver Preparation". 

$KitRoot$\Testing\Runtimes\TAEF\te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_DriverPreparation'" /p:"InfFile=auxkdb.inf" /p:"ImportDriver=1" /p:"RemoveDriver=1" /p:"CertificateFile=auxkdb.cer" /p:"PackageGuid=x64" /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Run\Driver_Preparation_00014.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated 




Error message: Unable to start process 
[00:14:01:351]: Default Driver Package Installation Task 
[00:14:01:351]: Removing any existing files from test execution folder. 
[00:14:02:185]: Copying required files for "Default Driver Package Installation Task". 

$KitRoot$\Testing\Runtimes\TAEF\te.exe "%SystemDrive%\DriverTest\Run\DefaultDriverPackageInstallationTask.dll" /select:"@Name='Microsoft.DriverKit.DefaultDriverPackageInstallationClass.PerformDefaultDriverPackageInstallation'" /p:"AbsoluteDriverPackagePath=%SystemDrive%\DriverTest\Drivers\auxkdb.inf" /p:"DQ=%SystemDrive%\DriverTest\Drivers\auxkdb.inf" /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Run\Default_Driver_Package_Installation_Task_00012.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated 




Error message: Unable to start process 
[00:14:11:710]: Driver Post Install Actions 
[00:14:11:711]: Removing any existing files from test execution folder. 
[00:14:12:545]: Copying required files for "Driver Post Install Actions". 

$KitRoot$\Testing\Runtimes\TAEF\te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_DriverPostInstall'" /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Run\Driver_Post_Install_Actions_00014.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated 




Error message: Unable to start process 

が、ドライバを起動しません。

その他の基本情報:

  • ファイアウォールは、私が同じポートでVMをデバッグするためのWinDbgを使用することができますホスト
  • 上の名前でVMをpingすることができ、両方のホスト上でオフになっていると
  • をターゲット
  • Visual Studioで
  • マシン、すべてが働いていると考えているようだので、私は、少なくとも

、「ドライバーのテストのために設定された」と言います何を提供するのか分からないが、the only other occurrence of the problem I could findは自己回答であり、Visual Studio、Windows SDK、WDKを再インストールすることで問題は解決したという。私はこれらすべてのことを行い、Windows 7 x64のターゲットも試しましたが、問題は残ります。また、WDKRemoteUserを作成してログインしますが、その後は(一見)何も表示されません。

VS、SDK、WDKのすべてのリンクをthis pageから使用しましたので、バージョンの不一致とは思えません。ターゲットにホストからC:\Program Files (x86)\Windows Kits\10\Remote\x64\WDK Test Target Setup x64-x64_en-us.msiをインストールしました。

アイデア?

答えて

0

私はそれがどこから来たのか分かりました:p VSがデバッグを開始すると、私はまた、非常に高速である3または4のcmdが得られます。 私はそれをスクリーンショットすることができます:http://imgur.com/a/Lw5Pe。 (seconde画像)

"それはTe.serviceがホストプロセスを起動するために必要とされていると言う、それがすでにインストールされている場合、それを再起動してください。" => Googleの "Te.Serviceの再起動" =>https://docs.microsoft.com/en-us/windows-hardware/drivers/taef/te-service

ので:

  1. 私はCに行ってきました:「Wex.Services.exeは/インストール:実行が
  2. 管理者として新しいCMDを開設
  3. テスト\ランタイム\ TAEF \ 10 \ \プログラムファイル(x86の)\ Windowsのキット:Te.Service " 私は" WA RNING:関連するバイナリが削除されているか、「C:¥Program Files(x86)¥Windows Kits¥10¥Testing¥Runtimes¥TAEF¥Wex.Services」にアクセスできなくなったため、Te.Serviceインストールで以前のTe.Serviceインストールが削除されています。 。EXE"。 Te.Serviceをインストールする[成功] "YEAAH:p
  4. そして、" sc start Te。サービス」私は再び同じエラーを取得できませんでした。その後

しかし、私は別のエラーが発生しました 『ユーザーが管理者』 http://imgur.com/a/Lw5Pe(最初の画像)

ではありませんので、ユーザーのトークンを昇格することができません。

VSフォース私はそう管理者権限を持っていなかった、それはその前に作成した別のユーザーに切り替える だから私は管理者LOCALGROUPにそれを追加します。 フランス語で を「ネットLOCALGROUP管理者WDKRemoteUser追加/」: " net localgroup administrateurs WDKRemoteUser/add "

カーネルドライバのデベロップメントは初めてですか?多分私たちはこのテーマに関して未来のお互いを助けることができました:)

私はそれがあなたを助けてくれることを願っています!

関連する問題