From patchwork Tue Mar 13 16:50:30 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: 131513 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp971081ljb; Tue, 13 Mar 2018 09:53:35 -0700 (PDT) X-Google-Smtp-Source: AG47ELutMQ14otZEsVrR/pc8a9RI2WJ73op+B8+Q1rewgCSZDqPHgzkVmZq40JFGYtA0Bewrlk2S X-Received: by 10.80.179.73 with SMTP id r9mr1651200edd.78.1520960015502; Tue, 13 Mar 2018 09:53:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520960015; cv=none; d=google.com; s=arc-20160816; b=M6/a5BisQLbVkhtgH0nRKtXORF6zgNW3X+NTcwtNi83Rm4E5hxpE69h/6XxqVoTDBy G+l7Wtj2DJLjZ6xCGExyD8faj4L5c948PR6nWjDQD2+903sXEqW/AdA52/9an7OQPNC8 Yq8eVMLL07fsL0WbsA+833Lmir9t/Wdu3tTwXg33iLc1klSnKc6BRNCd9kfiDZufD7YU er3NaQyCPGacy8xOBzOXrfbCylyiS6vLc0pSZL9cvrhrmT1nGvZ4HRdJ0CTqEI/c4kgj fZl0Lj5mYkexSHzM7vScOmbvzGMH90kmLLaz5zLgp459oBVjqshcUx0MKpkidUZsxr/g Px9w== 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=6bvkRZNCgxi9bqqMfx8A4B25+/Sl75gb2NaqvZhnKMs=; b=GQ2bQnWsrIttjDUT7ajr7A1WihR1x3Qg0pMxpXS9qak3mRBB0m6sP2dsXLqJTdf3GO ht7xNacBXgZulLM3/yps+//m6/Oh5n/uObMnsOy2MXZvbTfAwqKD+QopK1s3wfUNhSRF fNtGAF6sIoWW1+kzu6xlTF+QOt6+taYuabPXN0GPAjdWStpfGz20mrr3ViPEPQs9OxtQ q0+9ADUh94tKit0JJAHxwCEpPDJ7/HHyhXlRs/BBY1A4vA55gErtbVRTKfbbaWFr5wnt Tnlc0syuJ15nGuY007G1WIX818yyVqLUQsw0WCJh7d3iRGgz1eJpnaIIX3D1vUpnS/eN 4QqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=DUcQVVh4; 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 89si358197edo.539.2018.03.13.09.53.35; Tue, 13 Mar 2018 09:53:35 -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=DUcQVVh4; 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 13C5BC21E2F; Tue, 13 Mar 2018 16:51:54 +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 07505C21E3A; Tue, 13 Mar 2018 16:50:58 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C2CB0C21E38; Tue, 13 Mar 2018 16:50:52 +0000 (UTC) Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by lists.denx.de (Postfix) with ESMTPS id 2372DC21DD3 for ; Tue, 13 Mar 2018 16:50:48 +0000 (UTC) Received: by mail-wr0-f196.google.com with SMTP id r8so836612wrg.0 for ; Tue, 13 Mar 2018 09:50:48 -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=gofIoIyd6njEV/Ghcjl9yXszp/sNxHv0hZ0QSMrCCkw=; b=DUcQVVh4UYPy/ILPg8CDwe7oKUp2VX5JGDlwfLWYdDB1+vz54P7Hs/EzMbe3IXFSwK 9YW3N9lO3plbNmWk7gbdXmTdpS6Cuw7ZW0235imLq8LQO6fFLLGeL9DjQWFD2UB7cJDn 09xPE2WGSYOtkc9BDjNDpPMcbMuiXy+v8JcJc= 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=gofIoIyd6njEV/Ghcjl9yXszp/sNxHv0hZ0QSMrCCkw=; b=QRaa+WvYinkjrZvezpD9sK1IrrdT3FCxOVI9EBs9AqSFUJ+u28qc2Kt5ISBAJwqUTh wB6CoImTuLY68EbZ99eQDKNwNriz8z8mY8HLmKVKzKWHnXV+2TR7L28cJH19ddW2vz/Y yp/q2Dw9Fq7NUqbu0V3zva18cFn5kE+ipPdAtbEpy1x0FVDnSmIruvs4Fg4FlQMTCsmm X58DZnBsoaoq93jbHZE/TS+q5HFbBZRA1jqDHMcJ+W2BVSnF2RHzHlGlqQ4Ld5c5DSW4 pD4nR8B+b0Wx3IA8GVUINp626vfU4WL0XwGAhMPtAmsShFepbOHmeSdkkOIOXuBQemPy yM8A== X-Gm-Message-State: AElRT7G+up/ERAbjw7wuWtPHaLAuDSc/nvzHp60BwGznoIhkbTDt/ouP SgSiLc82ljKeazL5he3qjcLps6GVOtI= X-Received: by 10.80.143.99 with SMTP id 90mr1575653edy.65.1520959847567; Tue, 13 Mar 2018 09:50:47 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id 33sm476671edz.37.2018.03.13.09.50.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Mar 2018 09:50:46 -0700 (PDT) From: Bryan O'Donoghue To: U-Boot@lists.denx.de, trini@konsulko.com, afd@ti.com, kever.yang@rock-chips.com, philipp.tomsich@theobroma-systems.com, peng.fan@nxp.com Date: Tue, 13 Mar 2018 16:50:30 +0000 Message-Id: <1520959836-16105-5-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1520959836-16105-1-git-send-email-bryan.odonoghue@linaro.org> References: <1520959836-16105-1-git-send-email-bryan.odonoghue@linaro.org> Subject: [U-Boot] [PATCH v6 04/10] 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 a3b7332..cc73ec3 100644 --- a/lib/optee/Kconfig +++ b/lib/optee/Kconfig @@ -7,6 +7,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