u-boot-brain/tools
Charles Manning 832472a94d tools: socfpga: Add socfpga preloader signing to mkimage
Like many platforms, the Altera socfpga platform requires that the
preloader be "signed" in a certain way or the built-in boot ROM will
not boot the code.

This change automatically creates an appropriately signed preloader
from an SPL image.

The signed image includes a CRC which must, of course, be generated
with a CRC generator that the SoCFPGA boot ROM agrees with otherwise
the boot ROM will reject the image.

Unfortunately the CRC used in this boot ROM is not the same as the
Adler CRC in lib/crc32.c. Indeed the Adler code is not technically a
CRC but is more correctly described as a checksum.

Thus, the appropriate CRC generator is added to lib/ as crc32_alt.c.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Chin Liang See <clsee@altera.com>
Cc: Dinh Nguyen <dinguyen@altera.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Tom Rini <trini@ti.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Pavel Machek <pavel@denx.de>
Acked-by: Pavel Machek <pavel@denx.de>

V2: - Zap unused constant
    - Explicitly print an error message in case of error
    - Rework the hdr_checksum() function to take the *header directly
      instead of a plan buffer pointer
2014-10-06 17:38:17 +02:00
..
bddb
buildman buildman: Fix the logic for the bloat command 2014-09-21 12:03:07 -06:00
easylogo tools: convert makefiles to kbuild style 2014-02-19 11:07:49 -05:00
env tools/env: change stripping strategy to allow no-stripping 2014-09-24 18:30:27 -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
palmtreo680
patman patman: Add a -m option to avoid copying the maintainers 2014-09-21 12:03:07 -06:00
scripts kbuild: move asm-offsets.h rules to ./Kbuild 2014-02-25 11:01:28 -05:00
.gitignore .gitignore: move *.exe pattern to the top gitignore for Cygwin 2014-06-11 16:27:05 -04:00
aisimage.c
aisimage.h
atmel_pmecc_params.c arm:at91: enable ROM loadable atmel image 2014-05-27 00:10:49 +02:00
atmelimage.c mkimage: add atmelimage 2014-05-27 00:10:48 +02:00
bin2header.c
bmp_logo.c
default_image.c
dumpimage.c
dumpimage.h includes: move openssl headers to include/u-boot 2014-06-19 11:19:04 -04:00
envcrc.c
fdt_host.h tools, fit_check_sign: verify a signed fit image 2014-03-21 16:40:38 -04:00
fit_check_sign.c Enhance fit_check_sign to check all images 2014-06-19 11:19:02 -04:00
fit_common.c mkimage: Automatically make space in FDT when full 2014-06-11 16:25:46 -04:00
fit_common.h mkimage: Automatically make space in FDT when full 2014-06-11 16:25:46 -04:00
fit_image.c mkimage: Automatically make space in FDT when full 2014-06-11 16:25:46 -04:00
fit_info.c tools, fit_info: increase buffer for command name 2014-08-14 11:20:24 +02:00
gen_eth_addr.c
genboardscfg.py tools/genboardscfg.py: pick up also commented maitainers 2014-09-24 18:30:28 -04:00
getline.c
getline.h
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-host.c tools: fix typo in tools/image-host.c 2014-08-14 11:20:01 +02:00
imagetool.c tools: socfpga: Add socfpga preloader signing to mkimage 2014-10-06 17:38:17 +02:00
imagetool.h tools: socfpga: Add socfpga preloader signing to mkimage 2014-10-06 17:38:17 +02:00
img2brec.sh
img2srec.c
imximage.c imximage: Fix imximage IVT bug for EIM-NOR boot 2014-09-09 16:39:02 +02:00
imximage.h tools: imximage: Fix the maximum DCD size for mx53/mx6 2014-09-09 16:23:00 +02:00
jtagconsole
kwbimage.c
kwbimage.h
kwboot.c
Makefile tools: socfpga: Add socfpga preloader signing to mkimage 2014-10-06 17:38:17 +02:00
mingw_support.c
mingw_support.h
mkenvimage.c
mkexynosspl.c SPL: EXYNOS: Prepare for variable size SPL support 2013-12-30 16:50:35 +09:00
mkimage.c mkimage: fix compilation issues on OpenBSD 2014-08-14 11:48:11 +02:00
mkimage.h includes: move openssl headers to include/u-boot 2014-06-19 11:19:04 -04:00
mksunxiboot.c sunxi: mksunxiboot: Fix loading of files with a size which is not a multiple of 4 2014-07-06 17:41:13 +01:00
mpc86x_clk.c
mxsboot.c
mxsimage.c tools: Refactor mxsimage to use pbl_crc32 2014-06-05 14:38:38 -04:00
mxsimage.h
ncb.c
netconsole
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
os_support.h
pbl_crc32.c mkimage : Split out and clean pbl_crc32 for use by other image types 2014-06-05 14:38:38 -04:00
pbl_crc32.h mkimage : Split out and clean pbl_crc32 for use by other image types 2014-06-05 14:38:38 -04:00
pblimage.c mkimage : Split out and clean pbl_crc32 for use by other image types 2014-06-05 14:38:38 -04:00
pblimage.h
proftool.c
relocate-rela.c relocate-rela: replace a magic number with sizeof(Elf64_Rela) 2014-02-13 15:16:47 +01:00
socfpgaimage.c tools: socfpga: Add socfpga preloader signing to mkimage 2014-10-06 17:38:17 +02:00
ublimage.c
ublimage.h
ubsha1.c includes: move openssl headers to include/u-boot 2014-06-19 11:19:04 -04:00
xway-swap-bytes.c