docs(adr-0003): record lab config, tf card, and license inventory (#15)

Bounded doc/evidence package completing the three currently-satisfiable
ADR-0003 acceptance items.

## Artifacts
- `_doc/lab/board-c1810c76790e.json` — machine-readable lab config:
board identity (product/module/board_id + photo shas recomputed), ST7305
display (SPI3 mode0 10 MHz, pin map), I2C (PCF85063@0x51, SHTC3@0x70),
KEY GPIO18, SDMMC 1-bit TF (no card-detect, FAT32), software locks (IDF
v6.0.2, xtensa gcc 15.2.0, clang-format CI-18 authority),
current-firmware hashes cited from the M1 and PoC-A manifests.
- `_doc/licenses/INVENTORY.md` — license inventory for both ADR-0003
sources: Waveshare official repo @`eb1f6342` (root Apache-2.0 + bundled
SensorLib/U8g2/LVGL/codec components, each read from its LICENSE at the
pinned commit; reference-only, nothing vendored) and the vendored
elf_loader v1.3.3 @`6526c5b1` (Apache-2.0, license.txt sha `cfc7749b…`
recomputed) + managed dep cmake_utilities 0.5.3 (Apache-2.0 verified
from the local component cache zip).
- `_doc/decisions/0003-waveshare-rlcd42-hardware.md` — checkboxes ticked
only where in-repo evidence exists, each with a citation: boot record
(M1-002 + N16R8 marking photo), lab config, PCF85063/SHTC3/KEY (M1-004),
Flash/PSRAM mode (boot.log QIO/80 MHz/octal + manifest sdkconfig sha),
license inventory. TF model/capacity NOT found in M1 evidence (device
never logs card name/CID) → `tf_card: pending-visual-read`, TF checkbox
honestly left open. Status stays Blocked (fixture + spare board).

## Gates
- `frame-doc-links`: green (clean worktree; local `.omo/plans` noise is
gitignored harness state, CI unaffected)
- `pytest`: 87 collected, 0 failed (86 passed + 1 pyserial-environment
skip, documented steady state)
- `python3 -m json.tool` on the new JSON: OK

No code or firmware changes.

Co-authored-by: ania-lain <[email protected]>
This commit is contained in:
Lain
2026-09-07 20:34:20 +08:00
committed by GitHub
co-authored by lain
parent d644b895fa
commit f04326d1b7
3 changed files with 182 additions and 7 deletions
@@ -77,20 +77,20 @@ Button | KEY | GPIO18, active-low, pull-up
## Acceptance Evidence
- [ ] 实机启动记录确认 target、dual core、16 MiB Flash、8 MiB PSRAM 和 exact module marking。
- [ ] machine-readable lab config 固定上述 pin、SPI/I2C/SDMMC 参数、board_id、ESP-IDF tag 和 firmware hash。
- [x] 实机启动记录确认 target、dual core、16 MiB Flash、8 MiB PSRAM 和 exact module marking。([M1 PASS record M1-002](../../poc/evidence/m1-20260831/M1-PASS-RECORD.md):boot banner 8/8 on-device 断言;[N16R8 marking 照片](../../poc/evidence/m1-20260831/photos/board_back_module_20260831.jpg) ↔ boot log flash=16777216 / psram=8388608)
- [x] machine-readable lab config 固定上述 pin、SPI/I2C/SDMMC 参数、board_id、ESP-IDF tag 和 firmware hash。([lab config](../lab/board-c1810c76790e.json);firmware hash 取自 M1 与 PoC-A 两个 manifest 的 artifact notes)
- [ ] ST7305 在 SPI3 mode 0、10 MHz 完成 init 和 landscape 400x300 black/white/checkerboard/border/static core status page;driver 按面板原生列顺序打包,logic analyzer 保存 SCK/MOSI/DC/CS/RESET/TE trace。
- [ ] PCF85063 `0x51`、SHTC3 `0x70`、KEY GPIO18 active-low 分别通过 [M1](../requirements-v4.2.md) 规定的 normal 10 秒 cadence 与显式 selftest 样本。
- [ ] SDMMC 1-bit/FAT32 `/frame` 完成 boot absent、insert to READY、runtime remove、reinsert to READY 四转换和每次 READY read/write/fsync/hash health check;记录 TF model/capacity。
- [x] PCF85063 `0x51`、SHTC3 `0x70`、KEY GPIO18 active-low 分别通过 [M1](../requirements-v4.2.md) 规定的 normal 10 秒 cadence 与显式 selftest 样本。([M1 PASS record M1-004](../../poc/evidence/m1-20260831/M1-PASS-RECORD.md):RTC read/write + 跨软复位保持 + SNTP resync,SHTC3 CRC-valid 合理样本,KEY/BOOT +2/+2 无 spurious;[manifest](../../poc/evidence/m1-20260831/manifest.json) metrics key_short/key_long)
- [ ] SDMMC 1-bit/FAT32 `/frame` 完成 boot absent、insert to READY、runtime remove、reinsert to READY 四转换和每次 READY read/write/fsync/hash health check;记录 TF model/capacity。(四转换 + health checks 已由 [M1 PASS record M1-005](../../poc/evidence/m1-20260831/M1-PASS-RECORD.md) 证明;TF model/capacity 记录仍缺 —— M1 证据无 card name/CID,[lab config](../lab/board-c1810c76790e.json) `tf.tf_card` 标记 pending-visual-read,本条在补齐前保持未勾)
- [ ] 当前开发板的 Wi-Fi UART configuration 只驻留 RAM 并脱敏;专用 security board 上另行验证 encrypted NVS。UART 与 TF `/frame/logs` JSONL 在一小时 M1 soak 中符合连续性要求。
- [ ] Flash/PSRAM mode/frequency 由 exact sdkconfig 和 runtime log 证明,不由 N16R8 名称推断。
- [x] Flash/PSRAM mode/frequency 由 exact sdkconfig 和 runtime log 证明,不由 N16R8 名称推断。([boot.log](../../poc/evidence/m1-20260831/raw-history/boot.log) L17-L42:`SPI Mode : QIO`、`Boot SPI Speed : 80MHz`、octal_psram vendor AP / density 64 Mbit;exact sdkconfig 由 [manifest](../../poc/evidence/m1-20260831/manifest.json) `platform.sdkconfig_sha256` = `7d094856…cbf` 钉住)
- [ ] power-cut fixture 能由外部 controller 真正移除并恢复 board power,记录切断点、off duration、voltage measurement 和 fixture firmware/config revision;`esp_restart()` 不算。Current board preliminary cuts 不超过 20。
- [ ] 至少一块 spare board 被保留并标识为 final 1000 power-cut 与 destructive security/eFuse board,不与日常开发板混用。
- [ ] 保存 schematic/repository commit、root 与 bundled license inventory。
- [x] 保存 schematic/repository commit、root 与 bundled license inventory。(schematic PDF 与 repository commit 已存于本文 Verified Sources;root 与 bundled license inventory 见 [license inventory](../licenses/INVENTORY.md),2026-09-07 对 pinned commits 逐项复核)
## Current Blockers
- 完整 runtime evidence 尚未归档,不能确认 M1 和组合外设行为。
- M1(一小时 soak、boot identity、PCF85063/SHTC3/KEY、TF 四转换、Flash/PSRAM mode)与 PoC-A 的 runtime evidence 已归档并由 owner 确认(见上方已勾项引用);本 ADR 剩余的 runtime 缺口:ST7305 logic-analyzer trace、TF model/capacity 记录、power-cut fixture 与 spare board 相关项。
- power-cut fixture、外部控制器和 measurement method 尚未完成,阻塞 PoC-E。
- destructive Secure Boot V2、Flash Encryption release mode 和 eFuse epoch 使用的 spare board 尚未保留,阻塞 PoC-E。
- 没有官方 PCB revision;接受时必须显式批准以 `board_id + SKU + N16R8 marking + photos` 作为替代识别,不得伪造 revision。