From patchwork Thu Aug 25 17:03:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 662879 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3sKrBN6yH7z9sCg for ; Fri, 26 Aug 2016 03:04:28 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=boundarydevices-com.20150623.gappssmtp.com header.i=@boundarydevices-com.20150623.gappssmtp.com header.b=X3wmEH+G; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 09AE44BA5C; Thu, 25 Aug 2016 19:04:11 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zM4X7-fFdepn; Thu, 25 Aug 2016 19:04:10 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5FBF14B68A; Thu, 25 Aug 2016 19:03:55 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2ABF74B660 for ; Thu, 25 Aug 2016 19:03:48 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HC5NaOYUzhk9 for ; Thu, 25 Aug 2016 19:03:48 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by theia.denx.de (Postfix) with ESMTPS id E6F3B4B62B for ; Thu, 25 Aug 2016 19:03:43 +0200 (CEST) Received: by mail-wm0-f43.google.com with SMTP id q128so39920874wma.1 for ; Thu, 25 Aug 2016 10:03:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Slp1FcgNTAZ6GWOfxVyzvaZo+4cHZeWHGoaLt+gkBt0=; b=X3wmEH+Gb940Ef7upAeazgzyVW82I+SiH1qwttl5Bv9a4it/w4AzOm0/6dUJzMSQzE Jv6gM3JEMHcxkq7QNvThuC4xAxoF/nq1NLp2/3DXPJVvswnXSoo2FV6QqrL9h2ncwAzs doRicteyZt/X39jevYYdb8QWoRkK7TAbJ+FshkSNdPCHAMfvz75VrHXCBwRJzWEuQQ0x NYO2PXVL+FO69ANPODcxbq1V6A85d/FXkquarDmR/9WCFmfEyABlOkfgM58hzqEV0gl5 E5iRBJjuj4B/giMiT3LlfByNbcxxqYmE82rVBDgZ+qjqm+fKbZnc2ZQZN6gcPzQ0fHKR z+1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Slp1FcgNTAZ6GWOfxVyzvaZo+4cHZeWHGoaLt+gkBt0=; b=H7GOLt8tIOX0FYxJJv8VM5uIM3comwsYMkiXFprE/bccLmai9Ws9PgjDXTmdjq1bpo +B1S+NfSDEo3hwnioyk8XgREzZPYLpcxoIjs4XkW6Er2BQ2Veu1LKpoXrTQykC9epAb9 k1hweshlwIr6GeuUPNQl4jWvcveLMx9GXLKj7BK5euNmYvn/UDZpjqluGiSKqF2rAqtL yCAzmPdfO5AvCheHPEMGyj6fG8xAJIrNyEOov79S/qp4nyyzs9iCiCdQEJyXRcKMUWwo b87m/wiWxnmoJyrkTcJFqUOTV0sEXGCACPEa6CE4FkhYmYRYQV+ebfXARBlSEHsR2EmC ob+A== X-Gm-Message-State: AEkoouuMhQsO7HTAgdut3ZaAl3zawiWvvRh67iCU6LTmzkT0jq09qrxTlVSSB7G39bsNww== X-Received: by 10.194.192.195 with SMTP id hi3mr8309875wjc.108.1472144623268; Thu, 25 Aug 2016 10:03:43 -0700 (PDT) Received: from t450s.lan (89-92-156-188.hfc.dyn.abo.bbox.fr. [89.92.156.188]) by smtp.googlemail.com with ESMTPSA id d64sm16619069wmc.22.2016.08.25.10.03.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Aug 2016 10:03:42 -0700 (PDT) From: Gary Bisson To: u-boot@lists.denx.de Date: Thu, 25 Aug 2016 19:03:18 +0200 Message-Id: <1472144600-1834-4-git-send-email-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1472144600-1834-1-git-send-email-gary.bisson@boundarydevices.com> References: <1471989321-25280-1-git-send-email-gary.bisson@boundarydevices.com> <1472144600-1834-1-git-send-email-gary.bisson@boundarydevices.com> Cc: fabio.estevam@nxp.com, Gary Bisson Subject: [U-Boot] [PATCH v2 3/5] mx6_common: add secure boot support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Selecting the proper options to enable the build of the HAB tools. Note, this support is disabled by default, one will have to select the SECURE_BOOT configuration through menuconfig to enable it. See doc/README.mxc_hab for more details. Signed-off-by: Gary Bisson --- include/configs/mx6_common.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/configs/mx6_common.h b/include/configs/mx6_common.h index fb49322..02afe8a 100644 --- a/include/configs/mx6_common.h +++ b/include/configs/mx6_common.h @@ -93,4 +93,13 @@ #define CONFIG_CMD_FUSE #define CONFIG_MXC_OCOTP +/* Secure boot (HAB) support */ +#ifdef CONFIG_SECURE_BOOT +#define CONFIG_CSF_SIZE 0x2000 +#define CONFIG_SYS_FSL_SEC_COMPAT 4 +#define CONFIG_FSL_CAAM +#define CONFIG_CMD_DEKBLOB +#define CONFIG_SYS_FSL_SEC_LE +#endif + #endif