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 3/3] board: phytec: phycore_imx8mm: Add RAUC boot logic to environment
Date: Fri, 22 Nov 2024 11:28:33 +0100	[thread overview]
Message-ID: <20241122102833.4061689-3-y.bas@phytec.de> (raw)
In-Reply-To: <20241122102833.4061689-1-y.bas@phytec.de>

Add RAUC boot logic to the environment.

Signed-off-by: Yunus Bas <y.bas@phytec.de>
---
 board/phytec/phycore_imx8mm/phycore_imx8mm.env | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/board/phytec/phycore_imx8mm/phycore_imx8mm.env b/board/phytec/phycore_imx8mm/phycore_imx8mm.env
index 2058bf59235..1073e1327e6 100644
--- a/board/phytec/phycore_imx8mm/phycore_imx8mm.env
+++ b/board/phytec/phycore_imx8mm/phycore_imx8mm.env
@@ -1,6 +1,11 @@
+#include <env/phytec/rauc.env>
+
 bootcmd=
 	mmc dev ${mmcdev};
 	if mmc rescan; then
+		if test ${doraucboot} = 1; then
+			run raucinit;
+		fi;
 		if run loadimage; then
 			run mmcboot;
 		else
@@ -17,7 +22,7 @@ loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}
 loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr_r} ${fdtfile}
 mmcargs=
 	setenv bootargs console=${console}
-	root=/dev/mmcblk${mmcdev}p${mmcroot} rootwait rw
+	root=/dev/mmcblk${mmcdev}p${mmcroot} ${raucargs} rootwait rw
 mmcautodetect=yes
 mmcboot=
 	echo Booting from mmc ...;
-- 
2.25.1


  parent 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 ` [PATCH 2/3] phycore_imx8mm: Move default bootcmd to board env Yunus Bas
2024-11-25  9:24   ` Yannic Moog
2024-11-22 10:28 ` Yunus Bas [this message]
2024-11-25  9:26   ` [PATCH 3/3] board: phytec: phycore_imx8mm: Add RAUC boot logic to environment 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-3-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