From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 25 Apr 2023 20:38:41 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1prNYm-00HDDl-En for lore@lore.pengutronix.de; Tue, 25 Apr 2023 20:38:41 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1prNYm-0002p2-83; Tue, 25 Apr 2023 20:38:40 +0200 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1prNYc-0002na-0H; Tue, 25 Apr 2023 20:38:30 +0200 Received: from rhi by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1prNYb-00064i-K3; Tue, 25 Apr 2023 20:38:29 +0200 Date: Tue, 25 Apr 2023 20:38:29 +0200 From: Roland Hieber To: Jan =?utf-8?B?TMO8YmJl?= Message-ID: <20230425183829.2i7uvaytmxif3ldc@pengutronix.de> References: <20230212221449.1644628-1-rhi@pengutronix.de> <20230212221449.1644628-9-rhi@pengutronix.de> <64f32276b6335ee9693e90fb8ca8a914b0afe1db.camel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <64f32276b6335ee9693e90fb8ca8a914b0afe1db.camel@pengutronix.de> User-Agent: NeoMutt/20180716 Subject: Re: [DistroKit] [PATCH 8/8] v7a: enable RAUC bundle creation 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: distrokit@pengutronix.de 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.ext.pengutronix.de); SAEximRunCond expanded to false On Mon, Feb 13, 2023 at 08:42:19AM +0100, Jan Lübbe wrote: > On Sun, 2023-02-12 at 23:14 +0100, Roland Hieber wrote: > > Signed-off-by: Roland Hieber > > --- > > configs/platform-v7a/platformconfig | 12 +++++++++++- > > 1 file changed, 11 insertions(+), 1 deletion(-) > > > > diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig > > index 5bd6cebcbf9c..ec430ff1e5e5 100644 > > --- a/configs/platform-v7a/platformconfig > > +++ b/configs/platform-v7a/platformconfig > > @@ -269,7 +269,12 @@ PTXCONF_IMAGE_KERNEL_INSTALL_EARLY=y > > # end of Generate images/linuximage > > > > PTXCONF_IMAGE_LXA_MC1=y > > -# PTXCONF_IMAGE_RAUC is not set > > +PTXCONF_IMAGE_RAUC=y > > +PTXCONF_IMAGE_RAUC_DESCRIPTION="DistroKit" > > +# PTXCONF_IMAGE_RAUC_BUNDLE_FORMAT_PLAIN is not set > > +PTXCONF_IMAGE_RAUC_BUNDLE_FORMAT_VERITY=y > > +# PTXCONF_IMAGE_RAUC_BUNDLE_FORMAT_CRYPT is not set > > Does this use ext4 or tar? If ext4, you should enable adaptive updates: > https://rauc.readthedocs.io/en/latest/advanced.html#adaptive-updates > > You only need to set adaptive=block-hash-index in the [image.*] section of the > manifest. Depending on how your ext4 is configured, you may need to align the > size to 4KiB. Currently PTXdist configures genimage to use root.tar.gz in the bundle. I think it would be possible to configure it to use the ext4 too, but a patch in PTXdist would be necessary. - Roland > > +# PTXCONF_IMAGE_RAUC_INTERMEDIATE is not set > > PTXCONF_IMAGE_RIOTBOARD=y > > # PTXCONF_IMAGE_ROOT_CPIO is not set > > PTXCONF_IMAGE_ROOT_EXT=y > > @@ -316,6 +321,7 @@ PTXCONF_HOST_EXTRACT_CERT=y > > PTXCONF_HOST_FLEX=y > > PTXCONF_HOST_GENEXT2FS=y > > PTXCONF_HOST_GENIMAGE=y > > +PTXCONF_HOST_GLIB=y > > PTXCONF_HOST_LIBCONFUSE=y > > PTXCONF_HOST_LIBFFI=y > > PTXCONF_HOST_LIBKMOD=y > > @@ -330,12 +336,16 @@ PTXCONF_HOST_NINJA=y > > PTXCONF_HOST_OPENSC=y > > PTXCONF_HOST_OPENSSL=y > > PTXCONF_HOST_P11_KIT=y > > +PTXCONF_HOST_PCRE2=y > > +PTXCONF_HOST_RAUC=y > > PTXCONF_HOST_SOFTHSM=y > > PTXCONF_HOST_SQLITE=y > > +PTXCONF_HOST_SQUASHFS_TOOLS=y > > PTXCONF_HOST_SYSTEM_BC=y > > PTXCONF_HOST_SYSTEM_PYTHON3=y > > PTXCONF_HOST_SYSTEM_PYTHON3_SETUPTOOLS=y > > PTXCONF_HOST_UTIL_LINUX=y > > +PTXCONF_HOST_ZLIB=y > > PTXCONF_HOST_TF_A=y > > > > # > > -- > 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 | > > -- Roland Hieber, Pengutronix e.K. | r.hieber@pengutronix.de | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |