From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 09 Jun 2023 16:35:45 +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 1q7dDP-00HJRI-8t for lore@lore.pengutronix.de; Fri, 09 Jun 2023 16:35:45 +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 1q7dDM-0001LK-Vm; Fri, 09 Jun 2023 16:35:44 +0200 Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[127.0.0.1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1q7dDH-0001Ko-CU; Fri, 09 Jun 2023 16:35:39 +0200 Message-ID: <644b5d1d-bbe9-3032-e061-43aac159e321@pengutronix.de> Date: Fri, 9 Jun 2023 16:35:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Content-Language: en-US, de-DE To: Ahmad Fatoum , distrokit@pengutronix.de References: <20230606-default_enable_fastboot_rock3a-v2-0-92606c4de9a9@pengutronix.de> <20230606-default_enable_fastboot_rock3a-v2-2-92606c4de9a9@pengutronix.de> From: Johannes Zink In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [DistroKit] [PATCH v2 2/4] v8a: kernel: enable initramfs in kernel config 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 Hi Ahmad, On 6/9/23 15:32, Ahmad Fatoum wrote: > On 09.06.23 12:28, Johannes Zink wrote: >> Enable zstd compressed initramfs images for all v8a boards. >> This allows to boot an initrd passed to the bootloader without touching >> the rootfs on a blockdevice. >> >> Signed-off-by: Johannes Zink >> >> --- >> >> Changes: >> >> v1 -> v2: >> - as gzip generation was dropped in the previous patch, also drop it in >> the kernel initramfs config. Only zstd is supported for compressed >> initramfs now. >> --- >> configs/platform-v8a/kernelconfig | 15 ++++++++++++--- >> 1 file changed, 12 insertions(+), 3 deletions(-) >> >> diff --git a/configs/platform-v8a/kernelconfig b/configs/platform-v8a/kernelconfig >> index 3c0fed78de15..090c50b1dc50 100644 >> --- a/configs/platform-v8a/kernelconfig >> +++ b/configs/platform-v8a/kernelconfig >> @@ -205,7 +205,15 @@ CONFIG_NET_NS=y >> CONFIG_SCHED_AUTOGROUP=y >> # CONFIG_SYSFS_DEPRECATED is not set >> # CONFIG_RELAY is not set >> -# CONFIG_BLK_DEV_INITRD is not set >> +CONFIG_BLK_DEV_INITRD=y > > Will probably need exception in configs/bsp.ref. good catch, gonna add it in v3. Johannes > >> +CONFIG_INITRAMFS_SOURCE="" >> +# CONFIG_RD_GZIP is not set >> +# CONFIG_RD_BZIP2 is not set >> +# CONFIG_RD_LZMA is not set >> +# CONFIG_RD_XZ is not set >> +# CONFIG_RD_LZO is not set >> +# CONFIG_RD_LZ4 is not set >> +CONFIG_RD_ZSTD=y >> # CONFIG_BOOT_CONFIG is not set >> # CONFIG_INITRAMFS_PRESERVE_MTIME is not set >> CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y >> @@ -6163,9 +6171,9 @@ CONFIG_ZLIB_INFLATE=y >> CONFIG_ZLIB_DEFLATE=y >> CONFIG_LZO_COMPRESS=m >> CONFIG_LZO_DECOMPRESS=m >> -CONFIG_ZSTD_COMMON=m >> +CONFIG_ZSTD_COMMON=y >> CONFIG_ZSTD_COMPRESS=m >> -CONFIG_ZSTD_DECOMPRESS=m >> +CONFIG_ZSTD_DECOMPRESS=y >> CONFIG_XZ_DEC=y >> CONFIG_XZ_DEC_X86=y >> CONFIG_XZ_DEC_POWERPC=y >> @@ -6176,6 +6184,7 @@ CONFIG_XZ_DEC_SPARC=y >> # CONFIG_XZ_DEC_MICROLZMA is not set >> CONFIG_XZ_DEC_BCJ=y >> # CONFIG_XZ_DEC_TEST is not set >> +CONFIG_DECOMPRESS_ZSTD=y >> CONFIG_GENERIC_ALLOCATOR=y >> CONFIG_INTERVAL_TREE=y >> CONFIG_XARRAY_MULTI=y >> > -- Pengutronix e.K. | Johannes Zink | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686| Fax: +49-5121-206917-5555 |