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: 132687 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp3102300ljb; Mon, 2 Apr 2018 15:49:03 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/sbBHVTo5g5rc0XSY6f40vV6LsD0jNbGtP9a4hdRMQsQcJVUnKjfcXFfulrIwsjTj7MKf5 X-Received: by 10.80.153.68 with SMTP id l4mr13987277edb.179.1522709343261; Mon, 02 Apr 2018 15:49:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522709343; cv=none; d=google.com; s=arc-20160816; b=liDw3lGiaG+3lXKykXwPiidBQDqWU//6Qdh1C69490iHJy4CwWJRcieOTA2gnSb1H9 Ko9wG1+E0PwT2Mg87xe4hmAKO01eOA5dCumkXEySNrVvjyLUUZG/qFJvp8BoIEEU118S Gjaug+nBVWPdAtPj+qLy8dQNoxl0bodaRn3Bs44CQoJQerUOUne1WQe6BzfrJXTwbxum jkBuoP2eJ51xHFX/X+8QUmI14AfP71NyGZHN+gQ3Cwrkfhdh+xr0tRR1AKz/aTVFZsTh qoyv+y/aeegTMEIneMqA+ydoYlYBq+kZqwtghhu5s0WASEroqTpKgfk2zVtmrU0i9Kwi 5dbQ== 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=RmAxXXQbGBxOnk1Z8DYlAjK8h8J46hMi1PHrnfftetE=; b=ikzOcRx7cme+/O2H6hpUxqARJbIbKGUXc3haSPQ7b5cum44MhUvpS24uIES1rs6s1V DOUeark7hNKUrxi3lglnjZVCfq7iaL9HXk+8v58wAdDgPLGESg5ICjvK8/szLaa4aAcI s4B0Lb3d7FomABFLbSWkj6l1S8017iAnTw885WdIQfSvOexESt1sHYZdmOoNz3zdJCO+ eKs2imeLdp6cC0DU4pyyjs58bgvCFClxhEvp3qGWB06LxgO73d76p6hs63ankyB9W/wB 23OOP8sREKAMG2v4MJyauDvo0YVe4RP16jVVAD3WpquuDlsZOoyRXkszoHAbymJrdH7q jrTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ItxYiZeM; 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 u15si1170286eda.233.2018.04.02.15.49.03; Mon, 02 Apr 2018 15:49:03 -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=ItxYiZeM; 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 DE331C21EA2; 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-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" \