Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/dasharo-tools-suite/documentation/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This section describes the functionality of the Dasharo Tools Suite. These are:
- [Update issues](#update-issues)
+ [EC transition](#ec-transition)
+ [EC update](#ec-update)
+ [Fusing the device vendor keys](#fusing-the-device-vendor-keys)
+ [Fuse Platform (Dasharo TrustRoot)](#fuse-platform-dasharo-trustroot)
+ [Verify Intel Boot Guard key](#verify-intel-boot-guard-key)
+ [Additional features](#additional-features)
- [Run commands from iPXE shell automatically](#run-commands-from-ipxe-shell-automatically)
Expand Down Expand Up @@ -482,7 +482,7 @@ version. This is how we can achieve that.
version: 2022-08-31_cbff21b
```

## Fusing the device vendor keys
## Fuse Platform (Dasharo TrustRoot)

DTS can be used to fuse the device vendor keys onto the SoC to enable
the Dasharo TrustRoot feature.
Expand All @@ -498,7 +498,7 @@ the Dasharo TrustRoot feature.
The decision to fuse the keys requires the user to explicitly opt-in.
Updating the firmware will never fuse the device on its own.

To perform fusing procedure:
To perform the fusing procedure:

1. Make sure a power supply is connected to the device if it is battery powered
2. Make sure the device has Dasharo firmware and the support for Dasharo
Expand Down
33 changes: 33 additions & 0 deletions scripts/trustroot-support.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash
import sys, os, json

if len(sys.argv) < 2:
exit(1)
repo = sys.argv[1]
configs = os.path.join(repo, "configs")

def has_eom(model):
return "eom_path_comm_cap" in model

eom_models = list()

for file in os.listdir(configs):
with open(os.path.join(configs, file), "r") as file:
conf = json.load(file)
models = conf["models"]

eom_models.extend([(m, models[m]) for m in models if has_eom(models[m])])

complex_models = [m for m in models if "board_models" in models[m]]
for model in complex_models:
submodels = models[model]["board_models"]
eom_submodels = [(m, submodels[m]) for m in submodels if has_eom(submodels[m])]
eom_models.extend(eom_submodels)

if "--pretty" in sys.argv:
print('| Manufacturer | Device |')
for m in eom_models:
print(f'| {m[1]["dasharo_rel_name"].split("_")[0]} | {m[0]} |')
else:
for m in eom_models:
print(m)
6 changes: 6 additions & 0 deletions scripts/trustroot-support.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

repo=$(mktemp -d)
git clone https://github.com/Dasharo/dts-configs $repo &> /dev/null
python "$(dirname "$(realpath "$0")")"/trustroot-support.py "$repo" --pretty
rm -rf "$repo"