From patchwork Mon Dec 26 19:29:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Peter_M=C3=BCller?= X-Patchwork-Id: 6331 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4Ngnsw2lZvz3wcv for ; Mon, 26 Dec 2022 19:29:40 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4Ngnsv4RRCzrX; Mon, 26 Dec 2022 19:29:39 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Ngnsv4P8Hz2yTC; Mon, 26 Dec 2022 19:29:39 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4Ngnst4ybzz2xmd for ; Mon, 26 Dec 2022 19:29:38 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4Ngnsr6XSjzJQ for ; Mon, 26 Dec 2022 19:29:36 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1672082978; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Y2yDJh9+rXWRekRHTtt1KwnJ7l12VfaGw0CMBBOb00M=; b=NcU4ChXuYKe401sdey+kqItNS/fjnaIT9NBKEzWcspuMfB104bFgRnjQ4g3mfRHLLVjZTe V3hD85n+tWTpskBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1672082978; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Y2yDJh9+rXWRekRHTtt1KwnJ7l12VfaGw0CMBBOb00M=; b=DXBfyvQnPKurn0zYCnRvCxB9yOGjoId4d/8aSLGxvJ261KyEcIkGZh4rsxUkDeluVWlgbX Xo7Fm7anmQNgxAbvpCleJzSsShQ/2tqSRYqmM3DFH41SuxS5fWC8Ke5mqfIU/9QjzyM8m6 ZpxBRr88riq8Zy1aSBlR93CbwAvJWKUM2fSG5nKVmb39WmsOQFen6c+rbCaUPX5/2y+PM2 mZEZrmj/pPQUu2XySoRSIcBFWM+MGl3C98Kg463Rtu2hxYuLl3u9XVRvLukuO74VxRfKom p+wUPGnh6hhFZGORlhULA2pb8chwaVSVLOEyTblensIlRfdbtsrA0kYst7iDeg== Message-ID: Date: Mon, 26 Dec 2022 19:29:32 +0000 MIME-Version: 1.0 Subject: [PATCH 15/21] linux: Compress the kernel, modules and firmware using Zstandard Content-Language: en-US To: development@lists.ipfire.org References: <0e60a1de-6210-835e-54a4-ec5e3128e42e@ipfire.org> From: =?utf-8?q?Peter_M=C3=BCller?= In-Reply-To: <0e60a1de-6210-835e-54a4-ec5e3128e42e@ipfire.org> X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Zstandard is an ideal compression algorithm with great performance for this purpose. The kernel is still able to load firmware compressed using XZ and ramdisks compressed with various other algorirthms. Backported from IPFire 3.x as a3776d8aee67369dcff8ea091bc8b785dc2d6647. Signed-off-by: Peter Müller --- config/kernel/kernel.config.x86_64-ipfire | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/kernel/kernel.config.x86_64-ipfire b/config/kernel/kernel.config.x86_64-ipfire index 085005dbc..763c7c842 100644 --- a/config/kernel/kernel.config.x86_64-ipfire +++ b/config/kernel/kernel.config.x86_64-ipfire @@ -41,10 +41,10 @@ CONFIG_HAVE_KERNEL_ZSTD=y # CONFIG_KERNEL_GZIP is not set # CONFIG_KERNEL_BZIP2 is not set # CONFIG_KERNEL_LZMA is not set -CONFIG_KERNEL_XZ=y +# CONFIG_KERNEL_XZ is not set # CONFIG_KERNEL_LZO is not set # CONFIG_KERNEL_LZ4 is not set -# CONFIG_KERNEL_ZSTD is not set +CONFIG_KERNEL_ZSTD=y CONFIG_DEFAULT_INIT="" CONFIG_DEFAULT_HOSTNAME="(none)" CONFIG_SWAP=y @@ -807,8 +807,8 @@ CONFIG_MODULE_SIG_SHA512=y CONFIG_MODULE_SIG_HASH="sha512" # CONFIG_MODULE_COMPRESS_NONE is not set # CONFIG_MODULE_COMPRESS_GZIP is not set -CONFIG_MODULE_COMPRESS_XZ=y -# CONFIG_MODULE_COMPRESS_ZSTD is not set +# CONFIG_MODULE_COMPRESS_XZ is not set +CONFIG_MODULE_COMPRESS_ZSTD=y # CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS is not set CONFIG_MODPROBE_PATH="/sbin/modprobe" # CONFIG_TRIM_UNUSED_KSYMS is not set