All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 10/17] warp7: Make CONFIG_SYS_FDT_ADDR a define
Date: Fri, 13 Apr 2018 16:31:14 +0100	[thread overview]
Message-ID: <1523633481-20914-11-git-send-email-bryan.odonoghue@linaro.org> (raw)
In-Reply-To: <1523633481-20914-1-git-send-email-bryan.odonoghue@linaro.org>

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 <bryan.odonoghue@linaro.org>
Reviewed-by: Ryan Harkin <ryan.harkin@linaro.org>
---
 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" \
-- 
2.7.4

  parent reply	other threads:[~2018-04-13 15:31 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-13 15:31 [U-Boot] [PATCH v3 00/17] warp7: Enable automated OPTEE/HAB boot flow Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 01/17] imximage: Specify default IVT offset in IMX image Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 02/17] warp7: hab: Add a CSF location definition Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 03/17] warp7: hab: Set environment variable indicating HAB enable Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 04/17] warp7: defconfig: Enable OPTEE for WaRP7 Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 05/17] warp7: Allocate specific region of memory to OPTEE Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 06/17] warp7: Print out the OPTEE DRAM region Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 07/17] warp7: Specify CONFIG_OPTEE_LOAD_ADDR Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 08/17] warp7: defconfig: Enable CONFIG_SECURE_BOOT Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 09/17] warp7: defconfig: Enable CONFIG_BOOTM_TEE Bryan O'Donoghue
2018-04-13 15:31 ` Bryan O'Donoghue [this message]
2018-04-13 15:31 ` [U-Boot] [PATCH v3 11/17] warp7: Add Kconfig WARP7_ROOT_PART Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 12/17] warp7: select uuid partition based on rootpart Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 13/17] warp7: Define the name of a signed boot-script file Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 14/17] warp7: add warp7_auth_or_fail Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 15/17] warp7: hab: Set environment variable indicating IVT offset Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 16/17] warp7: defconfig: Enable CMD_SETEXPR Bryan O'Donoghue
2018-04-13 15:31 ` [U-Boot] [PATCH v3 17/17] warp7: Add support for automated secure boot.scr verification Bryan O'Donoghue
2018-04-16 18:12 ` [U-Boot] [PATCH v3 00/17] warp7: Enable automated OPTEE/HAB boot flow Breno Matheus Lima
2018-04-16 19:58 ` Fabio Estevam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1523633481-20914-11-git-send-email-bryan.odonoghue@linaro.org \
    --to=bryan.odonoghue@linaro.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.