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: 885287 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="DUcQVVh4"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 4011Bp2Svqz9sDX for ; Wed, 14 Mar 2018 03:53:22 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id E8E3AC21E1E; 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-Google-Smtp-Source: AG47ELuovQwydJX/eNwtZZWFDuFry/saU5jiRONRYvx4JZep6GGScM/pMACkuHQqpybj5FNodx1nfA== 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