[PATCH PATCH v6 04/13] spl: fit: allocate a temporary buffer to load the overlays
Simon Glass
sjg at chromium.org
Mon Dec 30 02:21:28 CET 2019
On Tue, 22 Oct 2019 at 08:40, Jean-Jacques Hiblot <jjhiblot at ti.com> wrote:
>
> If the node describing an overlay does not specify a load address, it will
> be loaded at the address previously used.
> Fixing it by allocating a temporary buffer that will be used as a
> default load address. By default, the size of the buffer is 64kB which
> should be plenty for most use cases.
>
> Signed-off-by: Jean-Jacques Hiblot <jjhiblot at ti.com>
>
> ---
>
> Changes in v6: None
> Changes in v5:
> - Do not allocate the buffer if not needed (no overlay).
> - Add a Kconfig option for the buffer size
>
> Changes in v4:
> - make sure that the temp buffer is freed in all cases
>
> Changes in v3: None
> Changes in v2: None
>
> Kconfig | 9 +++++++++
> common/spl/spl_fit.c | 34 +++++++++++++++++++++++++++++-----
> 2 files changed, 38 insertions(+), 5 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list