Add support for creating an Amlogic Boot Image that pass CHK in BL1 on
Amlogic AArch64 SoCs.

The first patch add the new amlimage type. The second patch add a eMMC
relocation workaround that can be used to generate a boot image that can
be booted from both eMMC and SD-card on GXBB.

The amlimage type and the eMMC relocation workaround is loosely based on
my prior work, aml_chksum, a small tool that can write boot image
headers with updated offsets and checksums, see [1].

This has been tested booting a very limited U-Boot SPL on boards with
e.g. S905, S922X, S905X3 and A311D SoCs.

[1] 
https://github.com/Kwiboo/u-boot/commit/6d0a17632922077a2e64b13ae1a6bdf0024b718f

Jonas Karlman (2):
  tools: mkimage: Add Amlogic Boot Image type
  tools: amlimage: Add support for GXBB eMMC header

 MAINTAINERS                    |   1 +
 boot/image.c                   |   1 +
 include/image.h                |   1 +
 tools/Makefile                 |   1 +
 tools/amlimage-gxbb-relocate.c |  79 +++++++++
 tools/amlimage.c               | 283 +++++++++++++++++++++++++++++++++
 6 files changed, 366 insertions(+)
 create mode 100644 tools/amlimage-gxbb-relocate.c
 create mode 100644 tools/amlimage.c

-- 
2.47.1

Reply via email to