esphome / esphome/backlog

Minimal OTA partition

Open
#83 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

There have been discussions about increasing the available OTA size by having a partition that is dedicated just for OTA which would have a size of around 800 kb. That partition would be responsible for loading the larger partition. Would not need to cut the OTA size in half.

See: https://discord.com/channels/429907082951524364/1448714313270296679
And: https://discord.com/channels/429907082951524364/1352210180674293890/1451634341665837198

Can switch partitions using:
```
// Get the first OTA partition (ota_0)
const esp_partition_t *ota_0 = esp_partition_find_first(
ESP_PARTITION_TYPE_APP,
ESP_PARTITION_SUBTYPE_APP_OTA_0,
NULL
);

if (ota_0 != NULL) {
esp_err_t err = esp_ota_set_boot_partition(ota_0);
if (err == ESP_OK) {
// Reboot to apply
esp_restart();
}
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.