U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: York Sun <york.sun@nxp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1 4/9] fsl: secure boot: Remove dependency of command line for fsl_validate.c
Date: Mon, 15 May 2017 09:16:04 -0700	[thread overview]
Message-ID: <1494864969-7374-5-git-send-email-york.sun@nxp.com> (raw)
In-Reply-To: <1494864969-7374-1-git-send-email-york.sun@nxp.com>

From: Ruchika Gupta <ruchika.gupta@nxp.com>

Make secure boot validation available without using command.

Signed-off-by: Ruchika Gupta <ruchika.gupta@nxp.com>
Signed-off-by: York Sun <york.sun@nxp.com>
---

 board/freescale/common/Makefile       | 5 ++++-
 board/freescale/common/fsl_validate.c | 6 ++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/board/freescale/common/Makefile b/board/freescale/common/Makefile
index 1c53fb6..fb2025d 100644
--- a/board/freescale/common/Makefile
+++ b/board/freescale/common/Makefile
@@ -75,7 +75,10 @@ obj-$(CONFIG_TARGET_P5040DS)	+= p_corenet/
 obj-$(CONFIG_LAYERSCAPE_NS_ACCESS)	+= ns_access.o
 
 ifdef CONFIG_SECURE_BOOT
-obj-$(CONFIG_CMD_ESBC_VALIDATE) += fsl_validate.o cmd_esbc_validate.o
+ifndef CONFIG_SPL_BUILD
+obj-$(CONFIG_CMD_ESBC_VALIDATE) += cmd_esbc_validate.o
+endif
+obj-y += fsl_validate.o
 endif
 obj-$(CONFIG_CHAIN_OF_TRUST) += fsl_chain_of_trust.o
 
diff --git a/board/freescale/common/fsl_validate.c b/board/freescale/common/fsl_validate.c
index ed48c5c..86baecc 100644
--- a/board/freescale/common/fsl_validate.c
+++ b/board/freescale/common/fsl_validate.c
@@ -351,7 +351,8 @@ static void fsl_secboot_header_verification_failure(void)
 	printf("Generating reset request\n");
 	do_reset(NULL, 0, 0, NULL);
 	/* If reset doesn't coocur, halt execution */
-	do_esbc_halt(NULL, 0, 0, NULL);
+	while (1)
+		;
 }
 
 /*
@@ -373,7 +374,8 @@ static void fsl_secboot_image_verification_failure(void)
 		printf("Generating reset request\n");
 		do_reset(NULL, 0, 0, NULL);
 		/* If reset doesn't coocur, halt execution */
-		do_esbc_halt(NULL, 0, 0, NULL);
+		while (1)
+			;
 
 	} else {
 		set_sec_mon_state(HPSR_SSM_ST_NON_SECURE);
-- 
2.7.4

  parent reply	other threads:[~2017-05-15 16:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-15 16:16 [U-Boot] [PATCH v1 0/9] Enable falcon boot for LS1043ARDB SDCARD boot York Sun
2017-05-15 16:16 ` [U-Boot] [PATCH v1 1/9] armv8: ls1043ardb: Use static DDR setting for SPL secure boot York Sun
2017-05-15 16:16 ` [U-Boot] [PATCH v1 2/9] armv8: layerscape: Eanble falcon boot York Sun
2017-05-15 16:16 ` [U-Boot] [PATCH v1 3/9] armv8: ls1043ardb_sdcard: Enable " York Sun
2017-05-15 16:16 ` York Sun [this message]
2017-11-29 18:39   ` [U-Boot] [PATCH v1 4/9] fsl: secure boot: Remove dependency of command line for fsl_validate.c York Sun
2017-05-15 16:16 ` [U-Boot] [PATCH v1 5/9] fsl: secure boot: Add fsl_rsa_modexp_raw function for scenarios without DM model York Sun
2017-05-15 16:16 ` [U-Boot] [PATCH v1 6/9] crypto: fsl: Allocate memory for descriptor from main memory York Sun
2017-05-15 16:16 ` [U-Boot] [PATCH v1 7/9] armv8: fsl-layerscape: Enable secure boot valiation for SPL boot York Sun
2017-05-16  0:37   ` Tom Rini
2017-05-16 16:04     ` york sun
2017-05-15 16:16 ` [U-Boot] [PATCH v1 8/9] armv8: layerscape: falcon: Implement FIT image validation York Sun
2017-05-15 16:16 ` [U-Boot] [PATCH v1 9/9] armv8: ls1043ardb: Enable loading PPA and falcon boot for SD secure boot York Sun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1494864969-7374-5-git-send-email-york.sun@nxp.com \
    --to=york.sun@nxp.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox