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

Create an all zeros fw image #1894

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Create an all zeros fw image #1894

merged 1 commit into from
Jan 15, 2025

Conversation

jhand2
Copy link
Collaborator

@jhand2 jhand2 commented Jan 15, 2025

Creates an image bundle with FMC and Runtime populated with zeros. 0 is an ilegal opcode in risc-v, so the image will immediately NMI.

This is useful for testing production signing infrastructure. A production key can be used to sign this image before an official release is ready. The prod-signed zeros binary is benign but can be used to ensure that the prod key was loaded into fuses correctly.

nquarton
nquarton previously approved these changes Jan 15, 2025
Copy link
Contributor

@nquarton nquarton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely should be useful to have this. Thanks!

Copy link
Contributor

@zhalvorsen zhalvorsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome, great work!

builder/bin/image_gen.rs Outdated Show resolved Hide resolved
zero_bin/tests/test_zeros.rs Show resolved Hide resolved
Creates an image bundle with FMC and Runtime populated with zeros. 0 is
an ilegal opcode in risc-v, so the image will immediately NMI.

This is useful for testing production signing infrastructure. A
production key can be used to sign this image before an official
release is ready. The prod-signed zeros binary is benign but can
be used to ensure that the prod key was loaded into fuses correctly.
@jhand2 jhand2 enabled auto-merge (rebase) January 15, 2025 19:17
@jhand2 jhand2 merged commit 85b732a into chipsalliance:main Jan 15, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants