diff options
author | Simon Glass <sjg@chromium.org> | 2019-07-08 23:25:28 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-07-24 22:53:46 +0300 |
commit | cf2289435c7e1134c75d9217ef32238aec0ecdbf (patch) | |
tree | 9c58722f695d50ffae4968f0b89a30b1af201908 /tools/binman/test/118_fdtmap_hdr_pos.dts | |
parent | 086cec9f980efd6f25e184b84f626d4a667e6645 (diff) | |
download | u-boot-cf2289435c7e1134c75d9217ef32238aec0ecdbf.tar.xz |
binman: Add an image header
It is useful to be able to quickly locate the FDT map in the image. An
easy way to do this is with a pointer at the start or end of the image.
Add an 'image header' entry, which places a magic number followed by a
pointer to the FDT map. This can be located at the start or end of the
image, or at a chosen location.
As part of this, update GetSiblingImagePos() to detect missing siblings.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/test/118_fdtmap_hdr_pos.dts')
-rw-r--r-- | tools/binman/test/118_fdtmap_hdr_pos.dts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/binman/test/118_fdtmap_hdr_pos.dts b/tools/binman/test/118_fdtmap_hdr_pos.dts new file mode 100644 index 0000000000..fd803f57fb --- /dev/null +++ b/tools/binman/test/118_fdtmap_hdr_pos.dts @@ -0,0 +1,19 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + size = <0x400>; + sort-by-offset; + u-boot { + offset = <0x100>; + }; + fdtmap { + }; + image-header { + offset = <0x80>; + }; + }; +}; |