armv8: Secure Boot: Modify boot_a_script definition
PATCH 1/1 armv8: Secure Boot: Modify boot_a_script definition
boot_script_hdr does not exist, it should not continue to boot. So adding separate validation after loading boot_script
Signed-off-by Vinitha V Pillai <[email protected]>
--- include/configs/ls1012afrwy.h | 3 ++- include/configs/ls1012ardb.h | 3 ++- include/configs/ls1021atwr.h | 3 ++- include/configs/ls1043a_common.h | 3 ++- include/configs/ls1046a_common.h | 5 +++-- include/configs/ls1088ardb.h | 3 ++- include/configs/ls2080ardb.h | 3 ++- 7 files changed, 15 insertions(+), 8 deletions(-)
include/configs/ls1012afrwy.h +2 -1
@@ -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 " \
include/configs/ls1012ardb.h +2 -1
@@ -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 " \
include/configs/ls1021atwr.h +2 -1
@@ -364,7 +364,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 " \
include/configs/ls1043a_common.h +2 -1
@@ -294,7 +294,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" \"qspi_bootcmd=echo Trying load from qspi..;" \
include/configs/ls1046a_common.h +3 -2
@@ -271,8 +271,9 @@"${scriptaddr} ${prefix}${script}; " \"env exists secureboot && load ${devtype} " \"${devnum}:${distro_bootpart} " \ -"${scripthdraddr} ${prefix}${boot_script_hdr} " \ -"&& esbc_validate ${scripthdraddr};" \ +"${scripthdraddr} ${prefix}${boot_script_hdr}; " \ +"env exists secureboot " \ +"&& esbc_validate ${scripthdraddr};" \"source ${scriptaddr}\0" \"qspi_bootcmd=echo Trying load from qspi..;" \"sf probe && sf read $load_addr " \
include/configs/ls1088ardb.h +2 -1
@@ -407,7 +407,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 " \
include/configs/ls2080ardb.h +2 -1
@@ -511,7 +511,8 @@ unsigned long get_board_sys_clk(void);"${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" \"qspi_bootcmd=echo Trying load from qspi..;" \
Signature · 1 line
2.17.1
Quoted 2 lines · Vinitha V Pillai
boot_script_hdrdoes not exist, it should not continue to boot. So adding separate validation after loadingboot_script
If boot_script_hdr doesn't exist, the "load" command will fail. Why do you expect "esbc_validate" command to run without loading script header?
York