[PATCH v5 22/25] spl: spl_legacy: fix the use of SPL_COPY_PAYLOAD_ONLY

Daniel Schwierzeck daniel.schwierzeck at gmail.com
Wed May 18 00:00:12 CEST 2022



On 16.05.22 04:44, Weijie Gao wrote:
> If the payload is compressed, SPL_COPY_PAYLOAD_ONLY should always be set
> since the payload will not be directly read to its load address. The
> payload will first be read to a temporary buffer, and then be decompressed
> to its load address, without image header.
> 
> If the payload is not compressed, and SPL_COPY_PAYLOAD_ONLY is set, image
> header should be skipped on loading. Otherwise image header should also be
> read to its load address.
> 
> Signed-off-by: Weijie Gao <weijie.gao at mediatek.com>
> ---
> v5 changes: none
> v4 changes: new
> ---
>   common/spl/spl_legacy.c | 21 +++++++++++++++++++--
>   1 file changed, 19 insertions(+), 2 deletions(-)
> 

Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck at gmail.com>

-- 
- Daniel


More information about the U-Boot mailing list