From: Leonard Anderweit <l.anderweit@phytec.de>
To: <trini@konsulko.com>, <t.remmet@phytec.de>, <festevam@gmail.com>
Cc: <u-boot@lists.denx.de>, <upstream@lists.phytec.de>
Subject: [PATCH 2/5] phycore_imx8mp: Move default bootcmd to board env
Date: Mon, 11 Mar 2024 14:03:57 +0100 [thread overview]
Message-ID: <20240311130400.4023780-3-l.anderweit@phytec.de> (raw)
In-Reply-To: <20240311130400.4023780-1-l.anderweit@phytec.de>
Move the default bootcmd from the defconfig to the board environment.
No change in functionality.
Signed-off-by: Leonard Anderweit <l.anderweit@phytec.de>
---
board/phytec/phycore_imx8mp/phycore_imx8mp.env | 12 ++++++++++++
configs/phycore-imx8mp_defconfig | 2 --
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/board/phytec/phycore_imx8mp/phycore_imx8mp.env b/board/phytec/phycore_imx8mp/phycore_imx8mp.env
index 6d15b7f3dc9f..73202c3b129a 100644
--- a/board/phytec/phycore_imx8mp/phycore_imx8mp.env
+++ b/board/phytec/phycore_imx8mp/phycore_imx8mp.env
@@ -1,3 +1,15 @@
+bootcmd=
+ if test ${dofastboot} = 1; then
+ fastboot 0;
+ fi;
+ mmc dev ${mmcdev};
+ if mmc rescan; then
+ if run loadimage; then
+ run mmcboot;
+ else
+ run netboot;
+ fi;
+ fi;
console=ttymxc0,115200
dofastboot=0
emmc_dev=2
diff --git a/configs/phycore-imx8mp_defconfig b/configs/phycore-imx8mp_defconfig
index b3a7bbd79bb6..fd492eba3c10 100644
--- a/configs/phycore-imx8mp_defconfig
+++ b/configs/phycore-imx8mp_defconfig
@@ -25,8 +25,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="if test ${dofastboot} = 1; then fastboot 0; fi; 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
next prev parent reply other threads:[~2024-03-11 13:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-11 13:03 [PATCH 0/5] Add RAUC boot logic for phycore_imx8mp Leonard Anderweit
2024-03-11 13:03 ` [PATCH 1/5] phycore_imx8mp: Move environment from include/config to board Leonard Anderweit
2024-03-11 13:03 ` Leonard Anderweit [this message]
2024-03-11 13:03 ` [PATCH 3/5] configs: phycore-imx8mp_defconfig: Use redundant environment Leonard Anderweit
2024-03-11 14:05 ` Fabio Estevam
2024-03-11 14:32 ` Leonard Anderweit
2024-03-11 15:35 ` Fabio Estevam
2024-03-11 13:03 ` [PATCH 4/5] include: env: Add phytec RAUC boot logic Leonard Anderweit
2024-03-11 13:04 ` [PATCH 5/5] board: phytec: phycore_imx8mp: Add RAUC boot logic to environment Leonard Anderweit
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=20240311130400.4023780-3-l.anderweit@phytec.de \
--to=l.anderweit@phytec.de \
--cc=festevam@gmail.com \
--cc=t.remmet@phytec.de \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=upstream@lists.phytec.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