From patchwork Mon Feb 26 12:36: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: 129639 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp158180lja; Mon, 26 Feb 2018 04:43:17 -0800 (PST) X-Google-Smtp-Source: AH8x225BCat+g87ZE6Ivve0DZJaxUDvG5bMGVs6eMyJ6CcmuTMXUTyF2tTHdGaYhcknWlQovKk/n X-Received: by 10.80.128.230 with SMTP id 93mr14495968edb.34.1519648997097; Mon, 26 Feb 2018 04:43:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519648997; cv=none; d=google.com; s=arc-20160816; b=gIDncI1vcRLSbpaj5lzsSoM1oyyi+7nevDF1eHgoJi4kcqjS/anMbruF/Nux/4MDMQ f6Re02xPosIKU2gOXWHDhDkTFjc8gfuD3izs/idjxQj2ugHCRG656wPVhch2rkyFq9MJ 9SWPaqAyVJm83qFaYG4wopJRiNzm8ZvCdWGOLI2Ul6HCQOieJQasN7/QL0zBsKpTyDWL eztzWtUHpPYtyySrnSj83QeAYad/FGY1tVK8BNfVecspVdF/Rm0leFCchTaN/9SarTb3 NNBn1gl/3ykOAG2xxmF+WqeQugsqvhz3PgS2M2VlCAvfbhh8O1Z/QUaVKLQwOxluL1jX ZVKQ== 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:references:in-reply-to:message-id:date :to:from:dkim-signature:arc-authentication-results; bh=p1pAchWVyVbA1szBnI1xVJMvL+CaWurua7lfYc/1SF0=; b=NeabDRCsoInVrpS87lQzZr4Eowm3+6gWTCP86ClIb2tTYw6rbb5pPZos11qnchvlNx UL937lP15BxeFaNCMyhlrhdFmMymHHuHGmiiJ5mmPSA09h+gkaO/zaXa78tkgeQEJbEI D/heRnkUJocm0DfWkXYlBMZ/AeQwfz7KXXeXCXSTYustVUpzg1hU4Urubr7ZrhByyR/u h0yZ/kWt4vj0JhuDEnTNcdSDAEzurU/m8VQHPc6piWpZuq5Juoq80aFcW6ej1DiYwSpM IXaEBkuHjPc5cx6JfArLT+wth6kdotvto2FMHBWsif8vGUiUaboYVr8pst5OWpe7YLpt 32qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=h51nroT+; 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 j21si4976589ede.121.2018.02.26.04.43.16; Mon, 26 Feb 2018 04:43:17 -0800 (PST) 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=h51nroT+; 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 8D453C2211B; Mon, 26 Feb 2018 12:39: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_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 F0518C21EE4; Mon, 26 Feb 2018 12:37:09 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 02443C220D8; Mon, 26 Feb 2018 12:36:26 +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 61119C220F4 for ; Mon, 26 Feb 2018 12:36:22 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id t6so8594234wmt.5 for ; Mon, 26 Feb 2018 04:36:22 -0800 (PST) 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=W/4Je4ARO5mSf+RxarhWjebS2NEnLLkxfVU6nx/2kTU=; b=h51nroT+zlaraZFMmvDSl0L44COlbLZOI0pNYywKbEysPMupOY2JNc6UXg+zapplJ2 z7uj7C/O1PllsBF6Bl+1du4aUtPLP8kPR6WH+DbhTbF5pldBoaTkoGqZQIj8oFU5FRcV D8g8vgWYcVmlP5gCFLNu1+11wdY+VAj/u+TJg= 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=W/4Je4ARO5mSf+RxarhWjebS2NEnLLkxfVU6nx/2kTU=; b=GQdWc36+QCtlbjC0abEc5v11ut12H6UHe8UVirw5OJjmHBZ/SjAroDSingAf/DWjsc t4aqWandlMJYywRYGBb2WU9cMjN5KAa1TBlqpmTDFeQyzn3fJS8LLzrKip5xdFE3O0+E SpB2v822MUqluJngA9GPAN6Js0iVzHBMpPB+/ZzqNS5m82lD+wyV+hI0Fwpg6nyjJjtb ib75PCsmJC8UPmg01xXNEhW6FjSFghkuuhdLpYJRCLBThQSnqovB+RzUbxVofqMGfINY 4A1h9m+A63mRRLuccPwqOKyAwO+ITf64AX5fWCtAztW9/wXt0RtXr41As8Py+XRaMQW4 z3Bg== X-Gm-Message-State: APf1xPCEr3UeK1ir5Ch/YJ0baaVcgvg5WVBcPZtEXogbO1g8M23rz2BX xxElSmDQNzjumDYdQl58PRJ0GL6Reno= X-Received: by 10.80.139.2 with SMTP id l2mr14268255edl.14.1519648581822; Mon, 26 Feb 2018 04:36:21 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id f6sm2493967edn.45.2018.02.26.04.36.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Feb 2018 04:36:21 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de, trini@konsulko.com, harinarayan@ti.com, afd@ti.com, kever.yang@rock-chips.com, philipp.tomsich@theobroma-systems.com, peng.fan@nxp.com Date: Mon, 26 Feb 2018 12:36:06 +0000 Message-Id: <1519648566-12061-13-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519648566-12061-1-git-send-email-bryan.odonoghue@linaro.org> References: <1519648566-12061-1-git-send-email-bryan.odonoghue@linaro.org> Subject: [U-Boot] [PATCH v4 12/12] optee: Add 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" CONFIG_OPTEE_LOAD_ADDR is used to tell u-boot where to load the OPTEE binary into memory prior to handing off control to OPTEE. We need to pull this value out of u-boot in order to produce an IMX IVT/CSF signed pair for the purposes of secure boot. The best way to do that is to have CONFIG_OPTEE_LOAD_ADDR appear in u-boot.cfg. Adding new CONFIG entires to u-boot should be kconfig driven so this patch does just that. Signed-off-by: Bryan O'Donoghue Reviewed-by: Ryan Harkin --- lib/optee/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/optee/Kconfig b/lib/optee/Kconfig index 9e9ef39..541f10a 100644 --- a/lib/optee/Kconfig +++ b/lib/optee/Kconfig @@ -6,6 +6,12 @@ config OPTEE OPTEE-specific checks before booting an OPTEE image created with mkimage. +config OPTEE_LOAD_ADDR + hex "OPTEE load address" + default 0x00000000 + help + The load address of the bootable OPTEE binary. + config OPTEE_TZDRAM_SIZE hex "Amount of Trust-Zone RAM for the OPTEE image" depends on OPTEE