Skip to content

Add atmel ROM code image

Andreas Bießmann u-boot 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesNew
  2. v23 patches 0 repliesSuperseded
  3. v1 RFC2 patches 0 repliesSuperseded

Changes in v3 from the cover letter

* 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

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mkimage: add atmelimagecommon/image.c include/image.h tools/Makefile +3 more+348 -01 reply
1/3mkimage: add atmelimage+0 -00 replies
2/3arm:at91: enable ROM loadable atmel imagearch/arm/cpu/armv7/at91/config.mk doc/README.atmel_pmecc spl/Makefile +2 more+95 -00 replies
2/3arm:at91: enable ROM loadable atmel image+0 -00 replies
3/3sama5d3xek: enable PMECC header generationinclude/configs/sama5d3xek.h+1 -00 replies
3/3sama5d3xek: enable PMECC header generation+0 -00 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchBo Shen
1/3T-b A-b
1/3T-b A-b
2/3
2/3
3/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [U-Boot] [PATCH v3 0/3] Add atmel ROM code image

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
Signature · 1 line
1.7.10.4