[U-Boot] [PATCH v2 4/4] rockchip: mkimage: update rkimage to support pre-padded payloads
Simon Glass
sjg at chromium.org
Sun Mar 26 02:40:11 UTC 2017
On 15 March 2017 at 05:08, Philipp Tomsich
<philipp.tomsich at theobroma-systems.com> wrote:
> To simplify the creation of AArch64 SPL images for the RK3399, we
> use the ENABLE_ARM_SOC_BOOT0_HOOK option and prepend 4 bytes of
> padding at the start of the text section. This makes it easy for
> mkimage to rewrite this word with the 'RK33' boot magic.
>
> This change brings logic to calculate the header size and allocate
> the header back in sync. For the RK3399 we now limit the header to
> before the payload (i.e. the 'header0' and the padding up to the
> actual image) and overwrite the first word (inserted by the
> boot0-hook for this purpose) with the 'RK33' magic in-place.
>
> X-AffectedPlatforms: RK3399-Q7
> Signed-off-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
> Tested-by: Klaus Goger <klaus.goger at theobroma-systems.com>
>
> ---
>
> Changes in v2:
> - Change rkimage to overwrite this padding for the RK3399 instead of
> inserting an artificial 'nop'
>
> tools/rkcommon.c | 31 +++++++++++++------------------
> tools/rkcommon.h | 13 -------------
> 2 files changed, 13 insertions(+), 31 deletions(-)
Applied to u-boot-rockchip, thanks!
More information about the U-Boot
mailing list