u-boot/tools
Andreas Bießmann 7b1a411743 mkimage: add atmelimage
The new atmelimage converts a machine code BLOB to bootable ROM image. Atmel
ROM has no sophisticated image format, it only checks the first 7 ARM vectors.
The vectors can contain valid B or LDR opcodes, the 6'th vector contains the
image size to load.

Additionally the PMECC header can be written by the atmelimage target. The
parameters must be given via the -n switch as a coma separated list. For
example:

mkimage -T atmelimage \
 -n usePmecc=1,sectorPerPage=4,sectorSize=512,spareSize=64,eccBits=4,eccOffset=36 \
 -d spl/u-boot-spl.bin boot.bin

A provided image can be checked for correct header setup. It prints out the
PMECC header parameters if it has one and the 6'th interrupt vector content.

---8<---
Image Type:	ATMEL ROM-Boot Image with PMECC Header
		PMECC header
		====================
		eccOffset:        36
		sectorSize:      512
		eccBitReq:         4
		spareSize:        64
		nbSectorPerPage:   4
		usePmecc:          1
		====================
		6'th vector has 17044 set
--->8---

A SPL binary modified with the atmelimage mkimage target was succesfully
booted on a sama5d34ek via MMC and NAND.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Cc: Bo Shen <voice.shen@atmel.com>
Cc: Heiko Schocher <hs@denx.de>
Tested-by: Bo Shen <voice.shen@atmel.com>
2014-05-27 00:10:48 +02:00
..
bddb Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
buildman buildman: make output dir configurable 2014-04-18 16:14:13 -04:00
easylogo tools: convert makefiles to kbuild style 2014-02-19 11:07:49 -05:00
env tools: env: Add aes.c placeholder 2014-05-12 15:20:05 -04:00
gdb Makefile: move BFD_ROOT_DIR to tools/gdb/Makefile 2014-02-19 11:07:50 -05:00
kermit tools: move kermit files to tools/kermit directory 2014-01-24 16:59:07 -05:00
logos logos: Update of the syteco company logo 2014-05-05 11:21:23 +02:00
omap Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
palmtreo680 pxa: palmtreo680 flash programming utility 2013-06-22 15:25:28 +02:00
patman patman: Suppress duplicate signoffs only for real patches 2014-05-16 11:42:29 -07:00
scripts kbuild: move asm-offsets.h rules to ./Kbuild 2014-02-25 11:01:28 -05:00
.gitignore sunxi: non-FEL SPL boot support for sun7i 2014-05-25 16:31:03 +02:00
aisimage.c tools: moved code common to all image tools to a separated module. 2013-12-13 09:15:32 -05:00
aisimage.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
atmelimage.c mkimage: add atmelimage 2014-05-27 00:10:48 +02:00
bin2header.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
bmp_logo.c tools, bmp_logo: fix index from uint16_t to int to allow bigger logos 2013-08-10 10:48:00 +02:00
crc32.c tools: convert makefiles to kbuild style 2014-02-19 11:07:49 -05:00
default_image.c Add dumpimage, a tool to extract data from U-Boot images 2013-12-13 09:15:32 -05:00
dumpimage.c Add dumpimage, a tool to extract data from U-Boot images 2013-12-13 09:15:32 -05:00
dumpimage.h Add dumpimage, a tool to extract data from U-Boot images 2013-12-13 09:15:32 -05:00
env_embedded.c tools: convert makefiles to kbuild style 2014-02-19 11:07:49 -05:00
envcrc.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fdt.c tools: convert makefiles to kbuild style 2014-02-19 11:07:49 -05:00
fdt_host.h tools, fit_check_sign: verify a signed fit image 2014-03-21 16:40:38 -04:00
fdt_ro.c tools: convert makefiles to kbuild style 2014-02-19 11:07:49 -05:00
fdt_rw.c tools: convert makefiles to kbuild style 2014-02-19 11:07:49 -05:00
fdt_strerror.c tools: convert makefiles to kbuild style 2014-02-19 11:07:49 -05:00
fdt_wip.c tools: convert makefiles to kbuild style 2014-02-19 11:07:49 -05:00
fdtdec.c tools, fit_check_sign: verify a signed fit image 2014-03-21 16:40:38 -04:00
fit_check_sign.c tools, fit_check_sign: verify a signed fit image 2014-03-21 16:40:38 -04:00
fit_common.c tools, fit: add fit_info host command 2014-03-21 16:39:37 -04:00
fit_common.h tools, fit: add fit_info host command 2014-03-21 16:39:37 -04:00
fit_image.c tools, fit: add fit_info host command 2014-03-21 16:39:37 -04:00
fit_info.c tools, fit: add fit_info host command 2014-03-21 16:39:37 -04:00
gen_eth_addr.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
getline.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
getline.h getline: split out for darwin systems 2010-01-26 00:07:13 +01:00
gpheader.h tools: mkimage: add support for gpimage format 2014-04-17 17:24:38 -04:00
gpimage-common.c tools: mkimage: add support for gpimage format 2014-04-17 17:24:38 -04:00
gpimage.c tools: mkimage: add support for gpimage format 2014-04-17 17:24:38 -04:00
image-fit.c tools: convert makefiles to kbuild style 2014-02-19 11:07:49 -05:00
image-host.c tools, fit_check_sign: verify a signed fit image 2014-03-21 16:40:38 -04:00
image-sig.c tools: convert makefiles to kbuild style 2014-02-19 11:07:49 -05:00
image.c tools: convert makefiles to kbuild style 2014-02-19 11:07:49 -05:00
imagetool.c mkimage: add atmelimage 2014-05-27 00:10:48 +02:00
imagetool.h mkimage: add atmelimage 2014-05-27 00:10:48 +02:00
img2brec.sh Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
img2srec.c img2srec: use standard types 2009-11-24 23:43:18 +01:00
imximage.c tools: moved code common to all image tools to a separated module. 2013-12-13 09:15:32 -05:00
imximage.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
jtagconsole Blackfin: jtagconsole: disable output processing 2010-07-25 15:17:23 -04:00
kwbimage.c tools: moved code common to all image tools to a separated module. 2013-12-13 09:15:32 -05:00
kwbimage.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
kwboot.c kwboot: boot kirkwood SoCs over a serial link 2012-07-07 14:07:32 +02:00
Makefile mkimage: add atmelimage 2014-05-27 00:10:48 +02:00
md5.c tools: convert makefiles to kbuild style 2014-02-19 11:07:49 -05:00
mingw_support.c Add LGPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:45:01 -04:00
mingw_support.h Add LGPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:45:01 -04:00
mkenvimage.c tools/Makefile: Move _GNU_SOURCE to Makefile 2013-08-16 13:45:15 -04:00
mkexynosspl.c SPL: EXYNOS: Prepare for variable size SPL support 2013-12-30 16:50:35 +09:00
mkimage.c tools: moved code common to all image tools to a separated module. 2013-12-13 09:15:32 -05:00
mkimage.h tools: moved code common to all image tools to a separated module. 2013-12-13 09:15:32 -05:00
mksunxiboot.c sunxi: non-FEL SPL boot support for sun7i 2014-05-25 16:31:03 +02:00
mpc86x_clk.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mxsboot.c tools: mxsboot: Mark the FCB pages as valid 2013-09-10 19:12:54 +02:00
mxsimage.c Merge branch 'master' of git://git.denx.de/u-boot-arm 2014-01-10 10:56:00 -05:00
mxsimage.h ARM: mxs: tools: Add mkimage support for MXS bootstream 2013-08-31 15:26:52 +02:00
ncb.c ncb: Check return value of write() 2009-04-28 01:16:46 +02:00
netconsole net: Make netconsole src and dest ports configurable 2012-09-24 13:17:24 -05:00
omapimage.c tools: mkimage: add support for gpimage format 2014-04-17 17:24:38 -04:00
omapimage.h tools: mkimage: add support for gpimage format 2014-04-17 17:24:38 -04:00
os_support.c Add LGPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:45:01 -04:00
os_support.h Add LGPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:45:01 -04:00
pblimage.c tools: moved code common to all image tools to a separated module. 2013-12-13 09:15:32 -05:00
pblimage.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
proftool.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
reformat.py Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
relocate-rela.c relocate-rela: replace a magic number with sizeof(Elf64_Rela) 2014-02-13 15:16:47 +01:00
rsa-checksum.c tools, fit_check_sign: verify a signed fit image 2014-03-21 16:40:38 -04:00
rsa-sign.c tools: convert makefiles to kbuild style 2014-02-19 11:07:49 -05:00
rsa-verify.c tools, fit_check_sign: verify a signed fit image 2014-03-21 16:40:38 -04:00
sha1.c tools: convert makefiles to kbuild style 2014-02-19 11:07:49 -05:00
sha256.c fit: add sha256 support 2014-03-21 16:39:33 -04:00
ublimage.c tools: moved code common to all image tools to a separated module. 2013-12-13 09:15:32 -05:00
ublimage.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
ubsha1.c Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
xway-swap-bytes.c MIPS: INCA-IP: rename inca-swap-bytes host tool 2011-07-31 23:25:41 +09:00