Difference between revisions of "SDM850 windows driver signing tutorial"

From ESS-WIKI
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Description ==
+
== description ==
  
 
When we modify the and recompile a windows driver, the previous signature would be invalid.
 
When we modify the and recompile a windows driver, the previous signature would be invalid.
Line 15: Line 15:
 
[[File:SDM850 Windows Driver 02.png|RTENOTITLE]]
 
[[File:SDM850 Windows Driver 02.png|RTENOTITLE]]
  
== Reference ==
+
== driver signing ==
 +
 
 +
(1) create certification
 +
Makecert -r -pe -ss TestDriver TestDriver.cer
 +
 
 +
(2) add certification into system
 +
certmgr.exe -add TestDriver.cer -s -r localMachine root
 +
 
 +
(3) sign driver
 +
signtool sign /s TestDriver YourDriverNAme.sys
 +
signtool sign /s TestDriver YourDriverNAme.cat
 +
 
 +
== reference ==
  
 
[[File:SDM850 Win10 Setup and Building.pdf|SDM850 BSP Guide]]
 
[[File:SDM850 Win10 Setup and Building.pdf|SDM850 BSP Guide]]

Latest revision as of 09:13, 21 October 2019

description

When we modify the and recompile a windows driver, the previous signature would be invalid.

Driver is unavailable and the yellow exclamation mark is displayed on windows device manager.

Device staus would show that the windows cannot verify the digital signature.

RTENOTITLE

create catalog file

BSP use inf2cat to check .inf content structure and create YourDriverNAme.cat.

RTENOTITLE

driver signing

(1) create certification Makecert -r -pe -ss TestDriver TestDriver.cer

(2) add certification into system certmgr.exe -add TestDriver.cer -s -r localMachine root

(3) sign driver signtool sign /s TestDriver YourDriverNAme.sys signtool sign /s TestDriver YourDriverNAme.cat

reference

File:SDM850 Win10 Setup and Building.pdf

https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/makecert

https://steward-fu.github.io/website/driver/wdm/self_sign.htm