Home
last modified time | relevance | path

Searched refs:active_otadata (Results 1 – 3 of 3) sorted by relevance

/device/soc/esp/esp32/components/app_update/
Desp_ota_ops.c423 int active_otadata = bootloader_common_get_active_otadata(otadata); in esp_rewrite_ota_data() local
424 if (active_otadata != -1) { in esp_rewrite_ota_data()
425 uint32_t seq = otadata[active_otadata].ota_seq; in esp_rewrite_ota_data()
430 … int next_otadata = (~active_otadata)&1; // if 0 -> will be next 1. and if 1 -> will be next 0. in esp_rewrite_ota_data()
529 int active_otadata = bootloader_common_get_active_otadata(otadata); in esp_ota_get_boot_partition() local
530 if (active_otadata != -1) { in esp_ota_get_boot_partition()
531 …int ota_slot = (otadata[active_otadata].ota_seq - 1) % ota_app_count; // Actual OTA partition sele… in esp_ota_get_boot_partition()
722 int active_otadata = bootloader_common_get_active_otadata(otadata); in esp_ota_current_ota_is_workable() local
723 if (active_otadata != -1 && get_ota_partition_count() != 0) { in esp_ota_current_ota_is_workable()
724 if (valid == true && otadata[active_otadata].ota_state != ESP_OTA_IMG_VALID) { in esp_ota_current_ota_is_workable()
[all …]
/device/soc/esp/esp32/components/bootloader_support/src/
Dbootloader_common_loader.c97 int active_otadata = -1; in bootloader_common_select_otadata() local
101 active_otadata = 0; in bootloader_common_select_otadata()
103 active_otadata = 1; in bootloader_common_select_otadata()
109 active_otadata = i; in bootloader_common_select_otadata()
115 return active_otadata; in bootloader_common_select_otadata()
Dbootloader_utility.c365 int active_otadata = bootloader_common_get_active_otadata(otadata); local
377 int active_otadata = get_active_otadata_with_check_anti_rollback(bs, otadata);
379 if (active_otadata != -1) {
380 ESP_LOGD(TAG, "Active otadata[%d]", active_otadata);
381 …uint32_t ota_seq = otadata[active_otadata].ota_seq - 1; // Raw OTA sequence number. May be more th…
385 if (otadata[active_otadata].ota_state == ESP_OTA_IMG_NEW) {
386 … ESP_LOGD(TAG, "otadata[%d] is selected as new and marked PENDING_VERIFY state", active_otadata);
387 otadata[active_otadata].ota_state = ESP_OTA_IMG_PENDING_VERIFY;
388 …write_otadata(&otadata[active_otadata], bs->ota_info.offset + FLASH_SECTOR_SIZE * active_otadata, …
393 if (otadata[active_otadata].ota_state == ESP_OTA_IMG_VALID) {