Hi, digging this out after two years [1] ;-) I fixed the minor comments from v1 and rebased it, then repeated the tests. Apart from two trivial fixes there were no changes, so I kept the R-b: tags. For a changelog see below.
================== So far creating a bootable SPL image for Allwinner based boards uses the mksunxiboot tool. Most other platforms seemed to have integrated this kind of functionality into the common mkimage tool. Since there is nothing special about the Allwinner image in this respect, just add support for the so-called "eGON" image type into mkimage. If there was a particular reason this hasn't been done before, please let me know. This will eventually allow us to remove mksunxiboot, but I leave it around for now in case of regressions and since some people depend on it from external projects. Patch 1/2 adds the actual support to mkimage, patch 2/2 then switches the Makefile to use mkimage instead of mksunxiboot. I tested all 152 Allwinner boards by building each u-boot-sunxi-with-spl.bin and comparing them against the version created using mksunxiboot (using SOURCE_DATE_EPOCH and .scmversion to create reproducible builds, and by reverting just patch 2/2). All files before and after were identical. Cheers, Andre [1] https://lists.denx.de/pipermail/u-boot/2018-December/352798.html Changelog v1 .. v2: - Drop already merged cleanup patch (v1 1/3) - replace relative include path - remove already defined ALIGN macro - rebase against current master Andre Przywara (2): tools: mkimage: Add Allwinner eGON support sunxi: Use mkimage for SPL boot image generation common/image.c | 1 + include/image.h | 1 + scripts/Makefile.spl | 8 +-- tools/Makefile | 1 + tools/sunxi_egon.c | 133 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 140 insertions(+), 4 deletions(-) create mode 100644 tools/sunxi_egon.c -- 2.17.5