Entry_fit's @fdt-SEQ generator copies the node's "compression" property
into the FIT. However, it embeds the raw .dtb. A FIT can therefore claim
"compression = lzma" while holding uncompressed data and SPL will fail
to decompress it during boot.

The patchset fixes the following:
 - Patch 1 makes the generator act on the property (lzma onl)
 - Patch 2 adds the test device trees
 - Patch 3 adds the tests covering both the lzma round trip
   and the unsupported-algorithm error.
 - Patch 4 uses it on Rockchip where the shared @fdt-SEQ template gets
   FIT_FDT_COMP, "lzma" when SPL_LZMA is enabled and "none" otherwise

Signed-off-by: Petr Hodina <[email protected]>
---
Petr Hodina (4):
      binman: fit: Actually compress generated fdt images
      binman: test: Add fit fdt compression device trees
      binman: test: Check compression of generated fit fdt images
      rockchip: LZMA-compress the FDT image in the FIT based on FIT_FDT_COMP

 arch/arm/dts/rockchip-u-boot.dtsi      |  8 +++-
 tools/binman/etype/fit.py              | 12 ++++++
 tools/binman/ftest.py                  | 29 ++++++++++++++
 tools/binman/test/fit/fdt_bad_comp.dts | 72 ++++++++++++++++++++++++++++++++++
 tools/binman/test/fit/fdt_lzma.dts     | 72 ++++++++++++++++++++++++++++++++++
 5 files changed, 192 insertions(+), 1 deletion(-)
---
base-commit: ece349ade2973e220f524ce59e59711cc919263f
change-id: 20261010-b4-binman-fit-fdt-compression-3166bcbd15b5

Best regards,
--  
Petr Hodina <[email protected]>


Reply via email to