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 v3 5/5] board: phytec: phycore_imx8mp: Add RAUC boot logic to environment
Date: Tue, 12 Mar 2024 15:30:33 +0100 [thread overview]
Message-ID: <20240312143033.3336-6-l.anderweit@phytec.de> (raw)
In-Reply-To: <20240312143033.3336-1-l.anderweit@phytec.de>
Add RAUC boot logic to the environment. This is the first board to
utilize this environment.
Signed-off-by: Leonard Anderweit <l.anderweit@phytec.de>
Tested-by: Teresa Remmet <t.remmet@phytec.de>
---
board/phytec/phycore_imx8mp/phycore_imx8mp.env | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/board/phytec/phycore_imx8mp/phycore_imx8mp.env b/board/phytec/phycore_imx8mp/phycore_imx8mp.env
index dc9ad0fe9d15..fae3e992654f 100644
--- a/board/phytec/phycore_imx8mp/phycore_imx8mp.env
+++ b/board/phytec/phycore_imx8mp/phycore_imx8mp.env
@@ -1,9 +1,14 @@
+#include <env/phytec/rauc.env>
+
bootcmd=
if test ${dofastboot} = 1; then
fastboot 0;
fi;
mmc dev ${mmcdev};
if mmc rescan; then
+ if test ${doraucboot} = 1; then
+ run raucinit;
+ fi;
if run loadimage; then
run mmcboot;
else
@@ -23,7 +28,7 @@ loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}
loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}
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
prev parent reply other threads:[~2024-03-12 14:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-12 14:30 [PATCH v3 0/5] Add RAUC boot logic for phycore_imx8mp Leonard Anderweit
2024-03-12 14:30 ` [PATCH v3 1/5] phycore_imx8mp: Move environment from include/config to board Leonard Anderweit
2024-03-12 14:30 ` [PATCH v3 2/5] phycore_imx8mp: Move default bootcmd to board env Leonard Anderweit
2024-03-12 14:30 ` [PATCH v3 3/5] configs: phycore-imx8mp_defconfig: Use redundant environment Leonard Anderweit
2024-03-12 14:30 ` [PATCH v3 4/5] include: env: Add phytec RAUC boot logic Leonard Anderweit
2024-03-12 14:30 ` Leonard Anderweit [this message]
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=20240312143033.3336-6-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 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.