From patchwork Mon Apr 2 22:42:06 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: 132684 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp3101895ljb; Mon, 2 Apr 2018 15:48:33 -0700 (PDT) X-Google-Smtp-Source: AIpwx4++j9UOisxySpLABgr5RzQPkws8/3EU1ebVKjjEJCphqFyTL/pKX8Xc0YFD0v/4Rr4MnGCQ X-Received: by 10.80.183.65 with SMTP id g59mr14098841ede.129.1522709313696; Mon, 02 Apr 2018 15:48:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522709313; cv=none; d=google.com; s=arc-20160816; b=HAAcofwyHLX3O03o6r5iutB2+fBys4cDo3taR5zjJGSnC/4iPjVlrjymtTMKoTLaMH VeK7kFWTVoSeBPdV+3NcD1BmbujAHcCIDmQOmN1OPy0m7vJEcdGdKzbpfbgj6e0zSeW8 1NS3Q9yi8rjA2Ge7Axv8JEGCgPSQ6GCgc4+IPC/hi2m4tuQvDMiG7YSLBbvITRhSybhN fwirQeZmM0YeMKnacqH/eNakptG7rhjgU1A9vuzxG06WroMkVIv9utRDp6VQIaHPOdGz QQtY7/9dTqGV/H7O1QCN8Zcc3SZ/KWEhL9aQ6WYVET3ZY9u62HpH4Ntfo1uKck/2H/Bk 35EQ== 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=Z6W0JcJfnDWMz1Y6D8CblhvPp9xb8XoCYIBU+ObSeHA=; b=0ttD+v2zs2XBBs84+vfGCm+wybpy48mhkFHDYja8+5O+768fmIFGOErqOUww3xSan0 9k2rdaNZ2xLwy/cahcAlkMcr7kYCCuXEhVhxieCTD/PCPTRJ+Kj4k0Xvgp1Lcl2QcrEp LWH2vzW5REoLKrLvfvnIBWULwtQ2YWvDWJb2gcU+vv7N1XOUET3o7mVy4sl1Cez0BGPr xvXIy12Hia6EftQEknoiNoBUTKYxzgOqNkHsrJ5Y0UI1bL/mY+WaPflUAzZa0RMHqH8Q VqXKSYYKci9AihEcn5G138LSYCM5MrJT/Xh5Ibe19XN/Ge2Nh14llyx933fIYt3Ymdv/ TfIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kox7l3BF; 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 g21si222913edj.211.2018.04.02.15.48.33; Mon, 02 Apr 2018 15:48:33 -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=kox7l3BF; 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 51F36C21ED5; Mon, 2 Apr 2018 22:44: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_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 6A6D5C21E53; Mon, 2 Apr 2018 22:42:51 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 992A4C21E30; Mon, 2 Apr 2018 22:42:31 +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 27221C21E90 for ; Mon, 2 Apr 2018 22:42:27 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id h76so29005156wme.4 for ; Mon, 02 Apr 2018 15:42:27 -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=lmGswfnO4JBLqVcYz/fMo3k/jRcv8rEN3ZTfeotYkRY=; b=kox7l3BFRESlcSe+pb0iA3oIfhov+a28qs4rg4mqSk3HK34HaUxTjp/GtRdxEkH/gJ G5Byb5G41eTFqmqyX5QMHCZmtHg3hvugtTbS9YH63fc02mlstNmU3LuK0ECMHZs0MvJd 5f1+fM3Xwx4m4G4ceUdlgTN3XShHSFlmLFeOM= 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=lmGswfnO4JBLqVcYz/fMo3k/jRcv8rEN3ZTfeotYkRY=; b=fH/c7HrS5aLpBgk6pn4mlobFqik6Ut2gYdBdsTjM1gJ3pQ3zQ7jRGMxeQYyBeBAI3a 6OcRYYC+gKBz89mxHzUzVa8WFljFmRRgP6G7/EW/TjYSzYpHjipTYsF8d0lSTowmh7+b KOfZOb+za+2kJKQ+SXoJjyd1yKHJe9IkOioCy2Dm4IqLtcG9zbFtkHNHTFa9qU0/Nket BnY+GjKK5RLmkkJh82R0xtWXBsisNQIN1rQ4NmGOJ3mUES2tY5CA6r5n3DTwTalw693l 1jl5XRYjcsjqULESyNtFoLoWGamToAK4khkbdpPY+tT1LCqxaXnyaZXAej7SvuaKfzoX iq3A== X-Gm-Message-State: ALQs6tDZF7wCh9qiqDJwUSi0vMcuyxpRmf4V4CPiPKZnZgNrsggl2pqx 8U81478gX7h5p7KJs4nG1CfWvxtejas= X-Received: by 10.80.242.140 with SMTP id f12mr1168446edm.130.1522708946166; Mon, 02 Apr 2018 15:42:26 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id s8sm842086edk.76.2018.04.02.15.42.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Apr 2018 15:42:25 -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:06 +0100 Message-Id: <1522708936-7603-8-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 07/17] warp7: Specify CONFIG_OPTEE_LOAD_ADDR 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" In order to sign images with the IMX code-signing-tool (CST) we need to know the load address of a given image. The best way to derive this load address is to make it into a define - so that u-boot.cfg contains the address - which we can then parse when generating the IMX CST headers. This patch makes the OPTEE_LOAD_ADDR available via u-boot.cfg for further parsing by external tools. Signed-off-by: Bryan O'Donoghue Reviewed-by: Ryan Harkin --- configs/warp7_defconfig | 1 + include/configs/warp7.h | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/warp7_defconfig b/configs/warp7_defconfig index 3dbcd69..c647cd0 100644 --- a/configs/warp7_defconfig +++ b/configs/warp7_defconfig @@ -45,3 +45,4 @@ CONFIG_USB_ETH_CDC=y CONFIG_USBNET_HOST_ADDR="de:ad:be:af:00:00" CONFIG_OF_LIBFDT=y CONFIG_OPTEE=y +CONFIG_OPTEE_LOAD_ADDR=0x84000000 diff --git a/include/configs/warp7.h b/include/configs/warp7.h index 10db716..e12b90b 100644 --- a/include/configs/warp7.h +++ b/include/configs/warp7.h @@ -40,6 +40,7 @@ "initrd_high=0xffffffff\0" \ "fdt_file=imx7s-warp.dtb\0" \ "fdt_addr=0x83000000\0" \ + "optee_addr=" __stringify(CONFIG_OPTEE_LOAD_ADDR)"\0" \ "boot_fdt=try\0" \ "ip_dyn=yes\0" \ "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \