Message ID | 1522419526-29494-17-git-send-email-bryan.odonoghue@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp3102612ljb; Fri, 30 Mar 2018 07:24:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/gxHMvoM9G5UWYGguaXUbz7oe6G/zf7Y/gEhVRiSgi4415BleHR3AQtyOt4bqn2N70tTRV X-Received: by 10.80.211.3 with SMTP id g3mr3123889edh.15.1522419869097; Fri, 30 Mar 2018 07:24:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522419869; cv=none; d=google.com; s=arc-20160816; b=W3eU9OIcLDAf9brOXQjCnTwK4LMncJ6rJrSYbse/pBq9O43s8w4+p0xNjhWEQDxTi0 10tSW16f+4tEucUl8azlwtXrFLDdzzD6J4cQw8ptTIZgBURXebRJo2rZ8EndsnVAvrCu UnLqhllV3lk09WNu+MZSgw//ntPS+m/MRDw5UNOchpuaL7UMAj08ig6fzXK7Sd7Rpvjc TXsvG2LwMEcSNTwk0QQPgFejyE7uL37r4uKrf4hZ4tDh/O3fPJ4++Paapmf2z5rUcjJR MwCvmThQTYgI/EeM3xOp2qoqgRqjfGYxyn5mnTWNhEpAGWAUu6hQh8Mpz19NvLzKC/GO KBSg== 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=vpwozuNXIgPn+WTfhQlCETLLKElctXG/tjgJ0YooG4M=; b=gdcpKN2dmuzp78A1+YT/7tE9w0dLdHAr7IBkkC5n2IFSWp6olYVb9Jk493UPVdXczI TaRo0Ja+Nf+41lMgvcngOdi7Kb/Yzi+rrf+6v0K5d8GfTpmSm1KWnvK6bv6cxaRfINvN AQ/utx1vHfgzmUVKSvsYUlHsFu9gnj2CMv3huZ+jmaTIg9+W9Nu5CEsWGbLH6RijeUQY O6xgBXVhcHJC9IBHZv3DrmeR9Ye7n/M7pROhW6OSpZfhmN8JV3r6iCwudmdAQss+jvjz Lr7fHR7sW6mX5QLAXKFpOnWcdunx9L8s+R/RgxPl6UoCi2GrBGMbE88zinZQCGOlXltY AS0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BT9xtJun; 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: <u-boot-bounces@lists.denx.de> Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id 90si3611378edq.356.2018.03.30.07.24.28; Fri, 30 Mar 2018 07:24: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=BT9xtJun; 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 A3DDDC22245; Fri, 30 Mar 2018 14:22: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_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 ECBFCC2226F; Fri, 30 Mar 2018 14:20:00 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id DB3D8C2226E; Fri, 30 Mar 2018 14:19:09 +0000 (UTC) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by lists.denx.de (Postfix) with ESMTPS id 3A17DC22220 for <u-boot@lists.denx.de>; Fri, 30 Mar 2018 14:19:05 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id a20so2393679wmd.1 for <u-boot@lists.denx.de>; Fri, 30 Mar 2018 07:19:05 -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=FEXxuRRjvn50FM9szallURquLyaI3hcOnAojN0lxomY=; b=BT9xtJun66WkONWf/xjnY3fbKIqMrLS+FThF3iB03BK9L6Apq91rw+yrG9VHU+Ks10 EWGIDARm/Eh7w/+T/M8WYWQ4QLajMhbmy9ri7jUvNlpIS8Q33/sAdqqqr6qYYaRvuB90 lLmb9Fme+RN59Y6DnO0JlmrSAPrE9S4w7Tvm0= 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=FEXxuRRjvn50FM9szallURquLyaI3hcOnAojN0lxomY=; b=FOVJXCxEGdrz/vc+xOL+hb+XLQ4y6rpB9P0+ZdXeRmlnVxvIraI15LNPBbqI+E9PiP yPMdt1RZ0Bk5OViZnODsk/+V/CblYZRhFV5SG5qegnVlIOZP/piLGjqxAaeDSLgmdS6c 7PlJs3xURxsfr8lDo8dE/LAyzCx1DBHVr+KgM/wIQuwCX/gWDbQyNWAMBqFxxvCcV+BY Nr/fNQ4WJ6X9HjS8HPndArZGPBdAkFb/WFDkB5qsDo6NdFy5ipJGxnZlS7UvJ6ZBf9y+ qi+xouEqZL/6HXAHRPxxaV98fznkHt2Vfm/ZEPpVWOPMyERDQiZKpw/3aoqnF4g+kCKe nbww== X-Gm-Message-State: AElRT7EHzIz+8Q91RMoCaGNFIaGRLNEOONNfUx5ofgd5rrcdRHM+16yl MuiSS0fIYz9cZPz2/+UgYWEQkiXCU/o= X-Received: by 10.80.177.234 with SMTP id n39mr3165429edd.108.1522419544739; Fri, 30 Mar 2018 07:19:04 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id d22sm5831758eda.31.2018.03.30.07.19.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Mar 2018 07:19:04 -0700 (PDT) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: u-boot@lists.denx.de, fabio.estevam@nxp.com Date: Fri, 30 Mar 2018 15:18:44 +0100 Message-Id: <1522419526-29494-17-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 16/18] warp7: hab: Set environment variable indicating IVT offset X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
warp7: Enable automated OPTEE/HAB boot flow
|
expand
|
diff --git a/include/configs/warp7.h b/include/configs/warp7.h index 712850e..adf25ac 100644 --- a/include/configs/warp7.h +++ b/include/configs/warp7.h @@ -10,6 +10,7 @@ #define __WARP7_CONFIG_H #include "mx7_common.h" +#include <imximage.h> #define PHYS_SDRAM_SIZE SZ_512M @@ -50,6 +51,7 @@ "finduuid=part uuid mmc 0:${rootpart} uuid\0" \ "mmcargs=setenv bootargs console=${console},${baudrate} " \ "root=PARTUUID=${uuid} rootwait rw\0" \ + "ivt_offset=" __stringify(BOOTROM_IVT_HDR_OFFSET)"\0"\ "warp7_auth_or_fail=hab_auth_img_or_fail ${hab_ivt_addr} ${filesize} 0;\0" \ "loadcmd=fatload\0" \ "loadbootscript=" \
This patch introduces the environment variable ivt_offset. When we define a load address for Linux or DTB or any file the IVT associated with that file is prepended. We extract the actual load addresses from u-boot.cfg and feed these values into the code-signing process - hence we want u-boot to have the real load addresses exported in uboot.cfg. ivt_offset represents the addition or subtraction from the load address that must happen to find an IVT header. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> --- include/configs/warp7.h | 2 ++ 1 file changed, 2 insertions(+)