From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: "Leonard Göhrs" <l.goehrs@pengutronix.de>, distrokit@pengutronix.de
Subject: Re: [DistroKit] [PATCH v1 5/5] v8a: imx8m: enable barebox state for TQ MBa8MPxL
Date: Thu, 11 Jan 2024 19:08:32 +0100 [thread overview]
Message-ID: <926151e4-2517-4fec-835a-7bacd9a6d337@pengutronix.de> (raw)
In-Reply-To: <20240111150117.3678555-6-l.goehrs@pengutronix.de>
On 11.01.24 16:01, Leonard Göhrs wrote:
> This allows updating the root filesystem via RAUC.
>
> The magic value was selected by fair dice roll.
>
> Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
> ---
> .../barebox-common-defaultenv/init/bootsource | 2 +-
> configs/platform-v8a/dts/bootstate.dtsi | 21 +++++++++++++++++++
> 2 files changed, 22 insertions(+), 1 deletion(-)
>
> diff --git a/configs/platform-v8a/barebox-common-defaultenv/init/bootsource b/configs/platform-v8a/barebox-common-defaultenv/init/bootsource
> index af47c82..b621fb2 100644
> --- a/configs/platform-v8a/barebox-common-defaultenv/init/bootsource
> +++ b/configs/platform-v8a/barebox-common-defaultenv/init/bootsource
> @@ -10,7 +10,7 @@ if [ "$bootsource" = mmc ]; then
> global.boot.default="mmc$bootsource_instance net"
> fi
>
> -if of_compatible -k radxa,rock3a; then
> +if of_compatible -k radxa,rock3a || of_compatible -k tq,imx8mp-tqma8mpql-mba8mpxl; then
of_compatible supports multiple arguments to match against, so you can
drop the ||.
> global.boot.default="bootchooser net"
> global bootchooser.state_prefix="state.bootstate"
> global bootchooser.targets="system0 system1"
> diff --git a/configs/platform-v8a/dts/bootstate.dtsi b/configs/platform-v8a/dts/bootstate.dtsi
> index d5dee2c..1a8fe3f 100644
> --- a/configs/platform-v8a/dts/bootstate.dtsi
> +++ b/configs/platform-v8a/dts/bootstate.dtsi
> @@ -19,6 +19,27 @@
>
> #endif
>
> +/** TQ-Systems i.MX8MPlus TQMa8MPxL on MBa8MPxL *******************************/
> +#ifdef imx8mp_tqma8mpql_mba8mpxl_dts
> +/ {
> + aliases {
> + state = &state_sd;
> + };
> +
> + state_sd: state {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + compatible = "barebox,state";
> + magic = <0x5e4d20bf>;
> + backend = <&usdhc2>; // via GPT Type UUID
> + backend-type = "raw";
> + backend-storage-type = "direct";
> + backend-stridesize = <0x40>;
> + };
> +};
> +
> +#endif
> +
> /** Generic bootstate node for all platforms **********************************/
> / {
> state: state {
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
prev parent reply other threads:[~2024-01-11 18:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-11 15:01 [DistroKit] [PATCH v1 0/5] v8a: imx8m: add i.MX8MP based TQ MBa8MPxL board Leonard Göhrs
2024-01-11 15:01 ` [DistroKit] [PATCH v1 1/5] tf-a: add patch to auto-detect the correct UART on i.MX8M Leonard Göhrs
2024-01-11 18:03 ` Ahmad Fatoum
2024-01-16 10:50 ` Leonard Göhrs
2024-01-16 11:08 ` Marco Felsch
2024-01-11 15:01 ` [DistroKit] [PATCH v1 2/5] v8a: images: imx8m: add barebox state partition Leonard Göhrs
2024-01-11 17:07 ` Jan Lübbe
2024-01-11 18:06 ` Ahmad Fatoum
2024-01-11 15:01 ` [DistroKit] [PATCH v1 3/5] v8a: imx8m: add i.MX8MP based TQ MBa8MPxL board Leonard Göhrs
2024-01-11 15:01 ` [DistroKit] [PATCH v1 4/5] v8a: imx8m: enable image generation for TQ MBa8MPxL Leonard Göhrs
2024-01-11 15:01 ` [DistroKit] [PATCH v1 5/5] v8a: imx8m: enable barebox state " Leonard Göhrs
2024-01-11 18:08 ` Ahmad Fatoum [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=926151e4-2517-4fec-835a-7bacd9a6d337@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=distrokit@pengutronix.de \
--cc=l.goehrs@pengutronix.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