Skip to content

Commit 0c22a95

Browse files
committed
orin: enable ftpm/vtpm mux path and fix forwarder build
Wire TPM endorsement defaults for aarch64, enable host TPM mux for Orin system VMs, and turn on DM_CRYPT plus fTPM/vTPM kernel options for Jetson Orin. Set explicit Go target env in vtpm-abrmd-forwarder packaging so host-architecture builds stay deterministic on supported platforms. Signed-off-by: vadik likholetov <vadikas@gmail.com>
1 parent b354e0f commit 0c22a95

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

modules/hardware/flake-module.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
hardware-aarch64-generic.imports = [
2525
./definition.nix
2626
./aarch64/systemd-boot-dtb.nix
27+
./common/tpm-endorsement.nix
2728
./passthrough
2829
];
2930
};

modules/profiles/orin.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,14 @@ in
169169
sharedVmDirectory = {
170170
enable = false;
171171
};
172+
tpmMux = {
173+
enable = true;
174+
# Keep explicit list to avoid evaluation-order misses in auto-discovery.
175+
vms = [
176+
"admin-vm"
177+
"net-vm"
178+
];
179+
};
172180
};
173181

174182
microvm = {

modules/reference/hardware/jetpack/nvidia-jetson-orin/jetson-orin.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,16 @@ in
8585
VIRTIO_VSOCKETS_COMMON = yes;
8686
};
8787
}
88+
{
89+
name = "vtpm-proxy-config";
90+
patch = null;
91+
structuredExtraConfig = with lib.kernel; {
92+
EXPERT = yes;
93+
DM_CRYPT = module;
94+
TCG_FTPM_TEE = module;
95+
TCG_VTPM_PROXY = module;
96+
};
97+
}
8898
];
8999
};
90100

packages/pkgs-by-name/vtpm-abrmd-forwarder/package.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ stdenv.mkDerivation {
3030
export GOCACHE="$TMPDIR/go-cache"
3131
export GO111MODULE=on
3232
export CGO_ENABLED=1
33+
export GOOS=linux
34+
export GOARCH=${
35+
if stdenv.hostPlatform.isAarch64 then
36+
"arm64"
37+
else if stdenv.hostPlatform.isx86_64 then
38+
"amd64"
39+
else
40+
throw "unsupported platform for vtpm-abrmd-forwarder"
41+
}
3342
go build -trimpath -o vtpm-abrmd-forwarder \
3443
./main.go \
3544
./backend_helper.go \

0 commit comments

Comments
 (0)