From patchwork Tue Apr 24 17:46:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 134181 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2532826lji; Tue, 24 Apr 2018 10:59:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/3ZYtsiksrc6qq0Ql+Qcv9daG3RC70xmYY0FUCNMdIoIMDRdtS5Jsv5qxkt97CrhBTCVJT X-Received: by 10.80.134.15 with SMTP id o15mr33171033edo.243.1524592755935; Tue, 24 Apr 2018 10:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524592755; cv=none; d=google.com; s=arc-20160816; b=FtPOMKIiKlNSGoQTnMuhP8iWTmaRd/WTArMsFoSAqgui0IdGUNkOIKDxCzsKrEd02s 9ODhAennGAZaEYQW/rW4GdEIH5O8b3J1SJsd2PyNn1UxLWkdNdws+ZLWPZOAQzkbkbt2 3AxZSQzAGJYFX/lpEttaf6Ig+PJ4CYhligihnhD42A8j0KL+lDBB7Ws0rNtV+2IBWFQw 89LpyG6uxxpcbnwwdSgDVpukwNE7QW05sMU+r1T3LRrlC8suWijSAMGLj7WriUmfpFxb B7Ic8ZwHQKWHLrTWyeH6qR1sUUabr1QdRbBkkERTO5IEoAWFLdrMwwuu5wZUCnRducTs Njqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:arc-authentication-results; bh=nk0e96f14UDZtbp9cR6FUVdXBId7EfNvkBghjz3hd/M=; b=d38E+4WocSm2GkXwL1ftVtL48shJKBO7ZjjOG9/iuLybLlMGsh9zEhEWZjktsU8wny 7mPzB7NMcTmhj0CP90McXAUQE26UoqeXtBLUgMBEUSoZ5oLXpOr7xkd4YrG62CXAJAna KG3Z7wlAwhc7kICNexv+qyMB6K1qKl/ZmnstTfYRUKthkJAJxSkzSCxifc5GnMx4ylRw 1JLUE64kk3IRGjOZy2aXFca/5yklCucKuVI/MtEt+TGMh4F5k+wuUT/wBCy4GwhM2tuV 2g3EIKFQp+47MJosE+S2LEZ7V74StV1Ef8Haa8gTiW1N21w9JtRu6oMzqNfFBuJxW7bm yJoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=EAIg6U/d; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id v12si8653766eda.271.2018.04.24.10.59.15; Tue, 24 Apr 2018 10:59:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=EAIg6U/d; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 8AA65C21F8A; Tue, 24 Apr 2018 17:53:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 30F93C21FA6; Tue, 24 Apr 2018 17:47:47 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id AAB9DC21F87; Tue, 24 Apr 2018 17:47:07 +0000 (UTC) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by lists.denx.de (Postfix) with ESMTPS id 962A7C21F62 for ; Tue, 24 Apr 2018 17:47:07 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id l16so2270624wmh.2 for ; Tue, 24 Apr 2018 10:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7IlQCD3u07uvokxkfd57KyfsyeEq+VXTtO1fZ+Ao0M8=; b=EAIg6U/dOK2ULY0Y2h9gC+/5X3CVt+6vdCkR5t9CyrEms4D9kEFrbbG0kD9GBShhYQ YtcvX9MQkH7cqYCzGC7jDDF7md+jz6WYJgKaXzbhsANZe+nrWlMOxh/dGTh9eao9A04K HBlugI5n6+dJxKQIY76JYMk4F5kxREpYiz+3M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7IlQCD3u07uvokxkfd57KyfsyeEq+VXTtO1fZ+Ao0M8=; b=L9VfHLOCJBCh3w7h2cqlUOEvC6LYITaB9w+mubXyWPwjYJsbOQlbyocKhTAM8mdwFi 32+Ve5z4U0TrwIL+JYndWtC4v7XAcj6ZN8NXl8QmuQX0HhJsKUm9608oX5dLIB9mnueB 0P3A9AFS1Kb89nLqTlvgSM2WIerYlriPIRzFizDU/OVOUt0oHxwUXrIJCx7XY6TyNQG9 Wjgi9ilBzz2lVA+EJaxyD9I0r+y35ifX+FzORaMwSH/wpvsNwAQA2wJ9pEyy+OMhfSix 7iRSbY8rUBQ0LfkXbjfaRf/+a0xv7SoXH7sW0Qrka0UKBYQN4TDaouds3wJeKmbPvuBA b5eQ== X-Gm-Message-State: ALQs6tDq60Thy6pwkLMWn5H1+U0RCyJlPUUBLANNJ6MAI/MSNhPXc36x OdKfeIRYg5Tc+Qn4cfaHgif1NL0+suU= X-Received: by 10.80.182.44 with SMTP id b41mr29290387ede.255.1524592027054; Tue, 24 Apr 2018 10:47:07 -0700 (PDT) Received: from event-horizon.net ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id e6sm6443087eds.20.2018.04.24.10.47.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 10:47:06 -0700 (PDT) From: Bryan O'Donoghue To: u-boot@lists.denx.de, sbabic@denx.de, fabio.estevam@nxp.com, breno.lima@nxp.com Date: Tue, 24 Apr 2018 18:46:44 +0100 Message-Id: <20180424174647.11840-16-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424174647.11840-1-bryan.odonoghue@linaro.org> References: <20180424174647.11840-1-bryan.odonoghue@linaro.org> Subject: [U-Boot] [PATCH v4 15/18] warp7: add warp7_auth_or_fail X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" Doing secure boot on the WaRP7 using a common image format and the same variable to represent the base address for each call means we can reduce down the command to a single environment command. This patch adds warp7_auth_or_fail as a wrapper around "hab_auth_img_or_fail ${hab_ivt_addr} ${filesize} 0". Signed-off-by: Bryan O'Donoghue Tested-by: Breno Lima Reviewed-by: Fabio Estevam --- include/configs/warp7.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/warp7.h b/include/configs/warp7.h index 53fbcb2f4a..c957b2d579 100644 --- a/include/configs/warp7.h +++ b/include/configs/warp7.h @@ -50,6 +50,7 @@ "finduuid=part uuid mmc 0:${rootpart} uuid\0" \ "mmcargs=setenv bootargs console=${console},${baudrate} " \ "root=PARTUUID=${uuid} rootwait rw\0" \ + "warp7_auth_or_fail=hab_auth_img_or_fail ${hab_ivt_addr} ${filesize} 0;\0" \ "loadbootscript=" \ "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \ "bootscript=echo Running bootscript from mmc ...; " \