Commit 1857434
committed
tools: sof_ri_info: fix CSE v2.5 detection and module config count
Address review feedback on the manifest dumper:
- The legacy v1.x CsePartitionDirHeader is 16 bytes while the v2.5
header is 20 bytes, so a "header_length > 12" test sent legacy images
down the v2.5 path, mislabelling their checksum byte as not_used and
consuming the first entry dword as checksum32. Discriminate on the
v2.5 header length (>= 20) so 16-byte headers stay on the legacy path.
- Module configs are not one-per-module-entry: each module advertises
its own cfg_count and the configs are packed contiguously, so the
total written can exceed num_module_entries. Sum every module's
cfg_count and dump that many configs instead of dropping the extras.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent 5fa4400 commit 1857434
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
852 | 852 | | |
853 | 853 | | |
854 | 854 | | |
855 | | - | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
856 | 859 | | |
857 | 860 | | |
858 | 861 | | |
859 | 862 | | |
860 | 863 | | |
861 | 864 | | |
862 | | - | |
| 865 | + | |
863 | 866 | | |
864 | 867 | | |
865 | 868 | | |
| |||
1283 | 1286 | | |
1284 | 1287 | | |
1285 | 1288 | | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
1286 | 1293 | | |
1287 | 1294 | | |
1288 | 1295 | | |
| 1296 | + | |
1289 | 1297 | | |
1290 | | - | |
| 1298 | + | |
1291 | 1299 | | |
1292 | 1300 | | |
1293 | 1301 | | |
| |||
0 commit comments