From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 06 Jun 2023 16:59:36 +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 1q6Y9p-00DAOZ-Nt for lore@lore.pengutronix.de; Tue, 06 Jun 2023 16:59:36 +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 1q6Y9m-0000E9-Ji; Tue, 06 Jun 2023 16:59:34 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q6Y9l-0000Di-3m; Tue, 06 Jun 2023 16:59:33 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1q6Y9j-005X0f-VK; Tue, 06 Jun 2023 16:59:31 +0200 Received: from localhost ([127.0.0.1]) by ptz.office.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1q6Y9j-00BjDv-5M; Tue, 06 Jun 2023 16:59:31 +0200 Message-ID: <2ce49103c03130f46193c2f235ccbb17da2a8533.camel@pengutronix.de> From: Jan =?ISO-8859-1?Q?L=FCbbe?= To: Johannes Zink , Ahmad Fatoum , distrokit@pengutronix.de Date: Tue, 06 Jun 2023 16:59:30 +0200 In-Reply-To: References: <20230606-default_enable_fastboot_rock3a-v1-0-42195d538df2@pengutronix.de> <20230606-default_enable_fastboot_rock3a-v1-1-42195d538df2@pengutronix.de> <8a2453a6-e72f-7a0f-fae3-9f15037927c4@pengutronix.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.1 (by Flathub.org) MIME-Version: 1.0 Subject: Re: [DistroKit] [PATCH 1/5] v8a: enable initrd generation 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: patchwork-jzi@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 Tue, 2023-06-06 at 16:44 +0200, Johannes Zink wrote: > Hi Ahmad, >=20 > On 6/6/23 16:37, Ahmad Fatoum wrote: > > On 06.06.23 16:31, Johannes Zink wrote: > > > also generate rootfs as cpio.gz, as this allows loading it as initram= fs. > >=20 > > You enable both CONFIG_RD_GZIP and CONFIG_RD_ZSTD (which I am fine with= ), > > but you decide here for cpio.gz. Any particular reason? >=20 > afaik ZSTD support is rather new and I wanted to have maximum flexibility= when=20 > reusing the initramfs, even with older kernels - i.e. being able to mix a= =20 > ptxdist-built initramfs with older kernels. I opted to also support zstd,= to=20 > allow booting future initramfs' on current kernels, should gzip support e= ver be=20 > dropped in the future. >=20 > However, I think we could probably drop the zstd support, if you are conc= erned=20 > about image size. CONFIG_KERNEL_ZSTD is supported since 5.9: https://cateee.net/lkddb/web-lkddb/KERNEL_ZSTD.html In cases where an old kernel should be booted with this new initramfs, you = can just recompress it with gz on the host (which is trivial compared to buildi= ng it in the first place). I'd suggest just going with zstd only. 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 |