Skip to content

feat(inspect): discover native ESP-IDF partition tables - #128

Merged
adi0x90 merged 1 commit into
masterfrom
inspect/esp-idf-partitions
Nov 11, 2026
Merged

adi0x90 merged 1 commit into
masterfrom
inspect/esp-idf-partitions

Conversation

@adi0x90

@adi0x90 adi0x90 commented Nov 11, 2026

Copy link
Copy Markdown
Member

Summary

FAT can now discover and inspect plaintext ESP-IDF partition tables directly in standalone binaries, flash dumps, and merged images. identify and inspect headers share the parsed metadata and text renderer; inspect layout identifies the table's bytes.

Closes #127

Changes

  • Add native discovery at arbitrary file offsets, entry/range validation, optional MD5 verification, and support for legacy tables without MD5.
  • Preserve custom type/subtype values and flags, expose rejected-candidate diagnostics in JSON, and keep older snapshots readable.
  • Separate file offsets from partition flash addresses, preserve stronger outer-format identification, and add width-aware reports, command documentation, and an Unreleased changelog entry.

Verification

  • cargo fmt --all --check
  • cargo clippy --workspace --all-targets --locked -- -D warnings
  • cargo test --workspace --locked — 2,114 passed, 1 ignored; includes 16 parser tests, 3 CLI tests, and all 4 test_kernel_profile_consistency tests. FAT_DATA_DIR pointed to the validation checkout.
  • python3 scripts/build-runtime-data-bundle.py --check — 33 files verified.
  • python3 -m unittest discover -s tests/release -p 'test_install*.py' — 43 passed.
  • Documentation links, code blocks, and GitHub Markdown rendering checked.
  • Release build and installed executable checked against two real ESP-IDF artifacts; 18 vendor-tool-generated cases cross-checked against Espressif's decoder.

Notes

This inspects plaintext table metadata. It does not decode NVS, decrypt images, infer a dump's flash base, or claim that referenced payloads are present. MD5 validation establishes table integrity, not authenticity. No firmware artifacts or new runtime dependencies are included.

@adi0x90
adi0x90 merged commit 4b0d7ed into master Nov 11, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add native ESP-IDF partition-table discovery to firmware inspection

1 participant