From c9117aa37d1d9d408c92284671e08bd4248da0b5 Mon Sep 17 00:00:00 2001
From: Jens Nolte <jens@nightmarestudio.de>
Date: Wed, 17 Jun 2020 16:21:18 +0200
Subject: [PATCH] Change partition layout to two 1.5M ota partitions (no
 factory)

---
 partitions.csv | 7 +++++++
 sdkconfig      | 6 +++---
 2 files changed, 10 insertions(+), 3 deletions(-)
 create mode 100644 partitions.csv

diff --git a/partitions.csv b/partitions.csv
new file mode 100644
index 0000000..48c1ff7
--- /dev/null
+++ b/partitions.csv
@@ -0,0 +1,7 @@
+# ESP-IDF Partition Table
+# Name,   Type, SubType, Offset,   Size, Flags
+nvs,      data, nvs,     0x9000,   0x4000,
+otadata,  data, ota,     0xd000,   0x2000,
+phy_init, data, phy,     0xf000,   0x1000,
+ota_0,    0,    ota_0,   0x10000,  0x180000,
+ota_1,    0,    ota_1,   0x190000, 0x180000,
diff --git a/sdkconfig b/sdkconfig
index f2c3873..8456789 100644
--- a/sdkconfig
+++ b/sdkconfig
@@ -66,10 +66,10 @@ CONFIG_ESPTOOLPY_MONITOR_BAUD_115200B=y
 CONFIG_ESPTOOLPY_MONITOR_BAUD_OTHER_VAL=115200
 CONFIG_ESPTOOLPY_MONITOR_BAUD=115200
 # CONFIG_PARTITION_TABLE_SINGLE_APP is not set
-CONFIG_PARTITION_TABLE_TWO_OTA=y
-# CONFIG_PARTITION_TABLE_CUSTOM is not set
+# CONFIG_PARTITION_TABLE_TWO_OTA is not set
+CONFIG_PARTITION_TABLE_CUSTOM=y
 CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
-CONFIG_PARTITION_TABLE_FILENAME="partitions_two_ota.csv"
+CONFIG_PARTITION_TABLE_FILENAME="partitions.csv"
 CONFIG_PARTITION_TABLE_OFFSET=0x8000
 CONFIG_PARTITION_TABLE_MD5=y
 CONFIG_ENABLE_ARDUINO_DEPENDS=y
-- 
GitLab