Commit Graph
3 Commits
Author SHA1 Message Date
Lainandlain ef5d27b6c5 feat(m1): storage info command and tf card identity record (#16)
## What

- M1 firmware: new `storage info` console command printing the mounted
TF card identity from
`sdmmc_card_t` (CID: manufacturer/OEM/product name/revision/serial/date;
CSD: capacity in
MiB, sectors, sector size). `storage: no card` when not mounted. CID/CSD
are copied out
under a new mutex that also guards mount/unmount, so the console never
dereferences a
  half-initialized or freed card. No other behavior changed.
- Lab config `_doc/lab/board-c1810c76790e.json`: `tf.tf_card` upgraded
from
`pending-visual-read` to the values read on the real board (`SD16G`,
14910 MiB,
  serial `0x00000024`, mfg 2026-05), citing the in-repo transcript.
- ADR-0003: TF record acceptance checkbox ticked with citation; blockers
list updated.

## Evidence

- `poc/evidence/tf-info-20260907/tf-cid-transcript-20260907.log`:
RTS-reset boot, two
identical `storage info` reads (L188-189, L192-193), `status --json`
sanity (L197,
  `tf":"READY`), serial non-zero.
- Board restored to PoC-A firmware after the read (`poca status`
verified).

Co-authored-by: ania-lain <[email protected]>
2026-09-07 21:03:08 +08:00
Lainandlain f04326d1b7 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]>
2026-09-07 20:34:20 +08:00
lainandSisyphus dbb7c13729 docs: add v4.2 requirements, plan, and hardware ADRs
Add the v4.2 working documentation set under _doc/:

- requirements-v4.2.md and project-v4.2-draft.md (architecture draft)
- development-plan.md, project.md, README.md (index/navigation)
- decisions/: hardware architecture decision records backing the
  milestone gates (ST7305 display, PCF85063 RTC, SHTC3 sensor,
  TF-card JSONL evidence, KEY input, power/boot policy)

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <[email protected]>
2026-08-31 08:00:31 +08:00