This series add atmelimage support to mkimage. An atmelimage is a quite dumb image type cause it has no real header. The file is mostly unmodified but the 6'th ARM vector gets replaced by the image size to load.
Heiko, I know your approach setting the vector in start.S but I think this solution is a bit smarter. We would need to patch at least 2 start.S files (arm926ejs and armv7), maybe also the arm920t one too. In fact is the conversion of executable BLOB to ROM detected executable BLOB something that should really be done afterwards as all other SoC vendors do. In version 2 of this patchset the atmelimage mkimage target can also generate PMECC NAND header. In version 3 of this patchset the new host tool atmel_pmecc_params generate the configuration string for mkimage with the same settings used in atmel_nand driver. Changes in v3: * remove check for 'usePmecc=y' * add atmel_pmecc_params host tool, it generates an appropriate string for mkimage -n switch with compiled in values also used in atmel_nand driver * use CONFIG_SPL_GENERATE_ATMEL_PMECC_HEADER Changes in v2: * do not check filesize in atmelimage * add PMECC header generation and printout * add printout of 6'th vector * add -n switch to mkimage for PMECC type NAND and CONFIG_SYS_NANDFLASH Andreas Bießmann (3): mkimage: add atmelimage arm:at91: enable ROM loadable atmel image sama5d3xek: enable PMECC header generation arch/arm/cpu/armv7/at91/config.mk | 10 ++ common/image.c | 1 + doc/README.atmel_pmecc | 21 +++ include/configs/sama5d3xek.h | 1 + include/image.h | 1 + spl/Makefile | 11 ++ tools/Makefile | 3 + tools/atmel_pmecc_params.c | 51 ++++++ tools/atmelimage.c | 342 +++++++++++++++++++++++++++++++++++++ tools/imagetool.c | 2 + tools/imagetool.h | 1 + 11 files changed, 444 insertions(+) create mode 100644 arch/arm/cpu/armv7/at91/config.mk create mode 100644 tools/atmel_pmecc_params.c create mode 100644 tools/atmelimage.c -- 1.7.10.4 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot