
Hi Tim,
On Thu, 20 Jul 2023 at 08:40, Tim van der Staaij | Zign Tim.vanderstaaij@zigngroup.com wrote:
I wonder if we should adjust mkimage to use -B 8 as the default?
Ah, overlooked this option. I ran a test with -B 8 and by itself it doesn't fix the issue. However, as the manpage notes, -B is only effective when -E is also used. And indeed, using -E -B 8 does avoid misalignment when the device tree is used in-place.
Sounds like a good fix to me, but I don't know if there would be broader consequences of defaulting to -E? It sounds like this changes the structure of the fitimage rather dramatically.
Yes it does, see [1]. But there are some advantages to having all the nodes/properties at the start of the file.
Regards, Simon
[1] https://u-boot.readthedocs.io/en/latest/usage/fit/source_file_format.html#ex...