diff options
author | Vinitha V Pillai <vinitha.pillai@nxp.com> | 2019-04-23 08:52:17 +0300 |
---|---|---|
committer | Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com> | 2019-05-22 09:54:24 +0300 |
commit | 78c58082a926b4e4c5dda4332bec1016e778f670 (patch) | |
tree | 63267ea2bb8972d58c0f85a626ee4394b0f44fa6 /include/configs/ls1012ardb.h | |
parent | 4dde343d7e9938e781feb3fbe360d6a7befa48f6 (diff) | |
download | u-boot-78c58082a926b4e4c5dda4332bec1016e778f670.tar.xz |
armv8: Secure Boot: Modify boot_a_script definition
esbc_validate command will not be executed if “load” command for its
header fails and will further execute the source command for bootscript,
without its validation and boot process continues.
To halt the boot process in case secure boot header is not loaded
successfully, esbc_validate command is invoked separately after “load”
command. The secure boot validation of the bootscript header will fail
(if header is not loaded) and halts the boot process, which prevent source
command from execution.
Signed-off-by: Vinitha V Pillai <vinitha.pillai@nxp.com>
Signed-off-by: Udit Agarwal <udit.agarwal@nxp.com>
Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Diffstat (limited to 'include/configs/ls1012ardb.h')
-rw-r--r-- | include/configs/ls1012ardb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/configs/ls1012ardb.h b/include/configs/ls1012ardb.h index f149a604cf..f6640fa499 100644 --- a/include/configs/ls1012ardb.h +++ b/include/configs/ls1012ardb.h @@ -98,7 +98,8 @@ "${scriptaddr} ${prefix}${script}; " \ "env exists secureboot && load ${devtype} " \ "${devnum}:${distro_bootpart} " \ - "${scripthdraddr} ${prefix}${boot_script_hdr} " \ + "${scripthdraddr} ${prefix}${boot_script_hdr}; " \ + "env exists secureboot " \ "&& esbc_validate ${scripthdraddr};" \ "source ${scriptaddr}\0" \ "installer=load mmc 0:2 $load_addr " \ |