From patchwork Mon Apr 2 22:42:09 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: 894395 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="ItxYiZeM"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40FS7q4JrBz9s27 for ; Tue, 3 Apr 2018 08:48:55 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id D58F8C21EDE; Mon, 2 Apr 2018 22:44:11 +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 6441AC21EBE; Mon, 2 Apr 2018 22:42:44 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E3533C21E7E; Mon, 2 Apr 2018 22:42:35 +0000 (UTC) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by lists.denx.de (Postfix) with ESMTPS id 89FDDC21EB1 for ; Mon, 2 Apr 2018 22:42:30 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id x82so30477527wmg.1 for ; Mon, 02 Apr 2018 15:42:30 -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=jEJ2K86Wbbdpj7z+Xd0250Q+apqTUT7spA9kXplFwfQ=; b=ItxYiZeMucAlO1k+igfQYuYARwkd8QtGuhsc7bozSeqpPOZzl6KhWcAVHYwNkOhVLE uThoK2ytaHNt1iFXu5OGw/gouYxp95f4NMof0jB8mOon0uZ/r5OZJDPOqnfLTy6PrAJi 06oGIe9dAL5zmDd4G87eOEtBJhczHij6k82Bg= 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=jEJ2K86Wbbdpj7z+Xd0250Q+apqTUT7spA9kXplFwfQ=; b=L62Y9UzYEk7Xj3q8QESxS8AHTUv9D3TGbr58n4ML/mjqPwjVDpYqkuOlYnJIEjFkBG rtRR45OAm2qsh1efqRLgRewgyjaMdGVSizsYEWIUObBKx+HRGWuYM1X8iYijJD/dI+Yf AzGxLnnGoySnaKnk9XBKw2LXfi9mI4OvgX4COuyPVzBbCyD2PWnGOF69H8Ka3XuBP+X1 33nxdfmOk+GpKYSF/ZRGOKH+MAu8Dv5LFGZpIvxG/xY4/oMgtc5u+JZiM3DHvFTpMjSF Uv192kyxhvt/du7NAjMQniwfjhmUwpSBuvamVJiMkM5Y5Yk70lhnNi+pfw7YitygzL4G A1gw== X-Gm-Message-State: AElRT7GSYJNFAW+eYRCYNHPmI0ZFOFA1YQc5A17rwv2uNHN0Hm07jeWP 7oWhtGKRBf4Drox4m+C4Nvyxy+zYjeA= X-Google-Smtp-Source: AIpwx4+zDRDdzsNxp393cuKsXxkwjG8JZHNR9KuL2x8VXj9+cWzPghq0RhYrgeGSZos8rl415SNbNA== X-Received: by 10.80.170.152 with SMTP id q24mr14558439edc.43.1522708949238; Mon, 02 Apr 2018 15:42:29 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id s8sm842086edk.76.2018.04.02.15.42.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Apr 2018 15:42:28 -0700 (PDT) From: Bryan O'Donoghue To: u-boot@lists.denx.de, fabio.estevam@nxp.com, sbabic@denx.de Date: Mon, 2 Apr 2018 23:42:09 +0100 Message-Id: <1522708936-7603-11-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522708936-7603-1-git-send-email-bryan.odonoghue@linaro.org> References: <1522708936-7603-1-git-send-email-bryan.odonoghue@linaro.org> Cc: breno.lima@nxp.com, rui.silva@linaro.org, paul.liu@linaro.org Subject: [U-Boot] [PATCH v2 10/17] 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 e12b90b..344042c 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" \