Define dual-OTA partition table with dsp blob slot.

Replace factory with ota_0/ota_1, otadata, and a dsp data partition on 4 MB flash; enable bootloader app rollback for future OTA work.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-07 08:57:05 +02:00
co-authored by Cursor
parent 2e44a166e1
commit 11ad6b43ad
5 changed files with 20 additions and 11 deletions
+13 -7
View File
@@ -1,7 +1,13 @@
# DigiRadio partition table
# nvs_keys supports NVS encryption (enable in secure-store slice).
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x6000,
nvs_keys, data, nvs_keys, 0xf000, 0x1000,
phy_init, data, phy, 0x10000, 0x1000,
factory, app, factory, 0x20000, 0x180000,
# DigiRadio partition table (4 MB flash — ESP32-S3-WROOM-1)
# ota_0 + ota_1: dual OTA app slots (equal size, 64 KiB aligned).
# dsp: updatable ADAU1701 program blob (task 3.1).
# nvs_keys: NVS encryption keys (secure-store slice).
# First flash after this layout: idf.py erase-flash flash (wired), not OTA.
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x6000,
otadata, data, ota, 0xf000, 0x2000,
nvs_keys, data, nvs_keys, 0x11000, 0x1000,
phy_init, data, phy, 0x12000, 0x1000,
ota_0, app, ota_0, 0x20000, 0x1B0000,
ota_1, app, ota_1, 0x1D0000, 0x1B0000,
dsp, data, 0x40, 0x380000, 0x40000,
1 # DigiRadio partition table # DigiRadio partition table (4 MB flash — ESP32-S3-WROOM-1)
2 # nvs_keys supports NVS encryption (enable in secure-store slice). # ota_0 + ota_1: dual OTA app slots (equal size, 64 KiB aligned).
3 # Name, Type, SubType, Offset, Size, Flags # dsp: updatable ADAU1701 program blob (task 3.1).
4 nvs, data, nvs, 0x9000, 0x6000, # nvs_keys: NVS encryption keys (secure-store slice).
5 nvs_keys, data, nvs_keys, 0xf000, 0x1000, # First flash after this layout: idf.py erase-flash flash (wired), not OTA.
6 phy_init, data, phy, 0x10000, 0x1000, # Name, Type, SubType, Offset, Size, Flags
7 factory, app, factory, 0x20000, 0x180000, nvs, data, nvs, 0x9000, 0x6000,
8 otadata, data, ota, 0xf000, 0x2000,
9 nvs_keys, data, nvs_keys, 0x11000, 0x1000,
10 phy_init, data, phy, 0x12000, 0x1000,
11 ota_0, app, ota_0, 0x20000, 0x1B0000,
12 ota_1, app, ota_1, 0x1D0000, 0x1B0000,
13 dsp, data, 0x40, 0x380000, 0x40000,