Skip to content

Commit

Permalink
Add xtask command to generate and verify flash image
Browse files Browse the repository at this point in the history
Following the flash layout defined in
https://github.com/chipsalliance/caliptra-mcu-sw/blob/main/docs/src/flash_layout.md

- Add new command to specify the firmware files and soc manifest to
create 1 flash image file that can be burned to the SPI flash.

- Add new command to verify a flash image file

Example:

cargo run --bin flash-image create --caliptra-fw caliptra_fw.bin \
             --soc-manifest soc_manifest.bin \
             --mcu-runtime mcu_runtime.bin \
             --soc-images soc_image1.bin soc_image2.bin soc_image3.bin \
             --output flash_image.bin

cargo run --bin flash-image verify flash_image.bin
  • Loading branch information
Marco Visaya committed Nov 21, 2024
1 parent aa0cf57 commit 54c4c15
Show file tree
Hide file tree
Showing 4 changed files with 566 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions xtask/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ clap.workspace = true
registers-generator.workspace = true
registers-systemrdl.workspace = true
quote.workspace = true
crc32fast = "1.4.2"
Loading

0 comments on commit 54c4c15

Please sign in to comment.