From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 11 Jan 2024 19:08:36 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rNzTo-00DGyd-1z for lore@lore.pengutronix.de; Thu, 11 Jan 2024 19:08:36 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1rNzTo-0000Ov-4v; Thu, 11 Jan 2024 19:08:36 +0100 Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[127.0.0.1]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1rNzTl-0000Oh-3s; Thu, 11 Jan 2024 19:08:33 +0100 Message-ID: <926151e4-2517-4fec-835a-7bacd9a6d337@pengutronix.de> Date: Thu, 11 Jan 2024 19:08:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: =?UTF-8?Q?Leonard_G=C3=B6hrs?= , distrokit@pengutronix.de References: <20240111150117.3678555-1-l.goehrs@pengutronix.de> <20240111150117.3678555-6-l.goehrs@pengutronix.de> From: Ahmad Fatoum In-Reply-To: <20240111150117.3678555-6-l.goehrs@pengutronix.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [DistroKit] [PATCH v1 5/5] v8a: imx8m: enable barebox state for TQ MBa8MPxL X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false 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 > --- > .../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 |