From patchwork Mon Apr 2 22:42:13 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: 132693 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp3105142ljb; Mon, 2 Apr 2018 15:52:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Tz/rn9Lz8u1sv5pbatYbfVY5+SQvEGH911+FgbexwTKgcwFk1a63xztDuUa0O4FqhppPY X-Received: by 10.80.245.189 with SMTP id u58mr14025946edm.270.1522709571251; Mon, 02 Apr 2018 15:52:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522709571; cv=none; d=google.com; s=arc-20160816; b=sO4VhtO+uHEwfqyhlkP7wh16PMjfHIYD1x3sVO9nkkVV47b6NINb56Ndhc3tSYN18v eHD3oJaUlFLy1b7gX/naUVR+F1ONdxvY1IZvmDcsHz0a5yUhH7vfVCwcrs0Cq7+08t4P FwtfWy0v8JMf+wEfL/IeEXX9Bg2fhOVS+VRE2MOEKlWjWebYDo06BbNUUGnGKZrSgAbV bT+uD0awzty/YY3pneXeqPqo6dHFrxGDcE0SGmi1UBVkjAENjk56q62QNde00Q0whTUM AzvQuHlwFM6hbJPQM6R7t0GvUYBfhy5NunsfnFzRhrs+IB5ihLAN12kBPkfrObS7M2jw Sy3A== 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:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:arc-authentication-results; bh=Nwje+9EdbgjXkvFQp12NdA3YQNRAed/bEiUIIndMttM=; b=WwT6MT0spcZFfyYJ2YytlGsWeR5kJPs5bBrGMS9xYcBIK1jA64ydIAT4bldE+J1Fwf aab9IGmlx8iOxp4f2wsnr2ue2gbWBm7du7J2xsvT3schAnzODJFoxqimDa61gs1l3324 YO0zk9EdXBo0qxto9jqHgr8UnrWZ7VWiaD1IQPEVPm7U2wpen+OR6+qgnbvmoeN3ob8u VkFihNxyyJxSZMNZZurNwM28AAJM2gwcKlO4l4x4O9U91f64PXJvlC3f97L3gOW+bOcV ry1iiFxjN+Yjl314s5FMLCGXngngl6k/g4L5a5n8Q1Vukx2F61Z+yoXSUtt8yAgD18Up cS9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=jB6jGIgq; 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 50si617413eds.499.2018.04.02.15.52.50; Mon, 02 Apr 2018 15:52:51 -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=jB6jGIgq; 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 C054CC21E30; Mon, 2 Apr 2018 22:46:37 +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_H2, 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 94ECCC21F01; Mon, 2 Apr 2018 22:44:00 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 0EBA6C21EF2; Mon, 2 Apr 2018 22:42:38 +0000 (UTC) Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by lists.denx.de (Postfix) with ESMTPS id 85499C21DFB for ; Mon, 2 Apr 2018 22:42:34 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id x4so30420751wmh.5 for ; Mon, 02 Apr 2018 15:42:34 -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=bbFAncBFRkexED0uhJw8cduRh56y9IoLFmos07tqqVc=; b=jB6jGIgqBXE0QwdqxdxUZvVyagJmPcm184j2xMSJ1V+/lG8VJz+vzzJOyxSlMbuQ6O cID+4co7w3G1LWU5Yas7Itx5KWaePLz5LOz63xHpHyR7yj16Nw2ten2+cJWTF9dG1Ec9 P2Q8od+UTyBaY2ssjQNSp1yhjeVvjyAdoKxpA= 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=bbFAncBFRkexED0uhJw8cduRh56y9IoLFmos07tqqVc=; b=lxifx0M4sZgOEEToRuArkl/lhvTJ44+XIquFDZ3Dhvrr6/b4n0J4FIxGuNLbS22rdw vrXI1SRtJCi7JYikeCNBkP/zcR6GH4F/x0EWeG6LVVHf3xdqY56ZL/+JqK1qhpn/8AR8 6YLcIlhnJYGMn5I1y+KHywOnQW68lHLEnToZvchefDnGloM13XtZ9ib3XaDQ+8hHS8Mx qk0aCsTXnHvfp/7xxUg+xVcf6YeZW0brIEcy1w5/8rUXiBb3vOjw6BoxzO985MM6JKNe ztACa2U7Vtrc93EkfhDUli29ImMSHDUvtTpVdHyAatLnMblD22p7edNl6jP/j9eYYgmn K4WA== X-Gm-Message-State: AElRT7HZy17pwPIK/GicV5kJwpOOaX9GZe/QCcP9y6RqSHYpWGDmhwkw Gs4FHJSwichhWPmmJjd5CNv7AcSvu3A= X-Received: by 10.80.192.72 with SMTP id u8mr13996491edd.16.1522708953220; Mon, 02 Apr 2018 15:42:33 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id s8sm842086edk.76.2018.04.02.15.42.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Apr 2018 15:42:32 -0700 (PDT) From: Bryan O'Donoghue To: u-boot@lists.denx.de, fabio.estevam@nxp.com, sbabic@denx.de Date: Mon, 2 Apr 2018 23:42:13 +0100 Message-Id: <1522708936-7603-15-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522708936-7603-1-git-send-email-bryan.odonoghue@linaro.org> References: <1522708936-7603-1-git-send-email-bryan.odonoghue@linaro.org> Cc: breno.lima@nxp.com, rui.silva@linaro.org, paul.liu@linaro.org Subject: [U-Boot] [PATCH v2 14/17] 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 --- include/configs/warp7.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/warp7.h b/include/configs/warp7.h index 0ed95d8..454bc1c 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=" \ "load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \ "bootscript=echo Running bootscript from mmc ...; " \