Files
slate32/partitions.csv
T
evan 2b0355a148 feat: reclaim the spiffs partition, sync the clock, show it on the launcher
Nothing in this firmware ever mounted internal flash storage: apps, lib, settings and
themes all live on the SD card. The Arduino default table still reserved 1408K for
spiffs, so a custom table hands that to the OTA slots instead, taking each from 1280K
to 1984K. The 64K tail the slots cannot use goes to coredump, which otherwise logs a
missing-partition error on every boot. Changing the table shifts app0, so the next
flash must be a full one.

The ESP32 has no battery-backed clock, so time is 1970 on every power-up. net.cpp
seeds it from the build timestamp -- the device cannot predate its own firmware, and
certificate validity checks need a plausible clock before SNTP can answer -- then
starts SNTP on each join and latches a synced flag from the notification callback.
sntp_get_sync_status() only reports COMPLETED briefly before resetting for the next
cycle, so polling it would make the clock flap.

sys.clockSynced() is the only new binding a clock UI needs; Lua's os.date() already
reads the same system clock. The launcher shows it, in UTC for now.
2026-08-01 16:51:52 -04:00

14 lines
795 B
CSV

# No spiffs partition: every file this firmware reads lives on the SD card, so the
# 1408K the Arduino default table reserved for internal flash storage goes to the OTA
# slots instead. nvs stays because the WiFi driver keeps its PHY calibration there.
# The slots are the same size deliberately: an image that fit one but not the other
# would update successfully once and then refuse to. That leaves a 64K tail the app
# slots cannot use, which is exactly what coredump wants: without it every boot logs
# "No core dump partition found".
# Name, Type, SubType, Offset, Size
nvs, data, nvs, 0x9000, 0x5000
otadata, data, ota, 0xe000, 0x2000
app0, app, ota_0, 0x10000, 0x1F0000
app1, app, ota_1, 0x200000, 0x1F0000
coredump, data, coredump,0x3F0000, 0x10000