summaryrefslogtreecommitdiff
path: root/linux-dragon/0002-x86-Compress-vmlinux-with-zstd-19-instead-of-22.patch
diff options
context:
space:
mode:
authorJohn Vogel <jvogel@stygian.me>2026-07-28 05:01:42 -0400
committerJohn Vogel <jvogel@stygian.me>2026-07-28 05:01:42 -0400
commit7bc38f416153ad68e09fe0c70b349ee19a86a2e6 (patch)
tree19bbfa978490bd33adb7a9a39255dd7ac2692b5e /linux-dragon/0002-x86-Compress-vmlinux-with-zstd-19-instead-of-22.patch
downloaddragon-7bc38f416153ad68e09fe0c70b349ee19a86a2e6.tar.gz
dragon/linux-dragon: new aport
Linux kernel for the Radxa Dragon Q6A. Patch source is from https://github.com/radxa/kernel from the linux-7.0.11 branch. Patch is up-to-date with radxa kernel sources at this time.
Diffstat (limited to 'linux-dragon/0002-x86-Compress-vmlinux-with-zstd-19-instead-of-22.patch')
-rw-r--r--linux-dragon/0002-x86-Compress-vmlinux-with-zstd-19-instead-of-22.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/linux-dragon/0002-x86-Compress-vmlinux-with-zstd-19-instead-of-22.patch b/linux-dragon/0002-x86-Compress-vmlinux-with-zstd-19-instead-of-22.patch
new file mode 100644
index 0000000..52eacce
--- /dev/null
+++ b/linux-dragon/0002-x86-Compress-vmlinux-with-zstd-19-instead-of-22.patch
@@ -0,0 +1,31 @@
+From b7616bd28837a58e18bff20c43fd908436e3d23b Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Tue, 13 Dec 2022 16:45:51 +0100
+Subject: [PATCH 2/5] x86: Compress vmlinux with zstd -19 instead of -22
+
+This gives slightly bigger kernel but it avoids run out of memory on 32
+bit kernels with the error:
+zstd kernel compression error 11
+
+https://forums.gentoo.org/viewtopic-p-8641020.html#8641020
+Signed-off-by: Achill Gilgenast <achill@achill.org>
+---
+ arch/x86/boot/compressed/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile
+index 74657589264d..587671a8c5b0 100644
+--- a/arch/x86/boot/compressed/Makefile
++++ b/arch/x86/boot/compressed/Makefile
+@@ -144,7 +144,7 @@ $(obj)/vmlinux.bin.lzo: $(vmlinux.bin.all-y) FORCE
+ $(obj)/vmlinux.bin.lz4: $(vmlinux.bin.all-y) FORCE
+ $(call if_changed,lz4_with_size)
+ $(obj)/vmlinux.bin.zst: $(vmlinux.bin.all-y) FORCE
+- $(call if_changed,zstd22_with_size)
++ $(call if_changed,zstd_with_size)
+
+ suffix-$(CONFIG_KERNEL_GZIP) := gz
+ suffix-$(CONFIG_KERNEL_BZIP2) := bz2
+--
+2.52.0
+