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: 893366 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="CVmzIly+"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40CP9J19WSz9sXH for ; Sat, 31 Mar 2018 01:27:04 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id C0855C2223D; 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-Google-Smtp-Source: AIpwx4+hm8FtecHLF+P+8fJpr5n1SayGnQxJwVq7dosikomtRiReLd6aclbkg2PKmkMphG7H+VyVnQ== 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" \