Skip to content

caliptra: Bump caliptra-mcu-sw to cdb40e98 and caliptra-sw to 757b7445 - #880

Open
swenson wants to merge 1 commit into
OpenPRoT:mainfrom
swenson:claude/caliptra-pins-upgrade-dbcc38
Open

swenson wants to merge 1 commit into
OpenPRoT:mainfrom
swenson:claude/caliptra-pins-upgrade-dbcc38

Conversation

@swenson

@swenson swenson commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Moves caliptra_mcu_sw from rt-sdk-2.1.1 to the main-2.1 head (cdb40e98). caliptra_sw moves from fw-2.1.3 to 757b7445, the commit that caliptra-mcu-sw lists for hardware revision 2.1 in core/versions.toml. uprev.py reads the pin from that file when caliptra-mcu-sw's Cargo.lock has no caliptra-sw git source. The VCK190 bitstream is unchanged.

caliptra-mcu-sw now keeps caliptra-sw as the core/caliptra-sw submodule and selects the hardware revision in each crate's build.rs, with 2.2 as the default. The Caliptra crates are built for 2.1. Targets built from @caliptra_mcu_sw sources do not run the build script and get its cfg flags from CALIPTRA_HW_REV_RUSTC_FLAGS in caliptra_build.bzl. The crate_universe crates that have the build script get CALIPTRA_HW_REV through build_script_env. A [patch] section in crates_io/embedded/Cargo.toml keeps one copy of each caliptra-sw crate, and uprev -- verify fails if a lockfile has two.

link.x puts the _fw_entry trampoline at the load address, which the image generator now requires. @caliptra_ss_otp_ctrl_mmap moves to the caliptra-ss commit that caliptra-sw uses; the file is the same as at the caliptra-ss commit that the bitstream uses. hw_model_no_builder.patch is dropped because caliptra-mcu-builder is behind a cargo feature upstream.

Testing

  • Emulator: 22 of 22 //target/veer/... tests pass.
  • VCK190: 20 of 20 --config=fpga tests pass.
  • Host tests from ci_tests pass.
  • ./pw presubmit passes.

@amit-kumarh

Copy link
Copy Markdown
Contributor

perhaps rename PR to include the caliptra-sw bump as well?

cdb40e98 is the head of caliptra-mcu-sw's main-2.1 branch. 757b7445 is
the caliptra-sw commit that it lists for hardware revision 2.1 in
core/versions.toml. uprev reads the pin from that file when
caliptra-mcu-sw's Cargo.lock has no caliptra-sw git source.

caliptra-mcu-sw now keeps caliptra-sw as a submodule and selects the
hardware revision in each crate's build script, with 2.2 as the default.
The Caliptra crates are built for 2.1. Targets built from
@caliptra_mcu_sw sources do not run the build script and get its cfg
flags from caliptra_build.bzl. The crate_universe crates that have the
build script get CALIPTRA_HW_REV. A [patch] section keeps one copy of
each caliptra-sw crate, and uprev verify fails if a lockfile has two.

The FMC and runtime link script puts the _fw_entry trampoline at the
load address, which the image generator now requires. The OTP memory
map moves to the caliptra-ss commit that caliptra-sw uses.
hw_model_no_builder.patch is dropped because caliptra-mcu-builder is
behind a cargo feature upstream.

Assisted-by: Claude:claude-fable-5-2
@swenson swenson changed the title caliptra: Bump caliptra-mcu-sw to main-2.1 cdb40e98 caliptra: Bump caliptra-mcu-sw to cdb40e98 and caliptra-sw to 757b7445 Dec 1, 2026
@swenson
swenson force-pushed the claude/caliptra-pins-upgrade-dbcc38 branch from 4b1113b to f75beb6 Compare December 1, 2026 01:07

This branch has not been deployed

No deployments
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