Skip to content

Commit

Permalink
[opentitantool] OTP ROM patch partition generation tool
Browse files Browse the repository at this point in the history
The OTP ROM patch opentitantool command generates an OTP image partition
HJSON or a raw binary blob, from a second stage ROM patch description.

The HJSON image partition can be used directly as an OTP overlay in
order to include it into a final OTP image.

Signed-off-by: Samuel Ortiz <[email protected]>
  • Loading branch information
sameo committed Aug 12, 2024
1 parent 90dc2b4 commit 3ae38ec
Show file tree
Hide file tree
Showing 10 changed files with 912 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sw/host/opentitanlib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ rust_library(
"src/proxy/mod.rs",
"src/proxy/protocol.rs",
"src/proxy/socket_server.rs",
"src/rom_patch/mod.rs",
"src/spiflash/flash.rs",
"src/spiflash/mod.rs",
"src/spiflash/sfdp.rs",
Expand Down Expand Up @@ -302,6 +303,9 @@ rust_test(
"src/otp/testdata/otp_ctrl_img_dev.hjson",
"src/otp/testdata/otp_ctrl_mmap.hjson",
"src/otp/testdata/output.vmem",
"src/rom_patch/testdata/key_ecdsa.der",
"src/rom_patch/testdata/key_ecdsa.pub.der",
"src/rom_patch/testdata/patch.hjson",
],
rustc_env = {
"e2e_command": "$(location :e2e_command)",
Expand Down
1 change: 1 addition & 0 deletions sw/host/opentitanlib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub mod image;
pub mod io;
pub mod otp;
pub mod proxy;
pub mod rom_patch;
pub mod spiflash;
pub mod test_utils;
pub mod tpm;
Expand Down
Loading

0 comments on commit 3ae38ec

Please sign in to comment.