Skip to content

4 MB partition table: 1.75 MB A/B app slots (5/7) - #46

Merged
bring42 merged 1 commit into
mainfrom
claude/pr5-partition-table
Sep 12, 2026
Merged

bring42 merged 1 commit into
mainfrom
claude/pr5-partition-table

Conversation

@bring42

@bring42 bring42 commented Sep 12, 2026 •

Copy link
Copy Markdown
Owner

Stacked PR — part 5 of 7. Merge in order (1 → 7) using a merge commit, not squash: the per-commit messages are the documentation, and squashing would also break the PRs stacked on top. Split from claude/next-goal-notes-merge-prep-6bb680; the top of the stack is byte-identical to that branch.

What

Custom 4 MB partition table for the two C3 envs: 1.75 MB A/B app slots (was 1.25 MB) and a 384 KB filesystem (was 1.375 MB, ~84% empty). Firmware flash use drops from 91% to 65%.

⚠️ Deployment note

  • Changing the partition table is a one-time USB flash, not an OTA update.
  • A device on the old layout must not OTA onto images built for this one, because a >1.25 MB app can't fit the old slot.
  • nvs/otadata keep their stock offsets, so saved settings (WiFi etc.) survive; only the filesystem needs a re-upload.
  • The S3 envs are untouched.

Verification

Built and tested on this branch alone. This stacked state is new, so it was verified independently rather than assumed: 81/81 native tests pass, the firmware builds for seeed_xiao_esp32c3 (65.2% of the app partition, the new 1.75 MB slot), and the web UI JS passes node --check.

Also flashed and boot-verified on a XIAO ESP32-C3 (filesystem mounts at the new offset).

🤖 Generated with Claude Code


The stack (merge top to bottom):

  1. Premium render substrate + 13 premium modes (1/7) #42 — Premium render substrate + 13 premium modes (1/7)
  2. Web UI: data/ as the single source of truth (2/7) #43 — Web UI: data/ as the single source of truth (2/7)
  3. Live viz: the channel visualizer mirrors the real strip (3/7) #44 — Live viz: the channel visualizer mirrors the real strip (3/7)
  4. WiFi observability: stop failing silently (4/7) #45 — WiFi observability: stop failing silently (4/7)
  5. 4 MB partition table: 1.75 MB A/B app slots (5/7) #46 — 4 MB partition table: 1.75 MB A/B app slots (5/7)
  6. AI prompt pipeline: key save, live model, honest outcomes (6/7) #47 — AI prompt pipeline: key save, live model, honest outcomes (6/7)
  7. Core hardening from the external review (7/7) #48 — Core hardening from the external review (7/7)

… KB fs

The C3 envs ran the stock Arduino default.csv: 1.25 MB app slots at 91% full
while the 1.375 MB LittleFS partition sat ~84% empty (the web UI needs ~220 KB
incl. gzipped copies). partitions_4mb.csv rebalances: spiffs shrinks to
384 KB (~57% used) and the freed 1 MB splits equally across both OTA slots —
app0/app1 go 1.25 MB -> 1.75 MB, dropping the build from 91% to 65% used.

nvs/otadata/coredump keep their stock offsets, so device config (WiFi etc.)
survives the repartition; only the filesystem needs a re-upload.

OTA-compat fork documented in docs/HARDWARE.md: the table change itself is a
one-time USB-serial flash, and devices on the stock layout must not OTA onto
images built for this one (a >1.25 MB app physically can't fit the old slot).
S3 envs (8/16 MB flash, also on the stock 4 MB table today) are left as-is —
retabling them is its own deliberate change.

Verified: builds at 65.2% (1,196,234 / 1,835,008); flashed to the XIAO C3 and
boot-verified on hardware.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

2 participants