P03 — OpenTitan Earl Grey: boot the open-source silicon RoT in simulation
Status
red· Claim PC1 · Corpus anchor L4 §1, §3 row 1; maturity E1; registryopentitan(trust High) · Effort XL · Execution host FPGA/dev board (Verilator sim default)
What it proves
PC1 — OpenTitan is an open-source root-of-trust silicon project that provides device identity (DICE IDEVID), measured boot, remote attestation, and boot-bound key sealing — and a user can check it out, build it, and watch the secure-boot chain execute. The corpus’s trust rating for this is High (open-spec, lowRISC/Google coalition); the claim is “real and shipped in Earl Grey” (first open-source silicon to commercial availability, 2024-02-13; ships in Chromebooks).
The runbook reproduces the official quickstart (~30 min guided, longer server-time on first Verilator compile) and adds a key-manager observation step so we directly see the boot-bound key-wrapping primitive OpenTitan’s security model promises. “Proven” here means the uart smoke test passes in simulation and the boot log shows the key manager being exercised.
Why it matters
PC1 is the corpus’s highest-trust anchor (L4 §1, §3 row 1; maturity E1; registry
opentitan, trust High): the open-source silicon root of trust whose primitives the rest
of the thesis treats as ground truth. PC1 bundles four primitives, so we want evidence of
measured boot and key management, not just “program ran”. If OpenTitan’s simulation did
not actually run, the book’s strongest example of a real, open RoT would rest on someone
else’s word.
Why this, not that
| We do (Y) | We don’t (X) | Because |
|---|---|---|
| Run Earl Grey through the repo’s own quickstart smoke test | Take the corpus’s word that Earl Grey “ships in Chromebooks” | Proof-by-running installs confidence that PC1’s primitives exist; it does not prove the Chromebook deployment claim, which stays a provenance fact, not a PoC. |
| Docker container for the build (OpenTitan’s blessed path for non-Linux / hermetic runs) | Installing the whole RISC-V + Verilator + Bazel toolchain on the host | The docs’ recommended path for a repeatable build; keeps the server clean — on a stock Ubuntu 22.04 the native path (also scripted) works. |
| Observe an attestation / key-manager artifact, not just “booted” | Stop after UART smoke | PC1 bundles four primitives; we want evidence of measured boot and key management, not just “program ran”. |
What you need
- Linux server, ≥32 GiB RAM, ≥512 GiB disk (OpenTitan’s own guidance for full Veril top sim). Container path: Docker ≥ 24.
- Time: first Verilator compile of the whole Earl Grey SoC is long (30–90+ min of CPU); subsequent runs are fast.
- Internet to fetch
lowRISC/opentitan.
How to run it
cd poc/P03-opentitan— enter this PoC’s directory.bash scripts/01-fetch.sh— clones lowRISC/opentitan + deps.bash scripts/02-build-native.sh— builds via the native Ubuntu 22.04 path (OR use the Docker path below).bash scripts/03-run-smoke.sh— runs uart_smoketest through Verilator.bash scripts/04-observe-boot.sh— runs boot_rom and captures ROM/boot-stage + key-manager output.
Docker alternative (OpenTitan’s experimental container)
bash scripts/01-fetch.sh— clones lowRISC/opentitan + deps.docker run --rm -it -v "$PWD/opentitan:/opentitan" ghcr.io/lowRISC/opentitan-ubuntu-2204-toolchain:latest bash— opens a shell in OpenTitan’s toolchain container with the repo mounted.
The repo’s documented container image lives at ghcr.io/lowRISC/opentitan-ubuntu-2204-toolchain
(replace with the name in their util/container/README.md if it moves).
What “done” looks like
bash scripts/03-run-smoke.sh
# MUST print:
# PASSED in <sec>s
# Executed 1 out of 1 test: 1 test passes. <- or "1 test passes" equivalent for uart_smoketest_sim_verilatorAnd in 04-observe-boot.sh output, a boot-stage transition / key-manager log line that we
quote in the evidence (e.g. boot_rom → boot_stage, keymgr activation) — testify the
measurement registers are being exercised.
Where the evidence goes
Copy into evidence/:
opentitan_commit.txt— the commit we built.uart_smoketest.log— full test output incl. the PASSED line.boot_rom.log/ key-manager excerpt (from 04).build-env.txt—./bazelisk.sh --version, g++ version,verilator --version.
What this does not prove
- Do not claim “OpenTitan ships in Chromebooks” was proved here — this runbook proves
the software/simulation primitives work. Production-silicon status is a supply-chain
fact tagged to the
opentitansource capture (trust High), not an output of this PoC. - Earl Grey is the discrete RoT. Darjeeling (embeddable/integratable) is a separate design — released, per lowRISC’s 2026-01-23 statement that both have “gone into commercial production devices” (corpus corrected at commit 9ce6b89) — be explicit that we prove Earl Grey only.
- Verilator compile is memory-hungry; if the server OOMs, raise
--jobs 1or container memory limits. - OpenTitan instructions change fast; if a repo path moved, re-read the quickstart at https://opentitan.org/quickstart/ and note the drift.