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: 877829 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="h51nroT+"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zqhJc4Mynz9s2Z for ; Mon, 26 Feb 2018 23:41:04 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id F0B0DC220CA; 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-Google-Smtp-Source: AH8x225g84h1D+qSvg+zB4+y14gIa3PcJTsA3XyUgxO8kstWiU3WETc3Rb9+IlaBrfPetSDNDUJJDQ== 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