[U-Boot] [PATCH v2 0/3] Add atmel ROM code image

Andreas Bießmann andreas.devel at googlemail.com
Fri May 16 11:59:12 CEST 2014


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.

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            |   30 ++++
 include/configs/sama5d3xek.h      |    6 +
 include/image.h                   |    1 +
 spl/Makefile                      |   18 ++
 tools/Makefile                    |    1 +
 tools/atmelimage.c                |  345 +++++++++++++++++++++++++++++++++++++
 tools/imagetool.c                 |    2 +
 tools/imagetool.h                 |    1 +
 10 files changed, 415 insertions(+)
 create mode 100644 arch/arm/cpu/armv7/at91/config.mk
 create mode 100644 tools/atmelimage.c

-- 
1.7.10.4



More information about the U-Boot mailing list