[U-Boot] [PATCH] fdt: Fix uncompress_blob() for U-Boot proper

sjg at google.com sjg at google.com
Thu Nov 22 20:21:55 UTC 2018


On Thu, 18 Oct 2018 at 12:38, Marek Vasut <marek.vasut at gmail.com> wrote:
>
> When U-Boot proper is compiled with CONFIG_MULTI_DTB_FIT and tries
> to call uncompress_blob(), it fails with -ENOTSUPP. This is because
> the full implementation of this function which includes compression
> is available only in SPL. In U-Boot proper or if the compression is
> not enabled, the blob is not compressed and thus can be passed to
> locate_dtb_in_fit() in fdtdec_setup() without any changes. Pass the
> blob without any changes if compression is not enabled instead of
> failing.
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas at gmail.com>
> Cc: Michal Simek <michal.simek at xilinx.com>
> Cc: Tom Rini <trini at konsulko.com>
> ---
>  lib/fdtdec.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot-dm/master, thanks!


More information about the U-Boot mailing list