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。
+122
View File
@@ -0,0 +1,122 @@
{
"schema_version": 1,
"board_id": "c1810c76790e",
"identity": {
"product": "Waveshare ESP32-S3-RLCD-4.2",
"module": "ESP32-S3-WROOM-1-N16R8",
"soc": "ESP32-S3",
"flash_bytes": 16777216,
"psram_bytes": 8388608,
"pcb_revision": null,
"pcb_revision_note": "official sources publish no freezable PCB revision; identity is board_id + module marking + photos (ADR-0003)",
"purchase_sku": null
},
"photos": [
{
"name": "board_front_20260831.jpg",
"uri": "poc/evidence/m1-20260831/photos/board_front_20260831.jpg",
"sha256": "87d232943d4328a15f3d6047fc25d2acd53fea210e29889836df47c44b8c9dcf"
},
{
"name": "board_back_module_20260831.jpg",
"uri": "poc/evidence/m1-20260831/photos/board_back_module_20260831.jpg",
"sha256": "6576c98d54097f85554f013c34f96922082de96cb7413f654d074d04fe376b60"
},
{
"name": "status_page_20260831.jpg",
"uri": "poc/evidence/m1-20260831/photos/status_page_20260831.jpg",
"sha256": "03817e0424452eba786768960645aa9e369bdfef08fe1da9883a7b9b035e82ec"
}
],
"display": {
"controller": "ST7305",
"physical_px": {
"width": 300,
"height": 400
},
"logical_landscape_px": {
"width": 400,
"height": 300
},
"interface": {
"type": "SPI",
"host": "SPI3_HOST",
"mode": 0,
"safe_start_clock_hz": 10000000
},
"pins": {
"sck": 11,
"mosi": 12,
"dc": 5,
"cs": 40,
"reset": 41,
"te": 6
}
},
"i2c": {
"sda": 13,
"scl": 14,
"devices": [
{
"name": "PCF85063",
"function": "rtc",
"address": "0x51"
},
{
"name": "SHTC3",
"function": "temperature_humidity_sensor",
"address": "0x70"
}
]
},
"key": {
"gpio": 18,
"active_level": "low",
"pull": "up"
},
"tf": {
"controller": "SDMMC",
"bus_width_bit": 1,
"pins": {
"clk": 38,
"cmd": 21,
"d0": 39
},
"card_detect": "none",
"filesystem": "FAT32/FatFs",
"tf_card": {
"status": "pending-visual-read",
"howto": "read label or `sdmmc` CID via M1 firmware reflash"
}
},
"software_locks": {
"idf_tag": "v6.0.2",
"xtensa_gcc": "15.2.0 (xtensa-esp-elf esp-15.2.0_20251204)",
"clang_format": "CI authority: clang-format-18 on ubuntu-24.04 (behaves as 18.1.3); local pre-check: 18.1.8 via `uv tool run clang-format==18.1.8`"
},
"current_firmware": {
"m1_final": {
"app": "poc/apps/m1_hardware",
"binary": "frame_m1_hardware.bin",
"binary_sha256": "a0e937ba7e4a0bd51b9c74f6e6ed25acb8fc42d78087da2ed2810085a3f2c4bc",
"device_reported_image_sha256": "81292cb968343b8b672f59fc4dacad7b3c2e6d9d337d5b804b4d90571028526a",
"built_from": "main@61a0167 (identical tree merged via PR evidence/m1-008-final, squash e8ac2c1)",
"evidence": "poc/evidence/m1-20260831/manifest.json (m1_frame_m1_hardware.map and m1_metrics_samples artifact notes)"
},
"poc_a_final": {
"app": "poc/apps/poc_a",
"binary": "frame_poc_a.bin",
"binary_sha256": "3a31ce578410b75ce76ea71a854d1953dedb1a130a3dd82de7fb3fcfa3a4d2de",
"source_commit": "f34dc72537912e9629dad482222e2159c98988ea",
"merged_to_main": "e71842aa8a6f5408270faba253df9f515b1d213c (PR #13 squash; identical firmware tree at d644b89)",
"evidence": "poc/evidence/poc-a-20260901/manifest.json (frame_poc_a.map artifact note and manifest notes)"
},
"main_head_at_record": "d644b895fa5062330c8882be98d8a7f5e176ef08"
},
"references": {
"adr": "_doc/decisions/0003-waveshare-rlcd42-hardware.md",
"m1_manifest": "poc/evidence/m1-20260831/manifest.json",
"m1_pass_record": "poc/evidence/m1-20260831/M1-PASS-RECORD.md",
"poc_a_manifest": "poc/evidence/poc-a-20260901/manifest.json"
}
}
+53
View File
@@ -0,0 +1,53 @@
# License Inventory
Scope: the two sources [ADR-0003](../decisions/0003-waveshare-rlcd42-hardware.md) requires an
inventory for — (a) the official Waveshare repository (design input, reference-only) and (b) the
third-party code actually vendored into this repository. All license statements below were read
from the cited `LICENSE`/`LICENCE` files at the pinned commits; the license families are recorded
as documented upstream.
Status: reference-only for (a). This repository does **not** vendor, copy, or link any Waveshare
official code today; the inventory exists so future adoption of official examples re-checks each
bundled component instead of relying on the root license.
## (a) Waveshare official repository (not vendored)
Upstream: <https://github.com/waveshareteam/ESP32-S3-RLCD-4.2> at commit
`eb1f63427d735a22b9c30e22fa63ebddae1834d3` ([root LICENSE](https://github.com/waveshareteam/ESP32-S3-RLCD-4.2/blob/eb1f63427d735a22b9c30e22fa63ebddae1834d3/LICENSE)).
The root Apache-2.0 (copyright Waveshare) covers only the root work; bundled components carry
their own licenses.
| Component | Source + commit | License | Vendored? | Path / evidence |
| --- | --- | --- | --- | --- |
| Root work (examples, firmware, docs) | waveshareteam/ESP32-S3-RLCD-4.2 @ `eb1f6342` | Apache-2.0 | No | root `LICENSE` |
| SensorLib | bundled @ `eb1f6342` (Arduino + ESP-IDF ExternLib copies) | MIT | No | `01_Arduino_Libraries/SensorLib/LICENSE` (Copyright (c) 2022 lewis he) |
| U8g2 | bundled @ `eb1f6342` (two copies) | BSD-3-Clause ("new-bsd / two-clause bsd") | No | `01_Arduino_Libraries/U8g2/LICENSE`; `02_Example/ESP-IDF/11_U8G2_Test/components/u8g2/LICENSE` |
| LVGL v9 | bundled @ `eb1f6342` | MIT | No | `01_Arduino_Libraries/lvgl9/lvgl/LICENCE.txt` (Copyright (c) 2025 LVGL Kft) |
| LVGL v8 | bundled @ `eb1f6342` | MIT | No | `01_Arduino_Libraries/lvgl8/lvgl/LICENCE.txt` (Copyright (c) 2021 LVGL Kft) |
| codec_board | bundled @ `eb1f6342` | Espressif Modified MIT | No | `02_Example/ESP-IDF/07_Audio_Test/components/ExternLib/codec_board/LICENSE` (also in `02_Example/Arduino/07_Audio_Test`, `10_FactoryProgram`) |
| esp_codec_dev | bundled @ `eb1f6342` | Apache-2.0 | No | `02_Example/Arduino/07_Audio_Test/src/ExternLib/esp_codec_dev/LICENSE` |
| XiaoZhi example firmware | bundled @ `eb1f6342` | MIT | No | `02_Example/XiaoZhi/XiaoZhiCode_V2.1.0/LICENSE` (Copyright (c) 2025 Shenzhen Xinzhi Future Technology) |
| LVGL bundled libs | inside lvgl9 @ `eb1f6342` | mixed, per file | No | `lvgl9/lvgl/src/libs/*/LICENSE.txt`: expat (Expat/MIT), freetype (FreeType Project License), gif, lodepng (Zlib), lz4 (BSD-2), qrcode (MIT, Project Nayuki), thorvg (MIT), tiny_ttf (dual MIT-style), tjpgd (ChaN BSD-style), barcode (MIT, LKC Technologies) |
| LVGL bundled fonts | inside lvgl9 @ `eb1f6342` | mixed, per file | No | `lvgl9/lvgl/scripts/built_in_font/font_license/`: Montserrat (OFL), FontAwesome5 (Font Awesome Free License), DejaVuSans (Bitstream Vera license), SourceHanSansSC (OFL), unscii; plus `src/stdlib/builtin/LICENSE_SPRINTF.txt` / `LICENSE_TLSF.txt` |
Adoption rule (from ADR-0003): before any Waveshare code is adopted, copied, or modified, this
table must be refreshed against the then-pinned commit and each bundled component's terms
followed individually; the root Apache-2.0 must not be assumed to cover bundled files.
## (b) Vendored third-party code (in this repository)
| Component | Source + commit | License | Vendored? | Path / evidence |
| --- | --- | --- | --- | --- |
| espressif/elf_loader v1.3.3 | espressif/esp-iot-solution `components/elf_loader` @ `6526c5b18e156cfbda2c7ce48e282e384c43b485` | Apache-2.0 | Yes | [`poc/apps/poc_a/components/elf_loader/`](../../poc/apps/poc_a/components/elf_loader/) — `license.txt` sha256 `cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30` (recomputed 2026-09-07); provenance + local patches p1–p5 in `PATCHES.md`; upstream-file manifest `tree.sha256` |
| espressif/cmake_utilities 0.5.3 | components.espressif.com registry (managed dependency of elf_loader) | Apache-2.0 | Managed (build-time fetch, not committed) | pinned at [`poc/apps/poc_a/dependencies.lock`](../../poc/apps/poc_a/dependencies.lock) (version 0.5.3, component_hash `3513506…bb18f`); license verified 2026-09-07 from the local component cache `~/.espressif/tools/components/espressif/cmake_utilities/0.5.3/espressif__cmake_utilities-v0.5.3.zip` → `license.txt` (Apache License, Version 2.0) |
Notes:
- The elf_loader vendoring is PoC-A scope only; its `idf_component.yml` declares no other
dependency (no mbedtls). Local deviations from upstream are recorded patch-by-patch in
`PATCHES.md`; the license file itself is unmodified (sha256 above matches the canonical
Apache-2.0 text).
- Managed components of the M1 firmware (`espressif__cjson`, `joltwallet__littlefs`,
`lvgl__lvgl`) are not vendored source and are enumerated per-build by the SBOM gate
(`uv run frame-sbom --output .build/reports/sbom.cdx.json`); they are out of this table's
ADR-0003 scope.