From 1b4413f12899ca89c9dd561deccda4f302fed470 Mon Sep 17 00:00:00 2001 From: Peter Jakobs Date: Sat, 4 Jan 2025 09:46:03 +0100 Subject: [PATCH] add a base hardware config without 'factory' partition to allow two large OTA partitions --- Sming/Arch/Esp32/single-rom-for-ota.hw | 42 ++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Sming/Arch/Esp32/single-rom-for-ota.hw diff --git a/Sming/Arch/Esp32/single-rom-for-ota.hw b/Sming/Arch/Esp32/single-rom-for-ota.hw new file mode 100644 index 0000000000..2fa54b2ba8 --- /dev/null +++ b/Sming/Arch/Esp32/single-rom-for-ota.hw @@ -0,0 +1,42 @@ +{ + "name": "OTA base config with single ROM", + "arch": "Esp32", + "comment": "ota base config to eliminate the factory partition and instead build two rom partitions.", + "bootloader_size": "0x8000", + "partition_table_offset": "0x8000", + "devices": { + "spiFlash": { + "type": "flash", + "size": "4M", + "mode": "dio", + "speed": "60 if SMING_SOC=='esp32c2' else 40" + } + }, + "partitions": { + "phy_init": { + "address": "0x00f000", + "size": "0x1000", + "type": "data", + "subtype": "phy" + }, + "nvs": { + "address": "0x009000", + "size": "0x6000", + "type": "data", + "subtype": "nvs" + }, + "rom0": { + "address": "0x010000", + "size": "0x0f0000", + "type": "app", + "subtype": "ota_0", + "filename": "$(TARGET_BIN)" + }, + "otadata":{ + "address":"0x3fe000", + "size":"8k", + "type":"data", + "subtype":"ota" + } + } +}