uboot/common
mario.six@gdsys.cc e8fb4358c2 common: fit: Allow U-Boot images to be booted
In certain circumstances it comes in handy to be able to boot into a second
U-Boot. But as of now it is not possible to boot a U-Boot binary that is inside
a FIT image, which is problematic for projects that e.g. need to guarantee a
unbroken chain of trust from SOC all the way into the OS, since the FIT signing
mechanism cannot be used.

This patch adds the capability to load such FIT images.

An example .its snippet (utilizing signature verification) might look
like the following:

images {
	firmware@1 {
		description = "2nd stage U-Boot image";
		data = /incbin/("u-boot-dtb.img.gz");
		type = "firmware";
		arch = "arm";
		os = "u-boot";
		compression = "gzip";
		load = <0x8FFFC0>;
		entry = <0x900000>;
		signature@1 {
			algo = "sha256,rsa4096";
			key-name-hint = "key";
		};
	};
};

Signed-off-by: Mario Six <mario.six@gdsys.cc>
Reviewed-by: Tom Rini <trini@konsulko.com>
2016-07-25 12:00:05 -04:00
..
eeprom cmd: eeprom: add support for layout aware commands 2016-05-20 17:02:07 -04:00
init bootstage: call show_boot_progress also in SPL 2016-06-09 13:53:08 -04:00
spl spl: fit: Fix the number of bytes read in raw mode 2016-07-22 14:46:25 -04:00
Kconfig Kconfig: Move option CONFIG_SYS_NO_FLASH to Kconfig 2016-07-22 14:06:11 +02:00
Makefile hush: complete renaming CONFIG_SYS_HUSH_PARSER to CONFIG_HUSH_PARSER 2016-06-24 17:24:34 -04:00
autoboot.c autoboot: move bootdelay >= 0 check to abortboot() 2016-07-01 17:42:56 -04:00
bedbug.c
board_f.c Merge git://git.denx.de/u-boot-fsl-qoriq 2016-07-19 16:38:57 -04:00
board_info.c
board_r.c dm: scsi: Rename CONFIG_CMD_SCSI to CONFIG_SCSI 2016-05-17 09:54:43 -06:00
bootm.c bootm: fixup silent Linux out of BOOTM_STATE_LOADOS state 2016-07-14 18:22:44 -04:00
bootm_os.c sandbox: Don't exit when bootm completes 2016-07-14 18:22:32 -04:00
bootretry.c
bootstage.c
bouncebuf.c
cli.c hush: complete renaming CONFIG_SYS_HUSH_PARSER to CONFIG_HUSH_PARSER 2016-06-24 17:24:34 -04:00
cli_hush.c
cli_readline.c
cli_simple.c
command.c
console.c
cros_ec.c
ddr_spd.c
dlmalloc.c malloc: improve memalign fragmentation fix 2016-05-23 11:50:17 -04:00
dlmalloc.src
edid.c
env_attr.c
env_callback.c
env_common.c Various, unrelated tree-wide typo fixes. 2016-07-16 09:43:12 -04:00
env_dataflash.c
env_eeprom.c env_eeprom invalidates gd->env_addr by setting it to an offset value 2016-04-11 12:44:37 -04:00
env_embedded.c
env_ext4.c common: Fix support for environment file in EXT4 2016-06-24 17:24:35 -04:00
env_fat.c
env_flags.c
env_flash.c
env_mmc.c dm: env: mmc: Convert env_mmc to support CONFIG_BLK 2016-05-27 10:23:08 -06:00
env_nand.c nand: Embed mtd_info in struct nand_chip 2016-06-03 20:27:48 -05:00
env_nowhere.c
env_nvram.c
env_onenand.c
env_remote.c
env_sata.c common: env: support sata device 2016-04-18 12:29:14 -04:00
env_sf.c dm: spi: Read default speed and mode values from DT 2016-07-09 20:16:34 +05:30
env_ubi.c common: env_ubi: Clear environment buffer before reading 2016-06-13 06:41:20 +02:00
exports.c
fb_mmc.c common: block: fix compiler error with CONFIG_FASTBOOT_FLASH_MMC_DEV 2016-07-11 14:06:44 -06:00
fb_nand.c fastboot: sparse: implement reserve() 2016-06-27 16:37:39 -04:00
fdt_support.c fdt: Document the rest of struct of_bus 2016-05-25 23:13:38 +02:00
flash.c
hash.c
hwconfig.c
ide.c dm: ide: Add support for driver-model block devices 2016-05-17 09:54:43 -06:00
image-android.c common: image: minimal android image iminfo support 2016-06-24 17:23:07 -04:00
image-fdt.c
image-fit.c common: fit: Allow U-Boot images to be booted 2016-07-25 12:00:05 -04:00
image-sig.c
image-sparse.c fastboot: sparse: improve CHUNK_TYPE_FILL write performance 2016-06-27 16:37:39 -04:00
image.c image: Add functions to obtain category information 2016-07-14 18:22:30 -04:00
iomux.c
iotrace.c
kallsyms.c
kgdb.c Fix spelling of "occurred". 2016-05-02 18:37:09 -04:00
kgdb_stubs.c
lcd.c
lcd_console.c
lcd_console_rotation.c
lcd_simplefb.c
lynxkdi.c
main.c Drop use of CONFIG_SYS_GENERIC_BOARD in U-Boot 2016-05-27 15:39:54 -04:00
malloc_simple.c
memsize.c
menu.c
miiphyutil.c
s_record.c
sata.c dm: sata: Add support for driver-model block devices 2016-05-17 09:54:43 -06:00
scsi.c dm: scsi: if_typename should be scsi 2016-06-06 13:39:12 -04:00
splash.c
splash_source.c splash_source: add support for ubifs formatted nand 2016-06-14 05:33:02 +02:00
stdio.c
system_map.c
update.c
usb.c usb: move CONFIG_USB_XHCI to Kconfig with renaming 2016-06-04 00:43:53 +02:00
usb_hub.c usb: hub: Don't continue on get_port_status failure 2016-05-06 20:06:56 +02:00
usb_kbd.c usb: kbd: Do not deregister usbkbd twice when using dm 2016-04-10 17:18:42 +02:00
usb_storage.c dm: blk: Add a easier way to create a named block device 2016-05-17 09:54:43 -06:00
xyzModem.c