ms-iot / iot-adk-addonkit

Contains command line scripts for package creation and image creation process and samples for iot products
Other
219 stars 209 forks source link

Retail Image Installation : Black Screen #322

Open Perosperos opened 5 years ago

Perosperos commented 5 years ago

Hello,

i am currently try to create a retail image, but all results in an short boot up with Windows logo and then a black screen appears.

I try to write down all the steps i did:

1. We bought a kernel mode signing certificate. Certificate: Issuer: thawte SHA256 Code Signing CA - G2 Subject: Company Thumbprint: 030375f518e4f6801419f93bc0ef559fa3d67019

The cross certificate i downloaded from Link Cross Certificate: Issuer: Microsoft Code Verification Root Subject: thawte Primary Root CA - G3 Thumbprint: ba57ca5e78dd2d1d7476aebee9953e396fd05546

Both certificate were exported to certificate manager (MMC)

2. i downloaded the newest version of iot-adk-addonkit-master, unpack it and then start editing:

I edit IoTWorkspace.xml found on ./iot-adk-addonkit-master\Workspace\IoTWorkspace.xml with:

/s my /sha1 "030375f518e4f6801419f93bc0ef559fa3d67019" /fd SHA256

Cross Certificate copied in: .\iot-adk-addonkit-master\Workspace\Certs\thawte Primary Root CA.cer

I opened .\iot-adk-addonkit-master\IoTCorePShell.cmd and typed in:

Set-IoTRetailSign On New-IoTCabPackage All

Redo-IoTCabSignature .\iot-adk-addonkit-master\Workspace\Build\arm\pkgs C:\Users\Company\Desktop\Test\cabs xcopy C:\Users\Company\Desktop\Test\cabs*.cab C:\Users\Company\Desktop\Test\iot-adk-addonkit-master\Workspace\Build\arm\pkgs*.cab

sign.cmd C:\Users\Company\Desktop\Test\RPi_BSP\Rpi2\Packages\RPi.Drivers*.dll signtool.exe sign /v /s my /sha1 "030375f518e4f6801419f93bc0ef559fa3d67019" /fd SHA256 /t http://timestamp.verisign.com/scripts/timestamp.dll "C:\Users\Company\Desktop\Test\RPi_BSP\Rpi2\Packages\RPi.Drivers*.dll" The following certificate was selected: Issued to: Company Issued by: thawte SHA256 Code Signing CA - G2 Expires: Thu May 14 01:59:59 2020 SHA1 hash: 030375F518E4F6801419F93BC0EF559FA3D67019

Done Adding Additional Store Successfully signed: C:\Users\Company\Desktop\Test\RPi_BSP\Rpi2\Packages\RPi.Drivers\vchiq_arm_kern.dll Successfully signed: C:\Users\Company\Desktop\Test\RPi_BSP\Rpi2\Packages\RPi.Drivers\vcos_win32_kern.dll

sign.cmd C:\Users\Company\Desktop\Test\RPi_BSP\Rpi2\Packages\RPi.Drivers*.sys

signtool.exe sign /v /s my /sha1 "030375f518e4f6801419f93bc0ef559fa3d67019" /fd SHA256 /t http://timestamp.verisign.com/scripts/timestamp.dll "C:\Users\Company\Desktop\Test\RPi_BSP\Rpi2\Packages\RPi.Drivers*.sys" The following certificate was selected: Issued to: Company Issued by: thawte SHA256 Code Signing CA - G2 Expires: Thu May 14 01:59:59 2020 SHA1 hash: 030375F518E4F6801419F93BC0EF559FA3D67019

Done Adding Additional Store Successfully signed: C:\Users\Company\Desktop\Test\RPi_BSP\Rpi2\Packages\RPi.Drivers\bcm2836pwm.sys Successfully signed: C:\Users\Company\Desktop\Test\RPi_BSP\Rpi2\Packages\RPi.Drivers\bcm2836sdhc.sys Successfully signed: C:\Users\Company\Desktop\Test\RPi_BSP\Rpi2\Packages\RPi.Drivers\bcmauxspi.sys Successfully signed: C:\Users\Company\Desktop\Test\RPi_BSP\Rpi2\Packages\RPi.Drivers\bcmgpio.sys Successfully signed: C:\Users\Company\Desktop\Test\RPi_BSP\Rpi2\Packages\RPi.Drivers\bcmi2c.sys Successfully signed: C:\Users\Company\Desktop\Test\RPi_BSP\Rpi2\Packages\RPi.Drivers\bcmspi.sys Successfully signed: C:\Users\Company\Desktop\Test\RPi_BSP\Rpi2\Packages\RPi.Drivers\pi_miniuart.sys Successfully signed: C:\Users\Company\Desktop\Test\RPi_BSP\Rpi2\Packages\RPi.Drivers\rpiq.sys Successfully signed: C:\Users\Company\Desktop\Test\RPi_BSP\Rpi2\Packages\RPi.Drivers\rpisdhc.sys Successfully signed: C:\Users\Company\Desktop\Test\RPi_BSP\Rpi2\Packages\RPi.Drivers\rpiwav.sys Successfully signed: C:\Users\Company\Desktop\Test\RPi_BSP\Rpi2\Packages\RPi.Drivers\SerPL011.sys Successfully signed: C:\Users\Company\Desktop\Test\RPi_BSP\Rpi2\Packages\RPi.Drivers\vchiq.sys

New-IoTWorkspace C:\Users\Company\Desktop\Test Company arm
Import-IoTOEMPackage Recovery.* Import-IoTBSP RPi2 C:\Users\Company\Desktop\Test\RPi_BSP New-IoTCabPackage All Add-IoTProduct ProductA RPi2 New-IoTFFUImage ProductA Retail

All steps were sucessfull. After that i installed the image on a MicroSD Card but only the windows logo appears.

Thanks for the help

IsmailHassani commented 5 years ago

Check this https://social.msdn.microsoft.com/Forums/en-US/5e69a7eb-b8f6-4ac8-a150-025e7d045842/uwp-application-is-not-installed?forum=WindowsIoT where i had the same issue. Maybe it helps

matelich commented 5 years ago

I'm having a similar problem (though on Dragonboard). Did you find a solution?

matelich commented 5 years ago

https://github.com/ms-iot/iot-adk-addonkit/issues/306 actually had the solution for me, though it took a while for me to realize it. There was a different directory of cab files for my BSP that I hadn't noticed and thus hadn't signed.