Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme- Improve binary file image verification script on the Windows Platform #352

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,26 @@ shasum -a 256 --ignore-missing --check seedsigner.0.6.*.sha256

**On Windows (inside Powershell):** Run this command
```
CertUtil -hashfile seedsigner_os.0.6.0.Insert_Your_Pi_Models_binary_here_For_Example_pi02w.img SHA256
<#
Read the contents of the manifest file (seedsigner.0.6.0.sha256) and
loop through each line to check
if the computed hash matches the expected hash.#>
Get-Content seedsigner.0.6.0.sha256 | ForEach-Object {

# Split each line to extract the binary filename and its expected hash.
$hash, $filename = $_ -Split ' '

# Check if the binary file exists,
if ((Test-Path $filename) -eq $True) {

# check if the computed hash matches the expected hash
write-host $filename ('FAILED: Computed checksum did NOT match!', 'is OK.')[((Get-FileHash $filename).hash -eq $hash)]
}
} <#Press Enter to begin the hash verification.#>
```
On Windows, you must then manually compare the resulting file hash value to the corresponding hash value shown inside the .SHA256 cleartext file.
<BR>

Wait up to 30 seconds for the command to complete, and it should display:
When the OSX/Linux/Windows command completes it should display:
```
seedsigner_os.0.6.x.[Your_Pi_Model_For_Example:pi02w].img: OK
```
Expand Down