Repository navigation
Commit ecd76dd
committed
validate_sof_install: Add SOF firmware & topology installation validator
Add validate_sof_install.py tool to verify, identify, and repair SOF
firmware, LLEXT modules, topology binaries, and debug tools installed on
target hosts against reference releases in sof-bin.
Key capabilities:
- Validation engine: Compares installed files, versions, symlinks, and
MD5 checksums on local or remote (SSH) targets against release assets in
sof-bin.
- Version & release identification (--identify): Scans target filesystems
and resolves installed component versions using global release hash
indexing.
- Binary manifest inspection (--manifest / -m): Extracts metadata
directly from binaries (ADSP FW $AM1, CSS $MN2 BCD build dates,
extended manifest XMan, Zephyr/SOF git tag banners, and ALSA topology
CoSA ABI headers).
- Sub-row manifest diffs: On mismatch, outputs comparison sub-rows
detailing Host vs Expected versions, build timestamps, and ABI levels.
- Repair engine (--fix, --dry-run): Automatically installs missing or
mismatched files and recreates symlinks via local copy or SSH/SCP.
Displays version and manifest transitions (from -> to) for each repair.
- Downgrade protection: Prevents downgrading installed packages unless
explicitly allowed via --downgrade / --allow-downgrade flag.
- Automated tests: Comprehensive unit test suite covering repo discovery,
MD5 matching, manifest parsing, fix operations, and downgrade prevention.1 parent e65a0d4 commit ecd76dd
4 files changed
Lines changed: 2510 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
0 commit comments