View previous topic :: View next topic |
Author |
Message |
Kurmis n00b
Joined: 04 Jun 2010 Posts: 43 Location: LV
|
Posted: Sat Dec 28, 2024 12:29 pm Post subject: Kernel compile zstd: error 11 |
|
|
Good day experts.
On olde Pentium4 32bit machine i try to install gentoo stage3-i686-systemd-20241209T170323Z.tar.xz .
Following https://wiki.gentoo.org/wiki/Handbook:X86/Installation/Kernel#Installing_the_kernel_sources
Code: | (chroot) emerge --ask sys-kernel/gentoo-sources
(chroot) make menuconfig | Configuring CPU type, filesystems ...
Code: | (chroot) make && make modules_install
. . .
. . .
TEST posttest
arch/x86/tools/insn_sanity: Success: decoded and checked 1000000 random instructions with 0 errors (seed:0xa2a2bdb)
ZSTD22 arch/x86/boot/compressed/vmlinux.bin.zst
zstd: error 11 : Allocation error : not enough memory
make[2]: *** [arch/x86/boot/compressed/Makefile:151: arch/x86/boot/compressed/vmlinux.bin.zst] Error 11
make[2]: *** Deleting file 'arch/x86/boot/compressed/vmlinux.bin.zst'
make[1]: *** [arch/x86/boot/Makefile:116: arch/x86/boot/compressed/vmlinux] Error 2
make: *** [arch/x86/Makefile:276: bzImage] Error 2 | Is it bug in gentoo-sources or maybe i miss some steps before make ?
During make in another terminal free return something like this
Code: | $ free
total used free shared buff/cache available
Mem: 8034664 1417340 2829588 352180 3787736 5958920
Swap: 8388604 0 8388604 |
Code: | (chroot) eix gentoo-sources
Installed versions: 6.1.118(6.1.118)^bs(15:04:47 12/16/24)(-build -experimental -symlink) |
How to fix it ?
Tnx in advance @ all. |
|
Back to top |
|
|
freke Veteran
Joined: 23 Jan 2003 Posts: 1041 Location: Somewhere in Denmark
|
|
Back to top |
|
|
Kurmis n00b
Joined: 04 Jun 2010 Posts: 43 Location: LV
|
Posted: Sat Dec 28, 2024 2:49 pm Post subject: |
|
|
Can Thou, please, show me exact example how to try different compression method ?
In given link /usr/src/linux/arch/x86/boot/compressed/Makefile is changed Code: | $(call if_changed,zstd22)
->
$(call if_changed,zstd) | But i have Code: | $(obj)/vmlinux.bin.zst: $(vmlinux.bin.all-y) FORCE
$(call if_changed,zstd22_with_size) |
here is no zstd22 but zstd22_with_size .
What is legal values for replace this ? zstd_with_size or zstd or something else ?
Is it possible to pass command line args to make instead of change Makefile ? |
|
Back to top |
|
|
freke Veteran
Joined: 23 Jan 2003 Posts: 1041 Location: Somewhere in Denmark
|
Posted: Sat Dec 28, 2024 3:16 pm Post subject: |
|
|
-> General setup -> Kernel compression mode -> select ie. lzo |
|
Back to top |
|
|
Kurmis n00b
Joined: 04 Jun 2010 Posts: 43 Location: LV
|
Posted: Sat Dec 28, 2024 3:38 pm Post subject: |
|
|
I have zstd22_with_size manually changed to zstd_with_size and to zstd
zstd_with_size did not work, but with zstd i have successfully generated bzImage .
Code: | (chroot) diff usr/src/linux/arch/x86/boot/compressed/Makefile.bak00 /usr/src/linux/arch/x86/boot/compressed/Makefile
151c151
< $(call if_changed,zstd22_with_size)
---
> $(call if_changed,zstd) | Thanks a lot , next time i will try Code: | (chroot) make menuconfig
---> General setup
---> Kernel compression mode
---> LZO |
|
|
Back to top |
|
|
|