jetson: fTPM and EK provisioning#1809
Conversation
cbd826c to
57b4944
Compare
57b4944 to
20ad6c2
Compare
|
Tested on Orin AGX Built flash script: Flashed successfully with Did I miss something? |
|
With the revised test instructions: |
|
Tested on Orin NX
Same test results as with Orin AGX above, except with Orin NX On second boot: |
|
Should these checks pass also? |
modules/reference/hardware/jetpack/nvidia-jetson-orin/jetson-orin.nix
Outdated
Show resolved
Hide resolved
modules/reference/hardware/jetpack/nvidia-jetson-orin/jetson-orin.nix
Outdated
Show resolved
Hide resolved
modules/reference/hardware/jetpack/nvidia-jetson-orin/jetson-orin.nix
Outdated
Show resolved
Hide resolved
modules/reference/hardware/jetpack/nvidia-jetson-orin/jetson-orin.nix
Outdated
Show resolved
Hide resolved
|
For the export PATH="$PATH:/run/current-system/sw/bin"
export TPM2TOOLS_TCTI="device:/dev/tpmrm0"
tpm2_nvreadpublic 0x01C00002
tpm2_nvreadpublic 0x01C0000A
tpm2_getcap properties-variable | grep inLockout( |
8abb962 to
e48db7e
Compare
|
Orin AGX: Didn't succeed in including tpm2-tools in PATH but ran the commands from /nix/store. |
|
Orin AGX: When I try running those check commands right after flash-script (without reboot) they fail. Also I saw one failed boot (got stuck) but was not able to reproduce it. After further reboot the checks are ok. |
|
Tested also with booting Orin AGX from USB SSD that the checks pass. |
2bae14d to
2b370f1
Compare
modules/reference/hardware/jetpack/nvidia-jetson-orin/jetson-orin.nix
Outdated
Show resolved
Hide resolved
|
Checked on Orin NX that steps defined under 'Testing' return as expected. |
2b370f1 to
fc31aaf
Compare
fc31aaf to
ad65e99
Compare
|
Codewise, this PR looks good. Approved for development, but we'll need an additional patch/work before going to production. |
Switch Orin runtime EK provisioning to NVIDIA SIM tooling and enforce stage-2 fTPM module loading after tee-supplicant. Remove DA normalization service, simplify the fTPM module loader, and pin jetpack-nixos to feb-rebase for this branch. Signed-off-by: vadik likholetov <vadikas@gmail.com>
ad65e99 to
9c893da
Compare
|
is there a CI-test automation patch that has to go in with this? |
not sure about the patch, but the test devices should all be reflashed. |
|
Rel and prod test devices are now flashed (qspi) aligning with this PR. |
Summary
This PR enables the Jetson Orin fTPM (firmware TPM backed by OP-TEE) bring-up path.
Changes
jetson-orin.nixKernel structured config additions:
TCG_FTPM_TEEmoduleHW_RANDOM_TPMnoEXPERTyesTCG_FTPM_TEENew boot-time systemd services (oneshot, idempotent):
ghaf-provision-ek-certs— Provisions self-signed EK endorsement certificatesinto NV indices
0x01C00002(RSA-2048) and0x01C0000A(ECC P-256) if not alreadypresent. Certificates are issued with a fixed validity window of
1970-01-01 → 2100-01-01to remain valid regardless of RTC state at the time of provisioning.ghaf-export-ek-endorsement-bundle— Reads the NV-resident DER certs and exportsthem as PEM files under
/run/ghaf-spiffe/for downstream services (SPIRE server,tpm-ek-verify) to consume at runtime. Runs
After=ghaf-provision-ek-certs.service.Firmware EKS image option:
Adds
ghaf.hardware.nvidia.orin.ftpm.firmwareEksImageoption (type:nullOr path, defaultnull). When set, the specified image is written to the EFI variableEKS-8be4df61-93ca-11d2-aa0d-00e098032b8cat first boot so that the firmware-provisionedEK certificates survive reflash.
Testing
Checklist