[U-Boot] [PATCH v4 1/2] fit: Support compression for non-kernel components (e.g. FDT)
Simon Glass
sjg at chromium.org
Fri May 17 02:34:12 UTC 2019
On Wed, 15 May 2019 at 16:30, Julius Werner <jwerner at chromium.org> wrote:
>
> This patch adds support for compressing non-kernel image nodes in a FIT
> image (kernel nodes could already be compressed previously). This can
> reduce the size of FIT images and therefore improve boot times
> (especially when an image bundles many different kernel FDTs). The
> images will automatically be decompressed on load.
>
> This patch does not support extracting compatible strings from
> compressed FDTs, so it's not very helpful in conjunction with
> CONFIG_FIT_BEST_MATCH yet, but it can already be used in environments
> that select the configuration to load explicitly.
>
> Signed-off-by: Julius Werner <jwerner at chromium.org>
> ---
> - Changes for v2:
> - Changed from only supporting compressed FDTs to supporting all
> non-kernel image node types.
> - Changes for v3:
> - Fixed up some debug output that was still written for v1.
> - Fixed a mistake with handling FIT_LOAD_OPTIONAL_NON_ZERO when
> 'load' was 0 (i.e. unset).
> - Added compression test case to the test_fit pytest.
> - No changes for v4
>
> common/image-fit.c | 86 +++++++++++++++++++++++----------------
> test/py/tests/test_fit.py | 29 +++++++++++--
> 2 files changed, 77 insertions(+), 38 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list