tools: spkgimage: add Renesas SPKG format
authorRalph Siemsen <ralph.siemsen@linaro.org>
Sat, 13 May 2023 01:36:57 +0000 (21:36 -0400)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 13 May 2023 02:01:30 +0000 (04:01 +0200)
commitafdfcb11f97cc6d96cb8cca10e35960b54466364
treeae08b779b8e2530be3eeb4b33af06357305e41bd
parente87c869db3620c9b03b4364e144c19387d7bfd7a
tools: spkgimage: add Renesas SPKG format

Renesas RZ/N1 devices contain BootROM code that loads a custom SPKG
image from QSPI, NAND or USB DFU. Support this format in mkimage tool.

SPKGs can optionally be signed, however creation of signed SPKG is not
currently supported.

Example of how to use it:

tools/mkimage -n board/schneider/rzn1-snarc/spkgimage.cfg \
-T spkgimage -a 0x20040000 -e 0x20040000 \
-d u-boot.bin u-boot.bin.spkg

The config file (spkgimage.cfg in this example) contains additional
parameters such as NAND ECC settings.

Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
board/schneider/rzn1-snarc/spkgimage.cfg [new file with mode: 0644]
boot/image.c
doc/mkimage.1
include/image.h
tools/Makefile
tools/renesas_spkgimage.c [new file with mode: 0644]
tools/renesas_spkgimage.h [new file with mode: 0644]