From patchwork Fri Mar 30 14:18:35 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: 132613 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp3101322ljb; Fri, 30 Mar 2018 07:23:08 -0700 (PDT) X-Google-Smtp-Source: AIpwx49IzkcxKDykd6ki0tRtU8v9XXdVTkDRBNgT5ugjTN16Z0tk1CG76VvA5aQf2A6Ug794J0Ng X-Received: by 10.80.153.24 with SMTP id k24mr3101523edb.45.1522419788586; Fri, 30 Mar 2018 07:23:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522419788; cv=none; d=google.com; s=arc-20160816; b=U8bRNu4uyuupDXzlNWG4oX2wzSE/g+rnhem3yC+oPm71ovxEqWNiQZCP7B4Il2dV+F 4MmbGqQVhk4eQfeaLt66OJz42sJuHJdh/Z0QfIFnXsgCeuY/VaiCOoBqfN6YDVVXtP8x gsjc7SspY4bGw6bqdIXxhlkgwIlsksCXySqKvLO6wWp1RbR63B+0dMOo+xauuifZaIAU AktGm7o1DTfakckoclbm3TUjDrgVjAeNrdbdIhNAPz3963aivY5QBrAy7Ll5tIETESkB 94ovmrFsKf3oQxqAvBSRq8ZwMT9+LR4Ti1EeykvzpU7VYRo6Ae8HBIk4J34ZlMQQciQg Z0tg== 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=sS9Fn+wLYGM2eN5igEYicVJ+0O0QI99IN9SlTy6BYxg=; b=rY1w3nhTZgi9TZGWwsJdlyFgXODIGufEHDIkpkvxvhtuNmJv8H7nBOk5lp3meskuAf 69wSSfmTKKmQKkmE9ypWo/C6AbfV6ORdWoq0zYE9/llVUmaDA7cA3Ry5u+Tr2NuwJ5xF OJXofYICOwLYAN0BPqjwHVLe9U8jeOUUZ2OtHPZKw7+Ala/srvlcgd5BqgkFhlxYihO1 W21kKfDURgoaFs0h86j3fSRaHhiE1q01UNHxaRWL/AgQztE+E2tAK4wjLj6zg8vOt8lL O44msPQnNj0UAfMnyG5EAjS0boswBIH/ukP2mZMqZPcFpW7ZjBJnbEWmNjqk9Wf70kCc 0Nfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=SumLIoQX; 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 j50si1407086ede.121.2018.03.30.07.23.08; Fri, 30 Mar 2018 07:23:08 -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=SumLIoQX; 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 06108C22247; Fri, 30 Mar 2018 14:21:27 +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 5477EC2221B; Fri, 30 Mar 2018 14:19:24 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 76A87C22255; Fri, 30 Mar 2018 14:19:00 +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 84431C22244 for ; Fri, 30 Mar 2018 14:18:56 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id r82so17106738wme.0 for ; Fri, 30 Mar 2018 07:18:56 -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=yReYmD68a2xLWGW+klxAgtRPalsUmXFyQs/alIxu32Q=; b=SumLIoQX/mUncgnTkaYJYaT3F7mKPuO0wqyuVxmq8IOfkmiF6M0QCOMpqE0u99JtxT jM3W52OLy+eok+7hXnrRr8chT/RdXHnBypBug0jJPxCA9KAUTxMsty6U7rW99+oQ9GSb hylCQTrdIE8b+NUrcun6YngfgDkX8Kfh326qY= 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=yReYmD68a2xLWGW+klxAgtRPalsUmXFyQs/alIxu32Q=; b=pxbYQQAtrpBiq7Vbuy7Fr8qTL2XwwYP9vipzT8k7RuKV12d4cIRikmpvKYhY63c3V0 eCcLcrUiZjaSal2CqzudT95Egf/n6e1MZaVw7Pik5NiYF2GSPeiz+AKuaXn9JPyMIlTU U75L1qIDLkcVtv5apNN9/UekqJ5s4NF48L3spM5CuQs49+8xdttP5qdi2AIClONvjVvd PMLD+XadDe3HW67v5apVfFcFO8sUTKIaGLZFsc6CYofNGHL4B2aXXFpyDMSLzv8n83g0 z8j9h5AMxZWVmgKPP+Pup4fE3RhxuSZsKI0kw7d9M+3kya1HEN0UA1+V16cDggsNJmH+ hxIg== X-Gm-Message-State: AElRT7HupcXbVEmvXqcDz6HRLdZdQtn8ZJjcJRLHChNCV9VhM3xIueBU VWSnxpu9LZRgCessLaJ7ffCufl6yc0E= X-Received: by 10.80.170.84 with SMTP id p20mr3081604edc.233.1522419536023; Fri, 30 Mar 2018 07:18:56 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id d22sm5831758eda.31.2018.03.30.07.18.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Mar 2018 07:18:55 -0700 (PDT) From: Bryan O'Donoghue To: u-boot@lists.denx.de, fabio.estevam@nxp.com Date: Fri, 30 Mar 2018 15:18:35 +0100 Message-Id: <1522419526-29494-8-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 07/18] 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_secure_defconfig | 1 + include/configs/warp7.h | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/warp7_secure_defconfig b/configs/warp7_secure_defconfig index 538f9ab..81b297f 100644 --- a/configs/warp7_secure_defconfig +++ b/configs/warp7_secure_defconfig @@ -41,3 +41,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 c6ab29a..9ae2ca4 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" \