From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 17 Jan 2024 14:34:54 +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 1rQ64D-003mY5-0p for lore@lore.pengutronix.de; Wed, 17 Jan 2024 14:34:54 +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 1rQ64D-0001Sx-U2; Wed, 17 Jan 2024 14:34:53 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rQ644-0001Fk-FC; Wed, 17 Jan 2024 14:34:44 +0100 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rQ643-000Tl6-WA; Wed, 17 Jan 2024 14:34:44 +0100 Received: from lgo by dude03.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rQ643-0041dp-31; Wed, 17 Jan 2024 14:34:43 +0100 From: =?UTF-8?q?Leonard=20G=C3=B6hrs?= To: distrokit@pengutronix.de Date: Wed, 17 Jan 2024 14:34:40 +0100 Message-Id: <20240117133440.944800-8-l.goehrs@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240117133440.944800-1-l.goehrs@pengutronix.de> References: <20240117133440.944800-1-l.goehrs@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH v2 7/7] 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: , Cc: =?UTF-8?q?Leonard=20G=C3=B6hrs?= 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 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..aa1d06d 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 tq,imx8mp-tqma8mpql-mba8mpxl; then 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 { -- 2.39.2