• Ye Li's avatar
    MLK-16758-4 SPL: Add HAB image authentication to FIT · 078dd4ee
    Ye Li authored
    Introduce two board level callback functions to FIT image loading process, and
    a SPL_FIT_FOUND flag to differentiate FIT image or RAW image.
    
    Implement functions in imx common SPL codes to call HAB funtion
    to authenticate the FIT image. Generally, we have to sign multiple regions
    in FIT image:
    1. Sign FIT FDT data (configuration)
    2. Sign FIT external data (Sub-images)
    
    Because the CSF supports to sign multiple memory blocks, so that we can use one
    signature to cover all regions in FIT image and only authenticate once.
    The authentication should be done after the entire FIT image is loaded into
    memory including all sub-images.
    We use "-p" option to generate FIT image to reserve a space for FIT IVT
    and FIT CSF, also this help to fix the offset of the external data (u-boot-nodtb.bin,
    ATF, u-boot DTB).
    
    The signed FIT image layout is as below:
    --------------------------------------------------
    |     |     |     |   |           |     |        |
    | FIT | FIT | FIT |   | U-BOOT    | ATF | U-BOOT |
    | FDT | IVT | CSF |   | nodtb.bin |     |   DTB  |
    |     |     |     |   |           |     |        |
    --------------------------------------------------
    Signed-off-by: default avatarYe Li <ye.li@nxp.com>
    Reviewed-by: default avatarPeng Fan <peng.fan@nxp.com>
    078dd4ee
Name
Last commit
Last update
..
eeprom Loading commit data...
init Loading commit data...
spl Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
autoboot.c Loading commit data...
bedbug.c Loading commit data...
board_f.c Loading commit data...
board_info.c Loading commit data...
board_r.c Loading commit data...
bootm.c Loading commit data...
bootm_os.c Loading commit data...
bootretry.c Loading commit data...
bootstage.c Loading commit data...
bouncebuf.c Loading commit data...
cli.c Loading commit data...
cli_hush.c Loading commit data...
cli_readline.c Loading commit data...
cli_simple.c Loading commit data...
cmd_fsl_caam.c Loading commit data...
command.c Loading commit data...
common_fit.c Loading commit data...
console.c Loading commit data...
cros_ec.c Loading commit data...
ddr_spd.c Loading commit data...
dfu.c Loading commit data...
dlmalloc.c Loading commit data...
dlmalloc.src Loading commit data...
edid.c Loading commit data...
env_attr.c Loading commit data...
env_callback.c Loading commit data...
env_common.c Loading commit data...
env_dataflash.c Loading commit data...
env_eeprom.c Loading commit data...
env_embedded.c Loading commit data...
env_ext4.c Loading commit data...
env_fat.c Loading commit data...
env_flags.c Loading commit data...
env_flash.c Loading commit data...
env_mmc.c Loading commit data...
env_nand.c Loading commit data...
env_nowhere.c Loading commit data...
env_nvram.c Loading commit data...
env_onenand.c Loading commit data...
env_remote.c Loading commit data...
env_sata.c Loading commit data...
env_sf.c Loading commit data...
env_ubi.c Loading commit data...
exports.c Loading commit data...
fb_mmc.c Loading commit data...
fb_nand.c Loading commit data...
fdt_support.c Loading commit data...
flash.c Loading commit data...
hash.c Loading commit data...
hwconfig.c Loading commit data...
ide.c Loading commit data...
image-android.c Loading commit data...
image-fdt.c Loading commit data...
image-fit.c Loading commit data...
image-sig.c Loading commit data...
image-sparse.c Loading commit data...
image.c Loading commit data...
iomux.c Loading commit data...
iotrace.c Loading commit data...
kallsyms.c Loading commit data...
kgdb.c Loading commit data...
kgdb_stubs.c Loading commit data...
lcd.c Loading commit data...
lcd_console.c Loading commit data...
lcd_console_rotation.c Loading commit data...
lcd_simplefb.c Loading commit data...
lynxkdi.c Loading commit data...
main.c Loading commit data...
malloc_simple.c Loading commit data...
memsize.c Loading commit data...
menu.c Loading commit data...
miiphyutil.c Loading commit data...
s_record.c Loading commit data...
sata.c Loading commit data...
scsi.c Loading commit data...
splash.c Loading commit data...
splash_source.c Loading commit data...
stdio.c Loading commit data...
system_map.c Loading commit data...
update.c Loading commit data...
usb.c Loading commit data...
usb_hub.c Loading commit data...
usb_kbd.c Loading commit data...
usb_storage.c Loading commit data...
xyzModem.c Loading commit data...