Home
last modified time | relevance | path

Searched refs:boot_index (Results 1 – 2 of 2) sorted by relevance

/device/soc/esp/esp32/components/bootloader/subproject/main/
Dbootloader_start.c47 int boot_index = select_partition_number(&bs); in call_start_cpu0() local
48 if (boot_index == INVALID_INDEX) { in call_start_cpu0()
53 bootloader_utility_load_boot_image(&bs, boot_index); in call_start_cpu0()
75 int boot_index = bootloader_utility_get_selected_boot_partition(bs); in selected_boot_partition() local
76 if (boot_index == INVALID_INDEX) { in selected_boot_partition()
77 …return boot_index; // Unrecoverable failure (not due to corrupt ota data or bad partition contents) in selected_boot_partition()
101 boot_index = TEST_APP_INDEX; in selected_boot_partition()
102 return boot_index; in selected_boot_partition()
114 return boot_index; in selected_boot_partition()
/device/soc/esp/esp32/components/bootloader_support/src/
Dbootloader_utility.c320 int boot_index = FACTORY_INDEX; local
352 boot_index = FACTORY_INDEX;
355 boot_index = 0;
382 boot_index = ota_seq % bs->app_count; // Actual OTA partition selection
383 ESP_LOGD(TAG, "Mapping seq %d -> OTA slot %d", ota_seq, boot_index);
394 update_anti_rollback(&bs->ota[boot_index]);
400 boot_index = FACTORY_INDEX;
403 boot_index = FACTORY_INDEX;
407 return boot_index;