Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(esp32): added option to add partition before app_0 #592

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions platforms/esp32/Makefile.build
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ ESP_IDF_EXTRA_PARTITION ?=
ESP_IDF_EXTRA_PARTITION_1 ?=
ESP_IDF_EXTRA_PARTITION_2 ?=
ESP_IDF_EXTRA_PARTITION_3 ?=
# Partition will be placed before all other mOS partitions.
ESP_IDF_EXTRA_BEFORE_PARTITION ?=

MGOS_UPDATE_BOOT_LOADER ?= false

Expand Down Expand Up @@ -77,6 +79,7 @@ export ESP_IDF_EXTRA_PARTITION
export ESP_IDF_EXTRA_PARTITION_1
export ESP_IDF_EXTRA_PARTITION_2
export ESP_IDF_EXTRA_PARTITION_3
export ESP_IDF_EXTRA_BEFORE_PARTITION
export NVS_ADDR ?= 0x9000
export NVS_SIZE ?= 0x4000
export APP_OFFSET ?= 0x10000
Expand Down
1 change: 1 addition & 0 deletions platforms/esp32/src/partitions_mgos.csv
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# Name, Type, SubType, Offset, Size Flags
nvs, data, nvs, $NVS_ADDR, $NVS_SIZE,
otadata, data, ota, $OTA_DATA_ADDR, $OTA_DATA_SIZE, encrypted
$ESP_IDF_EXTRA_BEFORE_PARTITION
app_0, app, ota_0, $APP_OFFSET, $APP_SLOT_SIZE, encrypted
fs_0, data, spiffs, , $MGOS_ROOT_FS_SIZE, $FS_PART_ENCR_FLAG
app_1, app, ota_1, , $APP_SLOT_SIZE, encrypted
Expand Down