summaryrefslogtreecommitdiff
path: root/tools/amlimage.c
AgeCommit message (Collapse)Author
2026-01-19tools: amlimage: include <inttypes.h>Robert Marko
PRIuN, PRIxN, etc macros are defined in <inttypes.h>, without it being included errors like: tools/amlimage.c:124:38: error: expected ‘)’ before ‘PRIu8’ tools/amlimage.c:126:31: error: expected ‘)’ before ‘PRIu32’ Can be hit depending on the host compiler and HOSTCFLAGS. Fixes: 18c1654567dc ("tools: mkimage: Add Amlogic Boot Image type") Signed-off-by: Robert Marko <[email protected]> Reviewed-by: Mark Kettenis <[email protected]> Reviewed-by: Ferass El Hafidi <[email protected]>
2025-12-11tools: mkimage: Add Amlogic Boot Image typeJonas Karlman
Add support for creating an Amlogic Boot Image that pass CHK in BL1 on Amlogic AArch64 SoCs. Images can optionally be signed for secure boot scenario, however creation of signed images has not been implemented. Example of how to use it: # Create an amlogic boot image tools/mkimage -T amlimage -n gxbb -d u-boot-spl.bin u-boot-amlogic.bin # List boot image header information tools/mkimage -l u-boot-amlogic.bin # Extract amlogic boot image payload tools/dumpimage -T amlimage -o bl2-payload.bin u-boot-amlogic.bin Or with binman using something like: binman { u-boot-amlogic { filename = "u-boot-amlogic.bin"; pad-byte = <0xff>; mkimage { filename = "bl2.bin"; args = "-n", "gxbb", "-T", "amlimage"; u-boot-spl { }; }; }; }; Reviewed-by: Neil Armstrong <[email protected]> Signed-off-by: Jonas Karlman <[email protected]> [Ferass: check digest type in _print_header, version in _verify_image] Signed-off-by: Ferass El Hafidi <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Neil Armstrong <[email protected]>