[PATCH v3] mkimage: Default to 8-byte alignment for DTBs added via -b argument
Marek Vasut
marek.vasut at mailbox.org
Tue Jan 27 12:40:50 CET 2026
On 1/27/26 8:46 AM, Beleswar Prasad Padhi wrote:
[...]
>> "
>> diff --git a/tools/fit_image.c b/tools/fit_image.c
>> index 0306333141e..0c606ba4cc3 100644
>> --- a/tools/fit_image.c
>> +++ b/tools/fit_image.c
>> @@ -642,9 +642,15 @@ static int fit_extract_data(struct image_tool_params *params, const char *fname)
>> for (node = fdt_first_subnode(fdt, images);
>> node >= 0;
>> node = fdt_next_subnode(fdt, node)) {
>> - const char *data;
>> + const char *data, *type;
>> int len;
>>
>> + if (align_size < 8) {
>
>
> Do we need this check?
> Although unlikely, but should we account for mkimage invocations
> with -B > 0x8 and not a multiple of 8?
Yes, you should, that's a good point.
More information about the U-Boot
mailing list