From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:ESP-IDF partition table" |
|---|
| claim | "The OTA selection entry in each otadata sector: ota_seq, 20-byte label, ota_state, CRC32 of ota_seq only; the slot booted is (ota_seq-1) mod app count." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "ESP-IDF partition table" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "esp_ota_select_entry_t" |
|---|
| size | "0x20" |
|---|
| endianness | "little" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "ota_seq" |
|---|
|
| offset | "0x4" |
|---|
| size | 20 |
|---|
| type | "uint8_t[20]" |
|---|
| name | "seq_label" |
|---|
|
| offset | "0x18" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "ota_state" |
|---|
|
| offset | "0x1C" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "crc" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "esp_ota_img_states_t values and esp_ota_select_entry_t; bootloader_utility.c lines 361-362 and 440-442 map ota_seq - 1 modulo app_count to the slot; two copies at ota_info.offset + 0x1000*i." |
|---|
| repo | "https://github.com/espressif/esp-idf" |
|---|
| commit | "1c42e514c90ae621af33bde3b6ad3dac22edcbfd" |
|---|
| path | "components/bootloader_support/include/esp_flash_partitions.h" |
|---|
| lines | "63-83" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T02:17:44.419Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:38:05.508Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read esp_ota_select_entry_t in esp_flash_partitions.h (lines 74-79) at the cited commit: uint32 ota_seq, uint8 seq_label[20], uint32 ota_state, uint32 crc (CRC32 of ota_seq only) = 4+20+4+4 = 32; the header comment says 32 bytes and two copies." |
|---|
|
|
|---|