Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV

Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


Software device in Windows Hardware Lab Kit

lucasmgciclucasmgcic Member Posts: 4

I've been working in a software device driver, similar to the "echo" sample available at MS github (https://github.com/microsoft/Windows-driver-samples/tree/main/general/echo/kmdf/driver/AutoSync). The driver is working fine. However, it is currently using not properly signed, needing to use "test signatures" and turn off secure boot.

I'm trying to get driver signed and need to submit a request to MS, after running succesfully the tests in Windows Hardware Lab Kit (WHLK). As I was struggling with WHLK with my driver, I decided to try with the exact code of the github sample. However, the signature process behavior is the same....

When I install the driver in the machine running WHLK, WHLK lists my driver in the category "device manager".

Driver device list

Then, it enforces me to run 58 tests, including some related to hardware such as ARM stuff, as figure below shows. My driver is not able to pass through all those tests, failing 6 of them. I've already tried to update the WHLK filters. Besides that, running these 58 tests take a long time.

Tests

As the driver has no direct iteraction with a specific hardware device, I would like that my driver was listed in "software device" category. In this case, the tests are related to what my driver really does. Also, the amount of tests needed to run is reduced and take a reasonable time. I'd like to know what may I do to achieve that or if anyone know how this classification is done in WHLK. I've already tried to switch the class (and classguid) in INF file, but the result is always the same (my driver in the category "device manager").

Software device list

My current guess is that this behavior (always be considered as a "device manager" driver) is related to the way that I install the driver in the machine where WHLK runs. I'm using devcon to do that. Is it possible to achieve my driver as a "software device" using devcon ? Or, in this case, should I install my driver of another way ?

Appreciate any tips or comments.

Best regards

Comments

  • Tim_RobertsTim_Roberts Member - All Emails Posts: 14,832

    Which tests do you fail? As a rule, the generic tests are ones that you really want to pass.

    Tim Roberts, [email protected]
    Software Wizard Emeritus

  • Mark_RoddyMark_Roddy Member - All Emails Posts: 4,753

    Why do you need to WHQL a software only driver? If you don't really need the WHQL signing just get it attestation signed. If you really do need WHQL I would suggest running the minimum required tests using a hyper-v vm as the test system, as there will be a lot less random hardware on it with drivers that may interfere with getting a clean test run.

  • lucasmgciclucasmgcic Member Posts: 4

    Thanks for the responses.

    @Tim_Roberts, the driver passes the generic tests. I thought that all the tests should pass to MS get my driver signed.

    @Mark_Roddy, I was already using a hyper-v vm to run WHLK. I was able to get the driver signed through attestation signing. As you pointed, for a software driver, this may suffice. Thanks in advance.

  • layna33layna33 Member Posts: 1

    The inclusion of a software device in the Windows Hardware Lab Kit is instrumental for robust hardware testing. This versatile tool streamlines compatibility assessments, ensuring seamless integration with Windows environments. Its comprehensive features empower developers to optimize performance, contributing to the creation of reliable and efficient hardware solutions.

  • Mark_RoddyMark_Roddy Member - All Emails Posts: 4,753

    Oh look, a LLM-bot is necroposting.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Kernel Debugging 13-17 May 2024 Live, Online
Developing Minifilters 1-5 Apr 2024 Live, Online
Internals & Software Drivers 11-15 Mar 2024 Live, Online
Writing WDF Drivers 20-24 May 2024 Live, Online