U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yunus Bas <y.bas@phytec.de>
To: <u-boot@lists.denx.de>
Subject: [PATCH 2/3] phycore_imx8mm: Move default bootcmd to board env
Date: Fri, 22 Nov 2024 11:28:32 +0100	[thread overview]
Message-ID: <20241122102833.4061689-2-y.bas@phytec.de> (raw)
In-Reply-To: <20241122102833.4061689-1-y.bas@phytec.de>

Move the default bootcmd from the defconfig to the board environment.

Signed-off-by: Yunus Bas <y.bas@phytec.de>
---
 board/phytec/phycore_imx8mm/phycore_imx8mm.env | 9 +++++++++
 configs/phycore-imx8mm_defconfig               | 2 --
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/board/phytec/phycore_imx8mm/phycore_imx8mm.env b/board/phytec/phycore_imx8mm/phycore_imx8mm.env
index b2f61843995..2058bf59235 100644
--- a/board/phytec/phycore_imx8mm/phycore_imx8mm.env
+++ b/board/phytec/phycore_imx8mm/phycore_imx8mm.env
@@ -1,3 +1,12 @@
+bootcmd=
+	mmc dev ${mmcdev};
+	if mmc rescan; then
+		if run loadimage; then
+			run mmcboot;
+		else
+			run netboot;
+		fi;
+	fi;
 console=ttymxc2,115200
 emmc_dev=2
 fdt_addr_r=0x48000000
diff --git a/configs/phycore-imx8mm_defconfig b/configs/phycore-imx8mm_defconfig
index 5e59efe5649..c8fbcc910d8 100644
--- a/configs/phycore-imx8mm_defconfig
+++ b/configs/phycore-imx8mm_defconfig
@@ -30,8 +30,6 @@ CONFIG_FIT=y
 CONFIG_FIT_EXTERNAL_OFFSET=0x3000
 CONFIG_SPL_LOAD_FIT=y
 CONFIG_OF_SYSTEM_SETUP=y
-CONFIG_USE_BOOTCOMMAND=y
-CONFIG_BOOTCOMMAND="mmc dev ${mmcdev}; if mmc rescan; then if run loadimage; then run mmcboot; else run netboot; fi; fi;"
 CONFIG_DEFAULT_FDT_FILE="oftree"
 CONFIG_SYS_CBSIZE=2048
 CONFIG_SYS_PBSIZE=2074
-- 
2.25.1


  reply	other threads:[~2024-11-22 14:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-22 10:28 [PATCH 1/3] phycore_imx8mm: Switch to using env text files Yunus Bas
2024-11-22 10:28 ` Yunus Bas [this message]
2024-11-25  9:24   ` [PATCH 2/3] phycore_imx8mm: Move default bootcmd to board env Yannic Moog
2024-11-22 10:28 ` [PATCH 3/3] board: phytec: phycore_imx8mm: Add RAUC boot logic to environment Yunus Bas
2024-11-25  9:26   ` Yannic Moog
2024-11-25  9:15 ` [PATCH 1/3] phycore_imx8mm: Switch to using env text files Yannic Moog
2024-12-03  9:23   ` Yunus Bas

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=20241122102833.4061689-2-y.bas@phytec.de \
    --to=y.bas@phytec.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox