From patchwork Tue Apr 24 17:46:37 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: 903743 X-Patchwork-Delegate: sbabic@denx.de 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="E59iYMq3"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40VrdG1VzSz9s0v for ; Wed, 25 Apr 2018 03:57:22 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id E1F99C21F5B; Tue, 24 Apr 2018 17:53:35 +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 3726BC21F88; Tue, 24 Apr 2018 17:47:48 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C5753C21FA3; Tue, 24 Apr 2018 17:47:00 +0000 (UTC) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by lists.denx.de (Postfix) with ESMTPS id 675C0C21EA8 for ; Tue, 24 Apr 2018 17:47:00 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id j4so2684281wme.1 for ; Tue, 24 Apr 2018 10:47:00 -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=3TaN9kDdJjGTSyseOZIaFYvZ0g5xX+a/HfPH5EbG78U=; b=E59iYMq3CCna2w0mC5UaCp9MXQ+EnAwmrYpkUrfGUAtF1tNHAdZsfUuuTFu91d4cNj lxn2CiVhGmaSkuqBro/Sf20vqvgfw+nY2L7l6u47ZC86jKs27a7GZfXiBWeFUlo4ACbv ywuwI1zMjtI5qwnbIC49S+gDVmnLm9FUGzsxw= 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=3TaN9kDdJjGTSyseOZIaFYvZ0g5xX+a/HfPH5EbG78U=; b=mKzAeu0kzdwtJczhHHt9+6v1SWD5gmCT+G7zbGFliaM5fxHWo73H2PWLbR6dnIlDv9 65gE50u5RZNk1Z5nEG/5+KAXhQTc67I7DiI49A1MhI1HzhNLFXVLA0zlqboNQTd9wZb+ h5waWBIrkEhce3egbPdJS2/Zd+F/PP07IFkfY5RScQiWsR1nAo2DcTpGLlwyGvjLStEr XScGobacSYWz/jh+rm+NxrPOaEf3Ndf3lXlHeupSeisrI8rIO4YRLzIEqw/yR61y9Wpy +jEfAwjr1haT85n8Fq9Jf8MSWWZoeLv1VQUGVV5I9dxDQS2rReTA+Wu0qI/nJeg9B5ja K6zA== X-Gm-Message-State: ALQs6tD1KabFuNNQA38rCMyqoQAbHFj4Qa487Gg0eK1C0B2aShPm567w NJT+k4HT3F3kMer0VaP1sX+laO/x0Ec= X-Google-Smtp-Source: AIpwx49/SQ0DD2iWsel7fA3GK60LaQ6qKpNrAnjTrVAD0Zr2Fo1+c8AG0I6tXTa9ypnwUNQfCkBlcw== X-Received: by 10.80.230.12 with SMTP id y12mr34430215edm.278.1524592019850; Tue, 24 Apr 2018 10:46:59 -0700 (PDT) Received: from event-horizon.net ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id e6sm6443087eds.20.2018.04.24.10.46.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 10:46:59 -0700 (PDT) From: Bryan O'Donoghue To: u-boot@lists.denx.de, sbabic@denx.de, fabio.estevam@nxp.com, breno.lima@nxp.com Date: Tue, 24 Apr 2018 18:46:37 +0100 Message-Id: <20180424174647.11840-9-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424174647.11840-1-bryan.odonoghue@linaro.org> References: <20180424174647.11840-1-bryan.odonoghue@linaro.org> Subject: [U-Boot] [PATCH v4 08/18] warp7: Specify 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" In order to sign images with the IMX code-signing-tool (CST) we need to know the load address of a given image. The best way to derive this load address is to make it into a define - so that u-boot.cfg contains the address - which we can then parse when generating the IMX CST headers. This patch makes the OPTEE_LOAD_ADDR available via u-boot.cfg for further parsing by external tools. Signed-off-by: Bryan O'Donoghue Reviewed-by: Ryan Harkin Tested-by: Breno Lima Reviewed-by: Fabio Estevam --- configs/warp7_defconfig | 1 + include/configs/warp7.h | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/warp7_defconfig b/configs/warp7_defconfig index 75a141b8b9..f79c019d0c 100644 --- a/configs/warp7_defconfig +++ b/configs/warp7_defconfig @@ -46,3 +46,4 @@ CONFIG_USB_ETH_CDC=y CONFIG_USBNET_HOST_ADDR="de:ad:be:af:00:00" CONFIG_OF_LIBFDT=y CONFIG_OPTEE=y +CONFIG_OPTEE_LOAD_ADDR=0x84000000 diff --git a/include/configs/warp7.h b/include/configs/warp7.h index c6ab29a831..9ae2ca4a53 100644 --- a/include/configs/warp7.h +++ b/include/configs/warp7.h @@ -40,6 +40,7 @@ "initrd_high=0xffffffff\0" \ "fdt_file=imx7s-warp.dtb\0" \ "fdt_addr=0x83000000\0" \ + "optee_addr=" __stringify(CONFIG_OPTEE_LOAD_ADDR)"\0" \ "boot_fdt=try\0" \ "ip_dyn=yes\0" \ "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \