All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Ziswiler <marcel@ziswiler.com>
To: u-boot@lists.denx.de
Cc: Stefano Babic <sbabic@denx.de>,
	Heiko Thiery <heiko.thiery@gmail.com>,
	Fabio Estevam <festevam@gmail.com>,
	Frieder Schrempf <frieder.schrempf@kontron.de>,
	Igor Opaniuk <igor.opaniuk@toradex.com>,
	Marcel Ziswiler <marcel.ziswiler@toradex.com>,
	Igor Opaniuk <igor.opaniuk@gmail.com>,
	Jaehoon Chung <jh80.chung@samsung.com>,
	Marek Vasut <marex@denx.de>,
	Max Krummenacher <max.krummenacher@toradex.com>,
	Simon Glass <sjg@chromium.org>
Subject: [PATCH v4 09/10] verdin-imx8mm: use preboot for fdtfile evaluation
Date: Wed,  6 Oct 2021 23:27:55 +0200	[thread overview]
Message-ID: <20211006212757.464740-10-marcel@ziswiler.com> (raw)
In-Reply-To: <20211006212757.464740-1-marcel@ziswiler.com>

From: Igor Opaniuk <igor.opaniuk@toradex.com>

Enable and set preboot var with fdtfile evaluation.
It will be checked and run immediately before starting the
CONFIG_BOOTDELAY countdown and/or running the auto-boot command resp.
entering interactive mode.

This provides possibility to use different boot cmds in interactive mode
without manual setting fdtfile value, as it it's already evaluated
before entering interactive mode.

Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>

---

(no changes since v2)

Changes in v2:
- New patch addressing dynamic fdtfile definition.

 configs/verdin-imx8mm_defconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configs/verdin-imx8mm_defconfig b/configs/verdin-imx8mm_defconfig
index ced0d0acc37..ed14ff3b114 100644
--- a/configs/verdin-imx8mm_defconfig
+++ b/configs/verdin-imx8mm_defconfig
@@ -26,7 +26,8 @@ CONFIG_SPL_LOAD_FIT=y
 # CONFIG_USE_SPL_FIT_GENERATOR is not set
 CONFIG_OF_SYSTEM_SETUP=y
 # CONFIG_USE_BOOTCOMMAND is not set
-CONFIG_DEFAULT_FDT_FILE="fsl-imx8mm-verdin-dev.dtb"
+CONFIG_USE_PREBOOT=y
+CONFIG_PREBOOT="setenv fdtfile imx8mm-verdin-${variant}-${fdt_board}.dtb"
 CONFIG_LOG=y
 # CONFIG_DISPLAY_BOARDINFO is not set
 CONFIG_DISPLAY_BOARDINFO_LATE=y
-- 
2.26.2


  parent reply	other threads:[~2021-10-06 21:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-06 21:27 [PATCH v4 00/10] board: toradex: verdin-imx8mm: target refresh Marcel Ziswiler
2021-10-06 21:27 ` [PATCH v4 01/10] imx8m: clean-up kconfig indentation Marcel Ziswiler
2021-10-06 21:27 ` [PATCH v4 02/10] verdin-imx8mm: fix ethernet Marcel Ziswiler
2021-10-06 21:27 ` [PATCH v4 03/10] ARM: dts: imx8mm-verdin: prepare for dek blob encapsulation Marcel Ziswiler
2021-10-06 21:27 ` [PATCH v4 04/10] verdin-imx8mm: switch to use binman to pack images Marcel Ziswiler
2021-10-07  2:18   ` Simon Glass
2021-10-07 21:59     ` Marcel Ziswiler
2021-10-06 21:27 ` [PATCH v4 05/10] verdin-imx8mm: enable sleep_moci output Marcel Ziswiler
2021-10-06 21:27 ` [PATCH v4 06/10] verdin-imx8mm: clean-up include order Marcel Ziswiler
2021-10-06 21:27 ` [PATCH v4 07/10] verdin-imx8mm: drop support for v1.0 hardware Marcel Ziswiler
2021-10-06 21:27 ` [PATCH v4 08/10] include/configs: apalis-imx8/verdin-imx8mm: rename kernel image variable Marcel Ziswiler
2021-10-09 16:06   ` Wolfgang Denk
2021-10-06 21:27 ` Marcel Ziswiler [this message]
2021-10-06 21:27 ` [PATCH v4 10/10] verdin-imx8mm: fix watchdog pinctrl issue Marcel Ziswiler

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=20211006212757.464740-10-marcel@ziswiler.com \
    --to=marcel@ziswiler.com \
    --cc=festevam@gmail.com \
    --cc=frieder.schrempf@kontron.de \
    --cc=heiko.thiery@gmail.com \
    --cc=igor.opaniuk@gmail.com \
    --cc=igor.opaniuk@toradex.com \
    --cc=jh80.chung@samsung.com \
    --cc=marcel.ziswiler@toradex.com \
    --cc=marex@denx.de \
    --cc=max.krummenacher@toradex.com \
    --cc=sbabic@denx.de \
    --cc=sjg@chromium.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.