From 9edd8957a1e33cca610419ffbfadb36a8e2e6daf Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Wed, 26 Jul 2023 08:38:30 -0500 Subject: [PATCH] Add a "4MB without OTA" partition scheme This is needed on the camera board, because we have a lot of code. --- .../esp-idf-config/partitions-4MB-no-ota.csv | 7 +++++++ .../sdkconfig-4MB-no-ota.defaults | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 ports/espressif/esp-idf-config/partitions-4MB-no-ota.csv create mode 100644 ports/espressif/esp-idf-config/sdkconfig-4MB-no-ota.defaults diff --git a/ports/espressif/esp-idf-config/partitions-4MB-no-ota.csv b/ports/espressif/esp-idf-config/partitions-4MB-no-ota.csv new file mode 100644 index 0000000000..24a0695dc9 --- /dev/null +++ b/ports/espressif/esp-idf-config/partitions-4MB-no-ota.csv @@ -0,0 +1,7 @@ +# Name, Type, SubType, Offset, Size +# bootloader, app, boot, 0x1000/0x0, 28/32K +# partition_table, data, table, 0x8000, 4K +nvs, data, nvs, 0x9000, 28K +ota_0, app, ota_0, 0x10000, 2112K +uf2, app, factory, 0x220000, 256K +user_fs, data, fat, 0x260000, 1664K diff --git a/ports/espressif/esp-idf-config/sdkconfig-4MB-no-ota.defaults b/ports/espressif/esp-idf-config/sdkconfig-4MB-no-ota.defaults new file mode 100644 index 0000000000..36899aeda9 --- /dev/null +++ b/ports/espressif/esp-idf-config/sdkconfig-4MB-no-ota.defaults @@ -0,0 +1,18 @@ +# +# Serial flasher config +# +# CONFIG_ESPTOOLPY_FLASHSIZE_1MB is not set +# CONFIG_ESPTOOLPY_FLASHSIZE_2MB is not set +CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y +# CONFIG_ESPTOOLPY_FLASHSIZE_8MB is not set +# CONFIG_ESPTOOLPY_FLASHSIZE_16MB is not set +CONFIG_ESPTOOLPY_FLASHSIZE="4MB" +CONFIG_ESPTOOLPY_FLASHSIZE_DETECT=y +# end of Serial flasher config + +CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="esp-idf-config/partitions-4MB-no-ota.csv" +# +# Partition Table +# +CONFIG_PARTITION_TABLE_FILENAME="esp-idf-config/partitions-4MB-no-ota.csv" +# end of Partition Table