From patchwork Fri Mar 30 14:18:42 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: 132618 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp3104614ljb; Fri, 30 Mar 2018 07:26:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx49SqYm0W97kSzT6p53C7XF5pUu8g4Hz2eH07O80dDuMV5SL6KeoVsEDlZi4qqvyEn0FJlG6 X-Received: by 10.80.216.67 with SMTP id v3mr3134659edj.193.1522419989307; Fri, 30 Mar 2018 07:26:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522419989; cv=none; d=google.com; s=arc-20160816; b=seKQiSqQKcGRQSKNHohmqmlcHb2bIT0gw1UeW7nyli7s5kozQDFKPwrbvlLGhadjqV xrxyq6OtZet1VKe5JbZKcCHgwB9irOrYgDiRyGQ4zcMbVs/REypK/0MLiIq06CJyeNZn xJdNuDtqZ6RLFDWi7LQ9fycj5E5eA/iME9OrHh/LMtOnvCaT7Rgr7KykNdFaZi3LqijS fK+FFifJtLMmh3gWVEheQwJuWIpipDbMGqxnAcvL4gjLi5otZYtbBnSjix5lvBBESxNC OewRs1LqzhdPoDx3AKLAmqwn3AyIAE2ue73ZgSaliGSpNN4TGr04e5/b7Py0FuLt2cO8 nBdQ== 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=UQpi3octwDnTltW2VuBMbM8YLif4jE1iF5y0P4C9kOw=; b=dnQrprVq/19Nans1fbwFRbYEX1gzDU6dH9q1//VcvJ2khRUVlMBtV1pLM4U8c0u293 ZvDlVs2DQAjYUu+1sFgotmEY3ks9IPm+MTGCYkcjHxQqqAtwT1yzbBH38sRykcSwGpQm J0TISSzPhed9gjAdmT0XYrTxwLpei1ZB7EdwpUWYBzkp8tSety2oprBOyogHT71hOxXI MQfKD6hXX12ebpWxRHvdF+klzuUr0+IhVOG68c9/TaxIrplLpeVX/cD/zKFCJ3QXq1Fd s7u2Vk4E2pW70fubEERc/p1HNtwl1wlytjNPLnZXiuJtRz6XAtzI0AoITvm5Z3dRklPG MrkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Bty/IMVC; 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 y30si3186969edy.473.2018.03.30.07.26.29; Fri, 30 Mar 2018 07:26:29 -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=Bty/IMVC; 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 D92DEC2224B; Fri, 30 Mar 2018 14:21:44 +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_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 AA5B8C22255; Fri, 30 Mar 2018 14:19:27 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6A157C22252; Fri, 30 Mar 2018 14:19: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 4BCDBC2222D for ; Fri, 30 Mar 2018 14:19:03 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id b127so15046909wmf.5 for ; Fri, 30 Mar 2018 07:19:03 -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=v2u7l1c0M2K1Ymy59hhHuBLxnZM3pqA57+elldq+44g=; b=Bty/IMVCxpipdgfh24dJdXiU+9Ie7kDDFHy5nQVQeGNf0uJYblNKPVVhmJxFM2aVRw D63YIes4FhHLHhVkhO/3UcFO5sRP5rFSa7vKADPcasPiQcIYaYsEi0CnQB6dfPn3aNCq 3mWEHwDyCtmn2Q8KBnRynRy82W8EEJWHQgS2A= 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=v2u7l1c0M2K1Ymy59hhHuBLxnZM3pqA57+elldq+44g=; b=bCLY6YBGUztoR6vac5WR1jVA6dj5b518cgjp6rLmvQ1l8G1ndw2owQXV4ABhnl43aX W42Xq9Brj2Re4qdTPr/g7/awgxMif0fcVphLEeJG/brNX4A7uXkUto7pWXtlyKckopDZ mqQmyyDEMDyq4fyxRcxFQGqm/djbwPidfpyFdARnrUat1jaQi9DyJAkryMQ4LIHAvkmo Xmx4xDjfJLSpcl80e/sUCQQC4+dmXNiNon9yrgRfgnOlb3gZef+9Hag52xpD0oQoMj8O h2wIU/D2xp8nuP/v+MuYQ5owOGuAqsZWTKCjePfSdreHran6FsAEHYqACI2zXZM2mExu Bw8Q== X-Gm-Message-State: AElRT7EtJmJnaBkOC9uHfGdzxA7u7zI2f+oJeoFtm1v3yjvw4NSpUqJ9 +bBanvqanOBJTNGUjSLXuzenPebGvDA= X-Received: by 10.80.173.196 with SMTP id b4mr3188620edd.168.1522419542784; Fri, 30 Mar 2018 07:19:02 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id d22sm5831758eda.31.2018.03.30.07.19.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Mar 2018 07:19:02 -0700 (PDT) From: Bryan O'Donoghue To: u-boot@lists.denx.de, fabio.estevam@nxp.com Date: Fri, 30 Mar 2018 15:18:42 +0100 Message-Id: <1522419526-29494-15-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522419526-29494-1-git-send-email-bryan.odonoghue@linaro.org> References: <1522419526-29494-1-git-send-email-bryan.odonoghue@linaro.org> Cc: rui.silva@linaro.org, paul.liu@linaro.org Subject: [U-Boot] [PATCH 14/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 --- include/configs/warp7.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/warp7.h b/include/configs/warp7.h index 53fbcb2..c957b2d 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 ...; " \