Skip to content

Commit 690c874

Browse files
committed
kernel config BPI-R4 - compress kernel ko modules
Use XZ as `modprobe --version` says ``` kmod version 30 +ZSTD +XZ -ZLIB +LIBCRYPTO -EXPERIMENTAL ``` Reason to do this: ``` root@ratatosk:~# find /lib/modules/6.12.35-current-filogic/ -name '*.ko.xz'|xargs xz -l |tail -n 1 265 266 5,253.3 KiB 24.3 MiB 0.211 CRC32 265 files root@ratatosk:~# ls ~tabris/linux-image-current-filogic_25.11.0-*.deb -lhtr -rw-r--r-- 1 tabris tabris 48M Aug 22 12:04 /home/tabris/linux-image-current-filogic_25.11.0-trunk_arm64__6.12.35-S9403-D0b5d-P0000-C0ef5H2313-HK01ba-Vc222-Bd200-R448a.deb -rw-r--r-- 1 tabris tabris 28M Aug 23 20:58 /home/tabris/linux-image-current-filogic_25.11.0-trunk_arm64__6.12.35-S9403-D0b5d-P0000-C999999H2313-HK01ba-Vc222-Bd200-R448a.deb ``` So it saves ~20MiB on disc and in the linux-image package as well. Reasons to not do this: a) paranoia about the `xz` library compromise [not really an XZ thing]. b) possibility of tooling failures [`MODULE_DECOMPRESS` may save us, maybe it won't] on older versions of Armbian/debian. c) could use `zstd` instead. This is the kind of thing to consider making standard across all board configs. But I don't own all of the boards so can't hardly test them all.
1 parent 1056f8e commit 690c874

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config/kernel/linux-filogic-current.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ CONFIG_JUMP_LABEL=y
108108
# CONFIG_STACKPROTECTOR_STRONG is not set
109109
CONFIG_MODULES=y
110110
CONFIG_MODULE_UNLOAD=y
111+
CONFIG_MODULE_COMPRESS=y
112+
CONFIG_MODULE_COMPRESS_XZ=y
113+
CONFIG_MODULE_DECOMPRESS=y
111114
# CONFIG_BLOCK_LEGACY_AUTOLOAD is not set
112115
CONFIG_BLK_DEV_THROTTLING=y
113116
# CONFIG_BLK_DEBUG_FS is not set

0 commit comments

Comments
 (0)