From patchwork Fri Mar 30 14:18:38 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: 132620 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp3105999ljb; Fri, 30 Mar 2018 07:27:55 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+mEfZqrAl+8prb/LHNBUzmVJ7gzmUnIumvNiGXA8qwMieqO0tmcQecLkWRFbUjxTmcQ9y1 X-Received: by 10.80.190.13 with SMTP id a13mr3106615edi.20.1522420075895; Fri, 30 Mar 2018 07:27:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522420075; cv=none; d=google.com; s=arc-20160816; b=x1NGH7deaGVFNl+1B4ohCTERpz1Bn+GKZPPqXhAvjTE6JGpepL4SXCvJtzVfpEtd2h 4l0ZwXZy6kg+ahP3FlTTn95gqESgDN4DpPNlEpeNX0Tq1N/9qOmysTFi3O35p9qEZL6g vWwDduwhhaQqXn78/XxBQLSpJTDMlvOjDEMs2wASMzDb3X9EtQtne5ECeL9afmNOo6/8 aNpm8TCYTIUgrGSyCG1sYw+ocl6rumySn1peN6c9YBihS7Z0iaQF9JogRXe3T7zJhN22 GAiSee0Wa9kNQnfkllcpASwUFEhShh05RYJjWisYluFFtFMrmh6IO/8bZYzase+UQdVS MJQg== 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:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:arc-authentication-results; bh=91nkaIL4RJnwcUM9/m/1kJyMl4qjH/Uu55TV1hbeX3A=; b=jPX6/3DRVt/a/js3Zgt8YCOsfUHjdXCR7y27Cz2+G2yIy9hkmQxnWwxBA4NCoB/WWK fCK0DzJNmc38P5cIw37J+esSPjXi+5u69E65n5QFAM21eYycGSxBLO1GXPORK3at7qVb 9xsZ3i/4gB0PbI4AwJDQOAk383TBSC7lMIJ0SDeH9LdJ8RF/hY4r+VlaIvvyRnoKNYqH pVebeSqMVoB1F5ELTqP8VndWAFyXJzbJ3mewwu6RCeMSK9Y25iI5xgGDjZUyKuq7mDOp B069z7uwlLgS2ptgVgHxWgRjruieGx+U5mGWj0rmlKnzkLERwjrAwhMWmXItIvz8rQrF 29qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CVmzIly+; 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 o4si3588008edl.542.2018.03.30.07.27.55; Fri, 30 Mar 2018 07:27:55 -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=CVmzIly+; 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 76B51C21E96; Fri, 30 Mar 2018 14:23:22 +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 7F68EC2223D; Fri, 30 Mar 2018 14:20:25 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4A697C2222F; Fri, 30 Mar 2018 14:19:03 +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 867FBC22228 for ; Fri, 30 Mar 2018 14:18:59 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id l201so15832049wmg.0 for ; Fri, 30 Mar 2018 07:18:59 -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=69ot8eDC8kOiHT8MSclZSMfSHSw/P8dEzlNgj5pI+Rk=; b=CVmzIly+sQ+PJwBZW0L0wljKwqi+quNYWX2h95auVyd7RymEDF1soOixjF23hwHHLH RqRdmfpy+Nv+GaKneOgvVqkUaxBLr7sa759j21DdTqNzVTyUy3ND0yw7hPJ4kjaygtm9 pV0wKrlTBsIzPuLlaJoQlBqL6RhR2DqB43OmA= 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=69ot8eDC8kOiHT8MSclZSMfSHSw/P8dEzlNgj5pI+Rk=; b=W0JSfACv5MB8pMozm2pMnNni03uZFXwD3KIAc/MPI+0uktLRrsZ9zmMfmzfLhBCsv8 1ygW3IQMqELwyr33iYjq+HexuDPyCTxugiGJe4FtZWK0F/jlIFUrRlTImDyjEMUp2gLm YLDV2EGcNkQ0Hz6mD2zogcBSlLZ5s8Yf8q98uQO/XPmnHsfQ9G5ItgCfFSRAjtsoFxTa VSScjOwuGsEzz9K9CBD5gNKScfIHagxTw7vAwn2QN1slynJ1dtyU9fwV8/pA7DrXnJF0 u57YcjqDHMJGRSdf/5E2axQ4bUEssT5lC6qvMCE0dKD+9jJKBQHtU/Zjywnp/5pBUxS3 j2hw== X-Gm-Message-State: AElRT7FzdgR0mHU8KVYlaaiXk5Es5Comy64oT/kgGP0xFBJQ5Vo35Vne +OBj2gU5T0A2EJg/j5mdVYfM0KV36dg= X-Received: by 10.80.167.98 with SMTP id h89mr3148996edc.275.1522419538993; Fri, 30 Mar 2018 07:18:58 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id d22sm5831758eda.31.2018.03.30.07.18.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Mar 2018 07:18:58 -0700 (PDT) From: Bryan O'Donoghue To: u-boot@lists.denx.de, fabio.estevam@nxp.com Date: Fri, 30 Mar 2018 15:18:38 +0100 Message-Id: <1522419526-29494-11-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522419526-29494-1-git-send-email-bryan.odonoghue@linaro.org> References: <1522419526-29494-1-git-send-email-bryan.odonoghue@linaro.org> Cc: rui.silva@linaro.org, paul.liu@linaro.org Subject: [U-Boot] [PATCH 10/18] warp7: Make CONFIG_SYS_FDT_ADDR a define 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. Signed-off-by: Bryan O'Donoghue Reviewed-by: Ryan Harkin --- board/warp7/Kconfig | 6 ++++++ include/configs/warp7.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/board/warp7/Kconfig b/board/warp7/Kconfig index 61c33fb..00df19d 100644 --- a/board/warp7/Kconfig +++ b/board/warp7/Kconfig @@ -6,4 +6,10 @@ config SYS_BOARD config SYS_CONFIG_NAME default "warp7" +config SYS_FDT_ADDR + hex "FDT load address" + default 0x83000000 + help + The address the FDT file should be loaded to. + endif diff --git a/include/configs/warp7.h b/include/configs/warp7.h index 9ae2ca4..a92e675 100644 --- a/include/configs/warp7.h +++ b/include/configs/warp7.h @@ -39,7 +39,7 @@ "fdt_high=0xffffffff\0" \ "initrd_high=0xffffffff\0" \ "fdt_file=imx7s-warp.dtb\0" \ - "fdt_addr=0x83000000\0" \ + "fdt_addr=" __stringify(CONFIG_SYS_FDT_ADDR)"\0" \ "optee_addr=" __stringify(CONFIG_OPTEE_LOAD_ADDR)"\0" \ "boot_fdt=try\0" \ "ip_dyn=yes\0" \