Tiny Core Base > CorePlus
how to compile my kernel? and converting tinycore initrd to traditional rootfs?
linic:
Hi youxiaojie,
--- Quote ---I once compiled most minimum kernel of 6.xx can run in 32MB deselect many many configs.smp and cpu bug fix... by make tinyconfig
--- End quote ---
If you are interested in compiling your kernel with less options than the default kernel, I'm doing it for PII (so 686) here https://github.com/linic/tcl-core-560z
For 486, you'll have to modify the scripts a bit. This post will be useful https://forum.tinycorelinux.net/index.php/topic,27623.msg178627.html#msg178627
Also, if you don't have docker, you don't necessarily need it as you can run the scripts called in https://github.com/linic/tcl-core-560z/blob/main/Dockerfile.edit-config and in https://github.com/linic/tcl-core-560z/blob/main/Dockerfile to edit your config and compile your kernel. You'll have to do some reasearch and trial and error. It may take you time.
If you are time constrained, you should still check about trimming core.gz as Rich suggested.
--- Quote ---If it helps, this thread includes instructions on how to reduce the
size of core.gz:
https://forum.tinycorelinux.net/index.php/topic,27458.0.html
--- End quote ---
I had added an option in my git repo based on Rich's answer. I haven't run it since some time though... https://github.com/linic/tcl-core-560z/blob/main/Dockerfile.trim
CNK:
I built a smaller kernel for TC16 with things like SMP, ACPI, and NFS support disabled and it boots fine on a 486 laptop with 16MB RAM.
Replace vmlinuz with that after unpacking core.gz to a partition (I use an ext2 filesystem since it's simpler than ext3/4 so maybe uses the least RAM). Depending on how much RAM you have the normal tc-config might work OK, but if it's taking an eternity to boot even with the smaller kernel, try replacing /etc/init.d/tc-config with this really stripped down version I made. It just does the bare minimum to get things started. Uncomment the "#/sbin/udevadm trigger --action=add 2>&1 >/dev/null &" line to enable loading drivers during start up, I run that manually after it's started up. I also set up /etc/fstab manually before booting.
I use LOADLIN to boot TCL from MSDOS.
Navigation
[0] Message Index
[*] Previous page
Go to full version