From 04427c993458cbd0e15db564e233d2a6730f1b8d Mon Sep 17 00:00:00 2001 From: Me No Dev Date: Tue, 4 Jun 2024 07:58:39 +0300 Subject: [PATCH] feat(partition): Add 4MB No File System partition scheme (#9769) Adds partition scheme with two apps, 2MB each. --- boards.txt | 24 ++++++++++++++++++++++++ tools/partitions/no_fs.csv | 6 ++++++ 2 files changed, 30 insertions(+) create mode 100644 tools/partitions/no_fs.csv diff --git a/boards.txt b/boards.txt index 3464c892c21..fb0ede504e4 100644 --- a/boards.txt +++ b/boards.txt @@ -87,6 +87,9 @@ esp32c2.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SP esp32c2.menu.PartitionScheme.default.build.partitions=default esp32c2.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS) esp32c2.menu.PartitionScheme.defaultffat.build.partitions=default_ffat +esp32c2.menu.PartitionScheme.no_fs=No FS 4MB (2MB APP x2) +esp32c2.menu.PartitionScheme.no_fs.build.partitions=no_fs +esp32c2.menu.PartitionScheme.no_fs.upload.maximum_size=2031616 esp32c2.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS) esp32c2.menu.PartitionScheme.no_ota.build.partitions=no_ota esp32c2.menu.PartitionScheme.no_ota.upload.maximum_size=2097152 @@ -223,6 +226,9 @@ esp32h2.menu.PartitionScheme.default_8MB.build.partitions=default_8MB esp32h2.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336 esp32h2.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS) esp32h2.menu.PartitionScheme.minimal.build.partitions=minimal +esp32h2.menu.PartitionScheme.no_fs=No FS 4MB (2MB APP x2) +esp32h2.menu.PartitionScheme.no_fs.build.partitions=no_fs +esp32h2.menu.PartitionScheme.no_fs.upload.maximum_size=2031616 esp32h2.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS) esp32h2.menu.PartitionScheme.no_ota.build.partitions=no_ota esp32h2.menu.PartitionScheme.no_ota.upload.maximum_size=2097152 @@ -400,6 +406,9 @@ esp32c6.menu.PartitionScheme.default_8MB.build.partitions=default_8MB esp32c6.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336 esp32c6.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS) esp32c6.menu.PartitionScheme.minimal.build.partitions=minimal +esp32c6.menu.PartitionScheme.no_fs=No FS 4MB (2MB APP x2) +esp32c6.menu.PartitionScheme.no_fs.build.partitions=no_fs +esp32c6.menu.PartitionScheme.no_fs.upload.maximum_size=2031616 esp32c6.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS) esp32c6.menu.PartitionScheme.no_ota.build.partitions=no_ota esp32c6.menu.PartitionScheme.no_ota.upload.maximum_size=2097152 @@ -666,6 +675,9 @@ esp32s3.menu.PartitionScheme.default_8MB.build.partitions=default_8MB esp32s3.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336 esp32s3.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS) esp32s3.menu.PartitionScheme.minimal.build.partitions=minimal +esp32s3.menu.PartitionScheme.no_fs=No FS 4MB (2MB APP x2) +esp32s3.menu.PartitionScheme.no_fs.build.partitions=no_fs +esp32s3.menu.PartitionScheme.no_fs.upload.maximum_size=2031616 esp32s3.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS) esp32s3.menu.PartitionScheme.no_ota.build.partitions=no_ota esp32s3.menu.PartitionScheme.no_ota.upload.maximum_size=2097152 @@ -828,6 +840,9 @@ esp32c3.menu.PartitionScheme.default_8MB.build.partitions=default_8MB esp32c3.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336 esp32c3.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS) esp32c3.menu.PartitionScheme.minimal.build.partitions=minimal +esp32c3.menu.PartitionScheme.no_fs=No FS 4MB (2MB APP x2) +esp32c3.menu.PartitionScheme.no_fs.build.partitions=no_fs +esp32c3.menu.PartitionScheme.no_fs.upload.maximum_size=2031616 esp32c3.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS) esp32c3.menu.PartitionScheme.no_ota.build.partitions=no_ota esp32c3.menu.PartitionScheme.no_ota.upload.maximum_size=2097152 @@ -1026,6 +1041,9 @@ esp32s2.menu.PartitionScheme.default_8MB.build.partitions=default_8MB esp32s2.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336 esp32s2.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS) esp32s2.menu.PartitionScheme.minimal.build.partitions=minimal +esp32s2.menu.PartitionScheme.no_fs=No FS 4MB (2MB APP x2) +esp32s2.menu.PartitionScheme.no_fs.build.partitions=no_fs +esp32s2.menu.PartitionScheme.no_fs.upload.maximum_size=2031616 esp32s2.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS) esp32s2.menu.PartitionScheme.no_ota.build.partitions=no_ota esp32s2.menu.PartitionScheme.no_ota.upload.maximum_size=2097152 @@ -1199,6 +1217,9 @@ esp32.menu.PartitionScheme.default_8MB.build.partitions=default_8MB esp32.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336 esp32.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS) esp32.menu.PartitionScheme.minimal.build.partitions=minimal +esp32.menu.PartitionScheme.no_fs=No FS 4MB (2MB APP x2) +esp32.menu.PartitionScheme.no_fs.build.partitions=no_fs +esp32.menu.PartitionScheme.no_fs.upload.maximum_size=2031616 esp32.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS) esp32.menu.PartitionScheme.no_ota.build.partitions=no_ota esp32.menu.PartitionScheme.no_ota.upload.maximum_size=2097152 @@ -1369,6 +1390,9 @@ esp32da.menu.PartitionScheme.default_8MB.build.partitions=default_8MB esp32da.menu.PartitionScheme.default_8MB.upload.maximum_size=3342336 esp32da.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS) esp32da.menu.PartitionScheme.minimal.build.partitions=minimal +esp32da.menu.PartitionScheme.no_fs=No FS 4MB (2MB APP x2) +esp32da.menu.PartitionScheme.no_fs.build.partitions=no_fs +esp32da.menu.PartitionScheme.no_fs.upload.maximum_size=2031616 esp32da.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS) esp32da.menu.PartitionScheme.no_ota.build.partitions=no_ota esp32da.menu.PartitionScheme.no_ota.upload.maximum_size=2097152 diff --git a/tools/partitions/no_fs.csv b/tools/partitions/no_fs.csv new file mode 100644 index 00000000000..a9078ee522f --- /dev/null +++ b/tools/partitions/no_fs.csv @@ -0,0 +1,6 @@ +# Name, Type, SubType, Offset, Size, Flags +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,