[PATCH v3 1/2] riscv: ax25: bypass malloc when spl fit boots from ram
Leo Liang
ycliang at andestech.com
Tue Jan 31 15:59:23 CET 2023
On Wed, Jan 04, 2023 at 09:55:43AM +0800, Rick Chen wrote:
> When fit image boots from ram, the payload will
> be prepared in the address of SPL_LOAD_FIT_ADDRESS.
> In spl fit generic flow, it will malloc another
> memory address and copy whole fit image to this
> malloc address. But it is un-necessary for booting
> from RAM.
>
> This patch improves this flow by declare the
> board_spl_fit_buffer_addr() to replace the original one.
> The larger image size (eq: Kernel Image 10~20MB), it
> can save more booting time.
>
> Signed-off-by: Rick Chen <rick at andestech.com>
> ---
> Changes in v3
> - fix aligment
> - refine board_spl_fit_buffer_addr
> ---
> arch/riscv/cpu/ax25/Makefile | 1 +
> arch/riscv/cpu/ax25/spl.c | 27 +++++++++++++++++++++++++++
> 2 files changed, 28 insertions(+)
> create mode 100644 arch/riscv/cpu/ax25/spl.c
>
Reviewed-by: Leo Yu-Chi Liang <ycliang at andestech.com>
More information about the U-Boot
mailing list