Skip to content

Conversation

@rivos-eblot
Copy link

@rivos-eblot rivos-eblot commented Oct 27, 2025

-X acts as -x does, exporting the OTP content as a VMEM file. It adds description of each VMEM line, using the same syntax as the OpenTitan original tool

This makes easier to compare modified OTP files (for testing purposes), e.g,

scripts/opentitan/otptool.py -C docs/config/opentitan/darjeeling.cfg -j otp_ctrl_mmap.hjson \
     -m img_dev.24.vmem -X img_gen.24.vmem --toggle-bit 0x3e90/0 --toggle-bit 16048/1 && \
diff -u img_dev.24.vmem img_gen.24.vmem````
--- img_dev.24.vmem	2025-10-06 17:51:00
+++ img_gen.24.vmem	2025-10-27 13:47:57
@@ -8008,7 +8008,7 @@
 @001f45 000000 // HW_CFG0: MANUF_STATE
 @001f46 000000 // HW_CFG0: MANUF_STATE
 @001f47 000000 // HW_CFG0: MANUF_STATE
-@001f48 03bbfc // HW_CFG0: HW_CFG0_DIGEST
+@001f48 03bbfd // HW_CFG0: HW_CFG0_DIGEST
 @001f49 37cd05 // HW_CFG0: HW_CFG0_DIGEST
 @001f4a 374556 // HW_CFG0: HW_CFG0_DIGEST
 @001f4b 156d0c // HW_CFG0: HW_CFG0_DIGEST
@@ -8024,7 +8024,7 @@
 @001f55 202978 // SECRET0: TEST_UNLOCK_TOKEN
 @001f56 2da684 // SECRET0: TEST_UNLOCK_TOKEN
 @001f57 29eeb9 // SECRET0: TEST_UNLOCK_TOKEN
-@001f58 371359 // SECRET0: TEST_UNLOCK_TOKEN
+@001f58 37135b // SECRET0: TEST_UNLOCK_TOKEN
 @001f59 014ae8 // SECRET0: TEST_UNLOCK_TOKEN
 @001f5a 2d90e8 // SECRET0: TEST_UNLOCK_TOKEN
 @001f5b 3f0f66 // SECRET0: TEST_UNLOCK_TOKEN

@rivos-eblot rivos-eblot changed the title tools: otptoo.py: add a new option to export comment VMEM files tools: otptool.py: add a new option to export comment VMEM files Oct 27, 2025
@rivos-eblot rivos-eblot force-pushed the dev/ebl/otptool_export_verbose branch 2 times, most recently from 602132f to 194866c Compare October 27, 2025 16:44
@rivos-eblot rivos-eblot force-pushed the dev/ebl/otptool_export_verbose branch 2 times, most recently from 5865989 to 319955c Compare October 28, 2025 07:13
…in VMEM file

Signed-off-by: Emmanuel Blot <eblot@rivosinc.com>
Input HJSON file already contains defined absorbed free space allocation,
so this feature should no longer be useful.

Leave an option to force dispatching of free space; this option may be
deprecated in a future version.

Signed-off-by: Emmanuel Blot <eblot@rivosinc.com>
@rivos-eblot rivos-eblot force-pushed the dev/ebl/otptool_export_verbose branch from 319955c to 0652ce0 Compare October 28, 2025 07:16
Copy link

@AlexJones0 AlexJones0 left a comment

Choose a reason for hiding this comment

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

LGTM

@rivos-eblot rivos-eblot merged commit a462f24 into lowRISC:ot-9.2.0 Oct 28, 2025
10 checks passed
@rivos-eblot rivos-eblot deleted the dev/ebl/otptool_export_verbose branch October 28, 2025 13:02
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.

2 participants