From: Daniel Schultz <d.schultz@phytec.de>
To: <u-boot@lists.denx.de>, <trini@konsulko.com>,
<joe.hershberger@ni.com>, <w.egorov@phytec.de>
Cc: <d-gole@ti.com>, <nm@ti.com>, <mkorpershoek@baylibre.com>,
<upstream@lists.phytec.de>, <t.remmet@phytec.de>,
<y.moog@phytec.de>, <m-chawdhry@ti.com>, <kamlesh@ti.com>,
<jm@ti.com>, <B.Hahn@phytec.de>,
Daniel Schultz <d.schultz@phytec.de>
Subject: [PATCH 1/6] include: env: phytec: overlays: Add extension command
Date: Sun, 7 Jul 2024 23:07:29 -0700 [thread overview]
Message-ID: <20240708060734.4029040-2-d.schultz@phytec.de> (raw)
In-Reply-To: <20240708060734.4029040-1-d.schultz@phytec.de>
Add a new environment routine to apply extensions. Our SOM detection
adds overlays via the extension framework to alter the kernel
device-tree according to the flashed EEPROM image.
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
---
include/env/phytec/overlays.env | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/include/env/phytec/overlays.env b/include/env/phytec/overlays.env
index 78721cde654..50110e731bd 100644
--- a/include/env/phytec/overlays.env
+++ b/include/env/phytec/overlays.env
@@ -23,6 +23,16 @@ mmc_apply_overlays=
fi;
done;
fi;
+#ifdef CONFIG_CMD_EXTENSION
+mmc_apply_extensions=
+ setenv extension_overlay_addr ${fdtoverlay_addr_r};
+ setenv extension_overlay_cmd 'load mmc ${mmcdev}:${mmcpart}
+ ${fdtoverlay_addr_r} ${extension_overlay_name}';
+ extension scan;
+ extension apply all;
+#else
+mmc_apply_extensions=echo "no extension command"
+#endif
net_load_bootenv=${get_cmd} ${bootenv_addr_r} ${bootenv}
net_load_overlay=${get_cmd} ${fdtoverlay_addr_r} ${overlay}
net_apply_overlays=
@@ -36,3 +46,13 @@ net_apply_overlays=
fi;
done;
fi;
+#ifdef CONFIG_CMD_EXTENSION
+net_apply_extensions=
+ setenv extension_overlay_addr ${fdtoverlay_addr_r};
+ setenv extension_overlay_cmd '${get_cmd} ${fdtoverlay_addr_r}
+ ${extension_overlay_name}';
+ extension scan;
+ extension apply all;
+#else
+net_apply_extensions=echo "no extension command"
+#endif
--
2.25.1
next prev parent reply other threads:[~2024-07-08 6:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-08 6:07 [PATCH 0/6] Extend SOM detection Daniel Schultz
2024-07-08 6:07 ` Daniel Schultz [this message]
2024-07-09 6:49 ` [PATCH 1/6] include: env: phytec: overlays: Add extension command Yannic Moog
2024-07-09 13:31 ` Daniel Schultz
2024-07-09 13:47 ` Wadim Egorov
2024-07-10 5:38 ` Yannic Moog
2024-07-08 6:07 ` [PATCH 2/6] include: env: phytec: k3_mmc: Apply extension overlays Daniel Schultz
2024-07-08 6:07 ` [PATCH 3/6] board: phytec: common: k3: Add SOM detection overlays Daniel Schultz
2024-07-08 6:07 ` [PATCH 4/6] board: phytec: common: Kconfig: Enable SUPPORT_EXTENSION_SCAN Daniel Schultz
2024-07-08 6:07 ` [PATCH 5/6] configs: phytec_am62x_a53_defconfig: Set CONFIG_CMD_EXTENSION Daniel Schultz
2024-07-08 6:07 ` [PATCH 6/6] configs: phycore_am64x_a53_defconfig: Enable SOM detection Daniel Schultz
2024-07-09 7:16 ` [PATCH 0/6] Extend " Daniel Schultz
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=20240708060734.4029040-2-d.schultz@phytec.de \
--to=d.schultz@phytec.de \
--cc=B.Hahn@phytec.de \
--cc=d-gole@ti.com \
--cc=jm@ti.com \
--cc=joe.hershberger@ni.com \
--cc=kamlesh@ti.com \
--cc=m-chawdhry@ti.com \
--cc=mkorpershoek@baylibre.com \
--cc=nm@ti.com \
--cc=t.remmet@phytec.de \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=upstream@lists.phytec.de \
--cc=w.egorov@phytec.de \
--cc=y.moog@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.