From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 11 Jan 2024 18:07:43 +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 1rNyWt-00DCno-0x for lore@lore.pengutronix.de; Thu, 11 Jan 2024 18:07:43 +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 1rNyWs-0004T9-QB; Thu, 11 Jan 2024 18:07:42 +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 1rNyWj-0004Su-Qn; Thu, 11 Jan 2024 18:07:33 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.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 1rNyWj-001yX8-EN; Thu, 11 Jan 2024 18:07:33 +0100 Received: from localhost ([127.0.0.1]) by ptz.office.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1rNyWj-007UGF-12; Thu, 11 Jan 2024 18:07:33 +0100 Message-ID: From: Jan =?ISO-8859-1?Q?L=FCbbe?= To: Leonard =?ISO-8859-1?Q?G=F6hrs?= , distrokit@pengutronix.de Date: Thu, 11 Jan 2024 18:07:33 +0100 In-Reply-To: <20240111150117.3678555-3-l.goehrs@pengutronix.de> References: <20240111150117.3678555-1-l.goehrs@pengutronix.de> <20240111150117.3678555-3-l.goehrs@pengutronix.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.2 (by Flathub.org) MIME-Version: 1.0 Subject: Re: [DistroKit] [PATCH v1 2/5] v8a: images: imx8m: add barebox state partition 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 Thu, 2024-01-11 at 16:01 +0100, Leonard G=C3=B6hrs wrote: > Having a place to store state allows us to use RAUC on i.MX8M based board= s. >=20 > Signed-off-by: Leonard G=C3=B6hrs > --- > configs/platform-v8a/config/images/imx8m.config | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) >=20 > diff --git a/configs/platform-v8a/config/images/imx8m.config b/configs/pl= atform-v8a/config/images/imx8m.config > index 59cdac1..fcb3c07 100644 > --- a/configs/platform-v8a/config/images/imx8m.config > +++ b/configs/platform-v8a/config/images/imx8m.config > @@ -9,8 +9,13 @@ image @IMAGE@ { > in-partition-table =3D false > holes =3D {"(440; 32K)"} > } > - partition root-A { > + partition barebox-state { > offset =3D 2M > + size =3D 1M There's no need to use 1MB for the state partition, a few sectors should be enough (i.e. 32KB). > + partition-type-uuid =3D 4778ed65-bf42-45fa-9c5b-287a1dc4a= ab1 # barebox-state > + image =3D /dev/null > + } > + partition root-A { Keep the root-A partition @ 2M and add a small state partition before the rootfs. > image =3D "root.ext2" > partition-type-uuid =3D b921b045-1df0-41c3-af44-4c6f280d3= fae > } Similar to the rock3a.config, we should have a barebox env partition as wel= l. Jan --=20 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 |