[U-Boot] [PATCH 8/9] spl: dm: Make it possible for the SPL to pick its own DTB from a FIT

Tom Rini trini at konsulko.com
Mon Jul 24 13:29:12 UTC 2017


On Thu, Jul 20, 2017 at 07:02:35PM +0200, Jean-Jacques Hiblot wrote:

> u-boot can be embedded within a FIT image with multiple DTBs. It then
> selects at run-time  which one is best suited for the platform.
> Use the same principle here for the SPL: put the DTBs in a FIT image,
> compress it (LZO, GZIP, or no compression) and append it at the end of the
> SPL.
> 
> Signed-off-by: Jean-Jacques Hiblot <jjhiblot at ti.com>
> ---
>  dts/Kconfig          | 76 ++++++++++++++++++++++++++++++++++++++++++++++
>  lib/fdtdec.c         | 85 ++++++++++++++++++++++++++++++++++++++++++++++------
>  scripts/Makefile.spl | 35 +++++++++++++++++++++-
>  3 files changed, 186 insertions(+), 10 deletions(-)
> 
> diff --git a/dts/Kconfig b/dts/Kconfig
> index c78438a..2b9ea42 100644
> --- a/dts/Kconfig
> +++ b/dts/Kconfig
> @@ -118,6 +118,82 @@ config MULTI_DTB_FIT
>  	  the correct DTB to be used. Use this if you need to support
>  	  multiple DTBs but don't use the SPL.
>  
> +
> +config SPL_MULTI_DTB_FIT
> +	depends on SPL_LOAD_FIT && SPL_OF_CONTROL && !SPL_OF_PLATDATA
> +	bool "support embedding several DTBs in a FIT image for the SPL"
> +	default n

n is the default already, please add some help.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170724/fd6f22b8/attachment.sig>


More information about the U-Boot mailing list