public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [RFC v2 0/2] Prevent alignment issues with "in place" FIT configurations
@ 2022-11-06 15:41 Bjørn Mork
  2022-11-06 15:41 ` [RFC v2 1/2] libfdt: add fdt_alignprop Bjørn Mork
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Bjørn Mork @ 2022-11-06 15:41 UTC (permalink / raw)
  To: u-boot; +Cc: Bjørn Mork

Looking for some feedback on whether this is a problem wanting
to be solved, and if so, whether this solution would be acceptible
(after some polishing).

I recently hit alignment issues on a device where U-Boot has been
modified to force "in place" fdt loading regardless of the fdt_high
environment variable.  I realize that this is not a U-Boot problem,
but I still think that it would be worthwile to make mkimage produce
FIT images suitable for such devices.

This is only one of many possible solutions.  The libfdt changes will
obviously have to be accepted by the dtc community.  I'v posted a
similar request to the devicetree-compiler list with those changes.
The libfdt patch is included here for convenience.

The expected impact for U-Boot is only the tools/fit_image.c patch.


Bjørn 


Changes v2:
 - actually use the new fdt_alignprop() instead of an earlier PoC hack


Bjørn Mork (2):
  libfdt: add fdt_alignprop
  mkimage: Align fdt images in FIT to 8 bytes

 scripts/dtc/libfdt/fdt_rw.c          | 26 +++++++++++++++++++
 scripts/dtc/libfdt/fdt_wip.c         |  2 +-
 scripts/dtc/libfdt/libfdt.h          | 30 +++++++++++++++++++++
 scripts/dtc/libfdt/libfdt_internal.h |  1 +
 tools/fit_image.c                    | 39 ++++++++++++++++++++++++++++
 5 files changed, 97 insertions(+), 1 deletion(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-11-08  7:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-06 15:41 [RFC v2 0/2] Prevent alignment issues with "in place" FIT configurations Bjørn Mork
2022-11-06 15:41 ` [RFC v2 1/2] libfdt: add fdt_alignprop Bjørn Mork
2022-11-07 23:35   ` Simon Glass
2022-11-08  7:41     ` Bjørn Mork
2022-11-06 15:41 ` [RFC v2 2/2] mkimage: Align fdt images in FIT to 8 bytes Bjørn Mork
2022-11-07 13:33 ` [RFC v2 0/2] Prevent alignment issues with "in place" FIT configurations Bjørn Mork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox