Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: zbs888 on December 30, 2021, 12:59:09 AM
-
Dear sir,the orig vmlinuz64 is 4.9M,5.4.3-tinycore64 is 9.2M
After complie kernel:
tar linux-5.4.3-patched.txz,,cp config-5.4.3-tinycore64 .config,,make oldconfig,,make menuconfig,,add ip_vs ,kernel crash ,ipv6,,make bzImage
finaly ,i got this:
vmlinuz64 is 5.1M,5.4.3-tinycore64 is 3.0G
Did I do anything wrong?The size 5.4.3-tinycore64 is tooooooooo big
-
It's not clear what size you mean.
-
Did you compile ip_vs into the kernel “=y” or as a module “=m”?
-
It's not clear what size you mean.
sorry,sir
i mean the lib/modules 's size is tooooo big
i just add kernel crash,ipvs,netfilt
my operation wrong on something
-
Did you compile ip_vs into the kernel “=y” or as a module “=m”?
ip_vs as module
kernel crash as kernel
netfilter as module
Although i didn't find how to use kernel crash command kdump
-
lib/modules usually gets post-processed. Remove the generated files modules.*, gzip modules, and sort to extensions. Since you're changing enough to make modules potentially incompatible, you may as well keep everything instead of making extensions.
-
lib/modules usually gets post-processed. Remove the generated files modules.*, gzip modules, and sort to extensions. Since you're changing enough to make modules potentially incompatible, you may as well keep everything instead of making extensions.
Dear sir,i had a new question.
Before i compile the tiny kernel ,i can use 'linux /boot/vzlinuz64' 'initrd /boot/init' to boot,after i compile the new kernel ,it show 'Kernel panic-not syncing: VFS: unable to mount root fs on unknown-block',must add root=/dev/sda1 after linux /boot/vzlinuz64 to boot.
What should i do next.
-
If you're lucky, you can use the existing init.rd and vmlinuz and make an extension out of the ip_vs module you compiled.
-
There's a sorter.sh script to make life easier.
https://github.com/tinycorelinux/sorter
-
If you're lucky, you can use the existing init.rd and vmlinuz and make an extension out of the ip_vs module you compiled.
Dear sir,
Before i compile the tiny kernel ,i can use 'linux /boot/vzlinuz64' 'initrd /boot/init' to boot,after i compile the new kernel ,it show 'Kernel panic-not syncing: VFS: unable to mount root fs on unknown-block',must add root=/dev/sda1 after linux /boot/vzlinuz64 to boot.
Can you give me some advice?
-
There's a sorter.sh script to make life easier.
https://github.com/tinycorelinux/sorter
Thanks,i'll trying to separate some modules.
-
The root-fs error is because you're missing a proper initrd.
-
The root-fs error is because you're missing a proper initrd.
Thanks for your reply,but i still don't know.
The orig kernel and initrd work fine,no root=/dev/sda1 string.
I just using .config to compile a new kernel ,just add crash and ip_vs module, replace the orig kernel to reboot,can't find the root-fs..
The orig kernel(5.4.3) had some special setting for root-fs or initrd?
-
The new initrd must contain the new modules.