]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
Add bootscript support to esbc_validate.
authorgaurav rana <gaurav.rana@freescale.com>
Tue, 10 Mar 2015 08:38:50 +0000 (14:08 +0530)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:29:26 +0000 (22:29 +0200)
commit81f78afb2547ff363a71535da02e32c37de1605f
treeccb46900e19014d19e77507503e5946ee8fb1068
parent506223a54684702be1d98596f2103b8231d4592f
Add bootscript support to esbc_validate.

1. Default environment will be used for secure boot flow
 which can't be edited or saved.
2. Command for secure boot is predefined in the default
 environment which will run on autoboot (and autoboot is
 the only option allowed in case of secure boot) and it
 looks like this:
 #define CONFIG_SECBOOT \
 "setenv bs_hdraddr 0xe8e00000;"                 \
 "esbc_validate $bs_hdraddr;"                    \
 "source $img_addr;"                             \
 "esbc_halt;"
 #endif
3. Boot Script can contain esbc_validate commands and bootm command.
 Uboot source command used in default secure boot command will
 run the bootscript.
4. Command esbc_halt added to ensure either bootm executes
 after validation of images or core should just spin.

Signed-off-by: Ruchika Gupta <ruchika.gupta@freescale.com>
Signed-off-by: Gaurav Rana <gaurav.rana@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
arch/arm/include/asm/fsl_secure_boot.h [new file with mode: 0644]
arch/powerpc/include/asm/fsl_secure_boot.h
board/freescale/common/cmd_esbc_validate.c
include/config_fsl_secboot.h [new file with mode: 0644]
include/configs/ls1021aqds.h