From patchwork Fri Apr 13 15:31:18 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: 897995 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="Ke3w+qsJ"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40N25v4MVCz9s16 for ; Sat, 14 Apr 2018 01:40:03 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 55E77C21CB6; Fri, 13 Apr 2018 15:35:01 +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_DNSWL_BLOCKED, 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 77B18C21E57; Fri, 13 Apr 2018 15:32:08 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 14034C21DD3; Fri, 13 Apr 2018 15:31:43 +0000 (UTC) Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by lists.denx.de (Postfix) with ESMTPS id 5DC29C21E0B for ; Fri, 13 Apr 2018 15:31:39 +0000 (UTC) Received: by mail-wr0-f193.google.com with SMTP id u46so9164816wrc.11 for ; Fri, 13 Apr 2018 08:31:39 -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=Ke3w+qsJ08fPrp8gdzMhVb1k9toYZH5dshXym9VlVP3RA00we8iS64vPSnRG8spxI3 z+DwVB8Lfqu3SPydEZAAYJ1NA6ZnjbzYjmQGeyXIBw/E4k3HNdp9En9Wahzpq8Nsov5F eamGXLXc/D6RHyuqm3ecQbBBQNqs+52Gizum0= 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=oj5+yPRCViSz51WKBiEuUmr1V5y1fXS0m9SuRn357n3ti2hfOUHuwZie2yNwOwd8ek uo2GK1medOd9iT3unPdA+gNV2gnH/Pue3eXgm1GJdityOekhtN+5NF5WnRDfC3JkWcwG 3z65S0G0btWC2g8sBX5kYHiKEeeQtjdLcRGXHFl4QXqV1cmKs4zF4tyZ+/Sry4yDD8iU mi2WvINGEYZAHbhLEe9ZRIApeMt+J3hhwjUynOBewwXup3MnMjEiY4EzCxHeS+iX3Vuw eXkxW/XODBdeBR2DFNwFMe9y0Wswa9Vg1gPBhtkq3aAdw1iHm2KkUUNbmhogOw5wIeF9 Taug== X-Gm-Message-State: ALQs6tCGKi43zo40BRY7ev58Y2Y/5O/1tUfoCcycZVRwZyrnvXj0F0Ej k0Ej2mdkNhwgXYoHWM0RdkbSKr6tmTU= X-Google-Smtp-Source: AIpwx49reifEtbn6HhtkbNDL6ZJ+8fYovIV0TErpsS3/uSD4uYi4NmhCEIoA2dskWVDYvKpSihRMgQ== X-Received: by 10.80.246.3 with SMTP id c3mr20105528edn.185.1523633498855; Fri, 13 Apr 2018 08:31:38 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id x35sm3516008edx.86.2018.04.13.08.31.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Apr 2018 08:31:38 -0700 (PDT) From: Bryan O'Donoghue To: u-boot@lists.denx.de, fabio.estevam@nxp.com, sbabic@denx.de Date: Fri, 13 Apr 2018 16:31:18 +0100 Message-Id: <1523633481-20914-15-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523633481-20914-1-git-send-email-bryan.odonoghue@linaro.org> References: <1523633481-20914-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 v3 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 ...; " \