public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v3 0/3] Add atmel ROM code image
@ 2014-05-19 12:23 Andreas Bießmann
  2014-05-19 12:23 ` [U-Boot] [PATCH v3 1/3] mkimage: add atmelimage Andreas Bießmann
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Andreas Bießmann @ 2014-05-19 12:23 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-05-26 22:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-19 12:23 [U-Boot] [PATCH v3 0/3] Add atmel ROM code image Andreas Bießmann
2014-05-19 12:23 ` [U-Boot] [PATCH v3 1/3] mkimage: add atmelimage Andreas Bießmann
2014-05-20  1:42   ` Bo Shen
2014-05-26 22:12   ` [U-Boot] [U-Boot,v3,1/3] " Andreas Bießmann
2014-05-19 12:23 ` [U-Boot] [PATCH v3 2/3] arm:at91: enable ROM loadable atmel image Andreas Bießmann
2014-05-26 22:12   ` [U-Boot] [U-Boot,v3,2/3] " Andreas Bießmann
2014-05-19 12:23 ` [U-Boot] [PATCH v3 3/3] sama5d3xek: enable PMECC header generation Andreas Bießmann
2014-05-26 22:12   ` [U-Boot] [U-Boot,v3,3/3] " Andreas Bießmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox