none
how to start/install the custom device driver in windows 7? RRS feed

  • Question

  • Hi,

    I just started learning about the device driver. Today i started developing a sample device driver using DDK and i tried to install it in my win 7 x64 using sc. Installation went fine but not able to start it.

    C:\Users\ing12403>sc create myDriver binpath= D:\DriverDeveloment\FirstDriver\objchk_win7_amd64\amd64\FirstDriver.sys type= kernel
    [SC] CreateService SUCCESS

    C:\Users\ing12403>sc start myDriver
    [SC] StartService FAILED 577:
    Windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source.

    is it any other way to test my sample driver ? so that i can learn and play around with it.

    Please Help 

    Monday, August 6, 2012 7:32 AM

Answers

  • Since you are working with 64-bit you need to test sign the driver, and on the test system use BCDedit to enable testsigning.  Look at http://msdn.microsoft.com/en-us/library/windows/hardware/ff553480(v=vs.85).aspx for a good start for the work needed.   You can also temporarily avoid the signing by using a 32-bit test sytem, or using F8 on every boot of the 64-bit test system to disable the checks.

    Note: that sc only works for legacy drivers, and with the signing it is easier to develop a plug and play driver.  If you are not doing it start with KMDF rather than WDM. 


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Monday, August 6, 2012 10:45 AM

All replies

  • Since you are working with 64-bit you need to test sign the driver, and on the test system use BCDedit to enable testsigning.  Look at http://msdn.microsoft.com/en-us/library/windows/hardware/ff553480(v=vs.85).aspx for a good start for the work needed.   You can also temporarily avoid the signing by using a 32-bit test sytem, or using F8 on every boot of the 64-bit test system to disable the checks.

    Note: that sc only works for legacy drivers, and with the signing it is easier to develop a plug and play driver.  If you are not doing it start with KMDF rather than WDM. 


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Monday, August 6, 2012 10:45 AM
  • Hi Don

      My driver is legacy driver install using service, without reboot how to install driver. Is WHQL sign is mandatory for my driver? he above same failure also happen to me.


    Ranjith


    • Edited by Avata_ Tuesday, November 12, 2013 11:49 AM
    Tuesday, November 12, 2013 11:49 AM
  • No not WHQL signed, but you do need a digital signature such as Verisign.  See http://msdn.microsoft.com/en-us/library/windows/hardware/ff544865(v=vs.85).aspx

      

    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Tuesday, November 12, 2013 11:59 AM
  • Dear Don 

        Yes My xxx.sys has been digital signed ( as Verisign),  but same failure happen. please help i am struggle in task last 2 weeks. but it works in test signing mode

     


    Ranjith


    • Edited by Avata_ Tuesday, November 12, 2013 12:07 PM wrong
    • Proposed as answer by DevGate Thursday, August 22, 2019 2:51 PM
    • Unproposed as answer by DevGate Thursday, August 22, 2019 2:51 PM
    Tuesday, November 12, 2013 12:05 PM
  • I'm dealing with the same problems.

    windows 8.1 win 10 build 1809 win build 1903 all..

    %50 , It's interesting that not all of them have the same problem.

    sc start xxx

    error code 577 

    xxx.sys Ev code signing certificate cros auth...

    this did not solve the problem.
    me

    https://partner.microsoft.com/en-us/dashboard/hardware/filesign

    Double certificated LSA 

    I added that. but the problem continues to become

    Thursday, August 22, 2019 2:59 PM