From patchwork Fri Apr 13 15:31:11 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: 133398 Delivered-To: patch@linaro.org Received: by 10.46.84.18 with SMTP id i18csp856279ljb; Fri, 13 Apr 2018 08:42:12 -0700 (PDT) X-Google-Smtp-Source: AIpwx48b+qWTbhQ4XL8k2tn75OzFmk2G5/6dBIbY+4lSH+djQT5c+hf4qPEQY2R0mDN2l8hJoZf4 X-Received: by 10.80.174.249 with SMTP id f54mr20928975edd.72.1523634132029; Fri, 13 Apr 2018 08:42:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523634132; cv=none; d=google.com; s=arc-20160816; b=k9KtHhzxgghmXKgaoZV/7BHSRHA1Xv7tcWVM9NG/ETCcARaXy3uG8WwEjfkvom+aku yU+cdqF6HRDURxGZtV5zwAHfB5wrVQVSuIo8itC4lDRaei3ZAW0exC+SrhpJSxlanMr+ 3Irm7GN2sn9+Lt9FDMoeBNqHvUrWSeOdiJdRb+nNnNv1uLxFhkgANeks9I3Z5ZcPPaIB Y7KvjbHJKCGJma7AAbsQ1z3rKHSTc+cU84hoX4wPEzO3AV1CvOlBY6gFqcTPBC07dJgt JC30ksydYVTZait9jmTKMN3l2pcwGhidc42y7AWQKsNinvUBN+rI8vaDWTiNMDcI8P70 zBJQ== 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=SJiruI8sozIHG2sZ5CKZgyZJgXMSPOWbO7N3LKWu5G0Z3+iIVQRjfmm+HZmSIK6ckl N11Y9f3leUrT+FUjI1nIcOKpkGI1/N0eGgj1tYKAZT6b9xHtTDZ/NX5c+kT08QB+BCym cVPVPZ/ZMEBTFcTpFP2+ThF0NHuiKtPhGeX+LrncpILHjxkE8lfjCF6YfB2XcZCMNt60 MoItf52p2wfEvID2Y1m6WuQi6j+PAWS4+c8101Pe2PXKwpEGZxj7e0ULAa/trObBIxR6 OqE1YuigB3wDAgOboAtYersi4GxQrwQD2JcPsHmTMoe5QwwccPfIC/GF0YP6SbGZCUO5 T4rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kfUfA8sr; 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 s17si1671026edi.23.2018.04.13.08.42.11; Fri, 13 Apr 2018 08:42:12 -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=kfUfA8sr; 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 A1E13C21D72; Fri, 13 Apr 2018 15:33:38 +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 E302EC21E2C; Fri, 13 Apr 2018 15:31:59 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 42BD2C21DAF; Fri, 13 Apr 2018 15:31:36 +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 0069AC21DCA for ; Fri, 13 Apr 2018 15:31:32 +0000 (UTC) Received: by mail-wr0-f193.google.com with SMTP id l13so8123332wrb.5 for ; Fri, 13 Apr 2018 08:31:31 -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=kfUfA8srMAE/3KqDVcsh9MJhfBjR5kXrVVXiNJOlVwxVfQp1JRjx4MCZ33m1CPPJB/ GI+VDTkfVn1TkJwDIT1Wv2xp4C3Yr/03eyJPUhwrKf8L6MOhAM12yRbNGw1KaqPyR2b+ NiDrGx+/nQXSnxVM0Vrir4U04M0BGfxRlsgGg= 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=Qgyhy3WMIOqg+avLdB2s/pcRjGGjuhJXGvu7G3vd3xawf04l61UDt0p/XnOsamyd9S /BGIceEmp/ozV04I55bXYxP3nuWcYyqF1C/zGxwWTu65h+yVYH4mH6OYCKiW8RHEGobP xBfbEZE/yNsTNjt4qxP/HCW+jXgSZN4NMjTEXK7ndOBMHIEzopd6XuLl4dxl9IhDuCrl 09+BIHjr0WXXXIhr0mJQ8gg/MFyR4rgnqyfJuy0RiPcIypH4g/oahqA2lwoLqFtcbW3S mA4XW355lhmxntfAuzo+iSvMLkieNwgl7BQlHQlQs56oy41dZxlfvRa//H26ZWtm3GJQ tZ6w== X-Gm-Message-State: ALQs6tAcGREjDF33UbitPEodpiBZh0zojARX2nuYk2QiCWQ+Gi0Zq65C UU7nZe+dRMaUQBYlp7RVH0jYiXB0xTE= X-Received: by 10.80.174.177 with SMTP id e46mr21209211edd.61.1523633491446; Fri, 13 Apr 2018 08:31:31 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id x35sm3516008edx.86.2018.04.13.08.31.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Apr 2018 08:31:30 -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:11 +0100 Message-Id: <1523633481-20914-8-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 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" \