From patchwork Fri Mar 9 16:55:25 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: 131168 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp1215010lja; Fri, 9 Mar 2018 08:58:58 -0800 (PST) X-Google-Smtp-Source: AG47ELuxMMEA9fmykEsL1lZBPIr87go4fzbi06iMAag9QoZUuRe9SCREtwGNEuNP1tjV0c1rCT/c X-Received: by 10.80.230.153 with SMTP id z25mr38875079edm.61.1520614738745; Fri, 09 Mar 2018 08:58:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520614738; cv=none; d=google.com; s=arc-20160816; b=aE1O4JTel/bicWl80jFWk4xlRFB5Dfm0duFGKBFpwFzmtNsaCYzrwCQOZL9eDOe20F eTXWKpRmUaTVW9LN9z+vk7ORuXMP+J6jkdKwvgNziUfh0b9kKdv4HsJen65OvXSvlDW+ qLwPk64T714VF794gXOlJokCP2xRbNkjc15/eFJXP2x4XPRITE6BslrKTSNIviE+46wm vZLLNYceI2Kzj8pr1h43ev4DcvIvlr/To3TumnVRknqS8d9M5CsMA3rx1TNquM5Jh8tm hGCas+bCfsnk5AwpLyYahsGPoc9Ej1b0gTPY74VfZC1r3q3T/z1gyAEqOFS2xaxmFUH7 eLcg== 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=e6/GC5FvWRP3ys99i2VRrbHiB/+SG+RXdoo5BVw8KVZVaUUSX6plsEjoxbnZkmmFWI kuFasgbB/P/C3VoI4IpWXRjDZD2wz8+SO2C2cvGvfL9axZbV0rHyEkymII0hKybt5HLN cS44bd0xW6eWJwUNw9MKzjcBulIATTsJHu0BjXJcme5bdtYEwTOUDycF5AeNLV6Ru5Mr JXTJvO16I9OYVt4cs2YUN/pqTWRaSUC6dkQ8nBfYvmwRsLSsJW909+8/txhT22Kj5mfl sRV6FZBkXM+sLDxnDWiDLtVW210ZKVa/P4nSGJidl6UumIRKmta84l8U8W+IgPkhP8t9 lz+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=abtGUEJc; 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 d88si180812edd.514.2018.03.09.08.58.58; Fri, 09 Mar 2018 08:58:58 -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=abtGUEJc; 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 39B06C21DD4; Fri, 9 Mar 2018 16:57:21 +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 49B48C21D72; Fri, 9 Mar 2018 16:55:55 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E133EC21DAF; Fri, 9 Mar 2018 16:55:43 +0000 (UTC) Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by lists.denx.de (Postfix) with ESMTPS id F3586C21DD9 for ; Fri, 9 Mar 2018 16:55:38 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id i3so5034040wmi.4 for ; Fri, 09 Mar 2018 08:55:38 -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=gofIoIyd6njEV/Ghcjl9yXszp/sNxHv0hZ0QSMrCCkw=; b=abtGUEJcxdC2/ZeJMLwsDg4aa2i3qeYY9fMQPxIoQnxc/n0bd5Axd1bB0Vzzc6GEYg XICU/dSOw538EddSVBjyiUKg5uB3lsub/GNq3U3cSt13OsrceeL0ut83ujiHjPcS/ZAY kfw/fSNzg5jJR+f4SfwH6gq0sbQaGHWbRmunE= 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=QiXC8VycEqbpuMJtNoVJH1tpmivEs3M6GlAgaJualIHu0fxYFF0iGc3FCGT5d7iSNG k0lJr0GtsdNBhxATrq86ryLVV0uOXPPef6UkBKA1UnZVl+cy38y30/W8IVK+rCLXM4wf RoW0etOHpOSdkWHdCArIuQ5cL/WHwo3LYqF5q+lKccgpxeC2pnZ2n7ChE0e0o2wmKBzj XCVkoHwY5zSAmBY7p5UKehFaccG1aLUUfhx3UYGj06IvO9eeJKVRxRrU4QuOV+zU151W XdFAAwCtWbElsj7j+ViUUstOb6pMkaFutsKMMSDr50Zwx5L61/vXp2cC/HGu2/PQf4a5 n32Q== X-Gm-Message-State: APf1xPDK8bgDJRezO9s6x2G63D4JAzJe0SvtC7yZaE/jkPaKa1JuAzCG V9QDhg17bkn1QYcaNqJfkQKauNiOtFQ= X-Received: by 10.80.201.76 with SMTP id p12mr38856073edh.199.1520614538456; Fri, 09 Mar 2018 08:55:38 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id e40sm960335ede.15.2018.03.09.08.55.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Mar 2018 08:55:37 -0800 (PST) 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: Fri, 9 Mar 2018 16:55:25 +0000 Message-Id: <1520614531-2164-5-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1520614531-2164-1-git-send-email-bryan.odonoghue@linaro.org> References: <1520614531-2164-1-git-send-email-bryan.odonoghue@linaro.org> Subject: [U-Boot] [PATCH v5 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