Repository navigation
Commit 4164f69
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, offline rootfs, or remote (SSH) targets against
release assets in sof-bin.
- Debian (.deb) & RPM (.rpm) package validation: Directly extracts and
validates sof-bin packages offline without requiring installation.
- Version & release identification (--identify): Scans target filesystems
and resolves installed component versions using on-demand release hash
indexing.
- Platform FW vs LLEXT consistency verification: Validates that all
installed dynamic LLEXT modules match base firmware binaries in both
release version and embedded BCD build dates.
- Topology upgrade detection: Automatically identifies and flags installed
topologies that can be upgraded from sof-bin to match target firmware.
- 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.
- Strict mode & extraneous file detection (--strict): Identifies untracked
or extraneous firmware/topology files on target systems (Status.EXTRA).
- Automated tests: Comprehensive unit test suite covering repo discovery,
MD5 matching, manifest parsing, package validation, consistency checking,
fix operations, and downgrade prevention.1 parent e65a0d4 commit 4164f69
4 files changed
Lines changed: 3643 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 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
0 commit comments