Windows PE で動作するドライバを開発していただくにあたり、ご参照いただける公開ドキュメントをこちらにまとめてご紹介をいたします。
これをご案内する背景として、上記を実現するために必要な公開情報はあるものの、Windows PE で動作するドライバを開発する、という目的で一元化してはおりませんため、それらをおまとめした今回のブログがお役に立てば幸いです。
ドライバの実装そのものに Windows PE のために特別必要な実装はございませんので、インストール方法とデバッグ方法について以下の通りご案内いたします。
ドライバのインストール方法
-
デバイス ドライバー (.inf ファイル) を追加する
WinPE イメージにデバイス ドライバーを追加するには、DISM /add-driver を使用します。
Dism /Add-Driver /Image:”C:\WinPE_amd64\mount” /Driver:”C:\SampleDriver\driver.inf”
1 つのコマンドを使用してイメージに複数のドライバーを追加できますが、ほとんどの場合、各ドライバー パッケージを個別に追加すると問題のトラブルシューティングが簡単になります。
ドライバーの詳細については、デバイス ドライバー (.inf ファイル) の追加 に関するページを参照してください。 使用可能なすべての DISM ドライバー サービス オプションを確認するには、DISM ドライバー サービスのコマンド ライン オプション に関するページを参照してください。 -
The Drvload tool adds out-of-box drivers to a booted Windows Preinstallation Environment (Windows PE) image. It takes one or more driver .inf files as inputs. To add a driver to an offline Windows PE image, use the Deployment Image Servicing and Management (DISM) tool. For more information, see Add and Remove Drivers to an Offline Windows Image.
If the driver .inf file requires a reboot, Windows PE will ignore the request. If the driver .sys file requires a reboot, then the driver cannot be added with Drvload. For more information, see Device Drivers and Deployment Overview and DISM Driver Servicing Command-Line Options.
Drivers added using the Drvload tool are marked as the preferred driver for that device. If you add an updated driver during Windows Setup, the driver that you added with Drvload takes precedence.
ドライバのデバッグ方法
WinPE: Debug Apps - Kernel-mode debugging
上記に関連して、以下のブログも作成しておりますので、ご参考になりましたら幸いです。
Windows PE で IOCTL サンプルを動作させる方法について
以上の内容がお役に立てば幸いです。
変更履歴
2020/08/11 created by Tsuda
※ 本記事は 「jpwdkblog について」 の留意事項に準じます。
※ 併せて 「ホームページ」 および 「記事一覧」 もご参照いただければ幸いです。