Tiny Core Linux
Tiny Core Base => Corepure64 => Topic started by: nagtiny on October 26, 2016, 03:45:20 PM
-
hello,
i patched the linux-4.2.9-patched.tar.xz with the dirty COW fix using config-4.2.9-tinycore64, and built it according to the wiki entry. everything worked as expected, but the size of the new kernel image is nearly twice as big as the original one. did i miss any compress option when making bzImage?
thanks!
-
You need to compress the kernel modules (.ko -> .ko.gz) files using gzip.
You can have a look at my kernel Makefile https://github.com/Jidoteki/tinycore-kernel/blob/master/Makefile (https://github.com/Jidoteki/tinycore-kernel/blob/master/Makefile) for inspiration.
-
thanks for the answer, but because i do not change the kernel version (only patching the current one), i do not build the modules at all, i only build the kernel (make bzImage), and its the kernel image which is too big.
-
It sounds like the config was not applied, a 2x increase can't really be explained otherwise.
-
just to be sure, i recompiled 4.2.9 without my patch, here is what i did step by step:
- download of http://tinycorelinux.net/7.x/x86_64/release/src/kernel/linux-4.2.9-patched.tar.xz, and extracted it
- in the new linux-4.2.9 directory, i run make mrproper
- download of http://tinycorelinux.net/7.x/x86_64/release/src/kernel/config-4.2.9-tinycore64, and copy it to the linux-4.2.9/.config
- in the new linux-4.2.9 directory, i run make oldconfig
- in the new linux-4.2.9 directory, i run make bzImage
the newly created bzImage is now 6.2MB.
did i miss something?
thank you
-
Your steps are correct, can't tell at a glance what would cause it.