From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:FIT image" |
|---|
| claim | "For a FIT image with external data, an image node's data-position is used as the offset as is, while data-offset is added to the FDT total size rounded up to 4 bytes; data-size gives the length." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:FIT image" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "image node has data-position or data-offset instead of data" |
|---|
| effect | "data-position: offset used directly (checked first); data-offset: base is (fdt_totalsize(fit)+3)&~3 plus data-offset" |
|---|
| condition | "data-position wins when both properties exist" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Read the property getters and both places that compute the external offset: position first, else offset plus totalsize aligned to 4. Property names in include/image.h 1184-1186." |
|---|
| repo | "u-boot/u-boot" |
|---|
| commit | "8d534cec0cc0109a37c0ded8854da03f1526dc0e" |
|---|
| path | "boot/image-fit.c" |
|---|
| lines | "971, 996, 1085-1100, 2209-2216" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "External data position" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T08:59:00.808Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T09:31:03.339Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read u-boot boot/image-fit.c at 8d534ce: fit_image_get_data (lines ~1075-1100) and the loader at ~2209-2216: data-position tried first and used as is; else data-offset plus ((fdt_totalsize+3)&~3) (ALIGN(...,4)); data-size read separately. Both functions agree." |
|---|
|
|
|---|