Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: Twist on October 29, 2018, 10:50:38 AM

Title: compiled kernel + moduels way bigger than piCore version
Post by: Twist on October 29, 2018, 10:50:38 AM
I'm tinkering with the 10.x beta on a 3B+
One thing I'm trying to do is compile kernel 4.19 + its modules. I'm using a debian based machine to cross compile (loosely following this (https://www.raspberrypi.org/documentation/linux/kernel/building.md) info and combining it with the wiki info (http://wiki.tinycorelinux.net/wiki:custom_kernel))

On the 10.x beta running Pi3B+ I've done:
Code: [Select]
sudo modprobe configsAnd gunzip the /proc/config.gz to then on the build machine use that config as a starting point (renamed to .config and make oldconfig). I've just entered my way through all the default answers to new config options.

When I then
Code: [Select]
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbsThen after make install (using INSTALL_MOD_PATH=/sometemppath) I end up with a tree about 50MB worth of kernel modules, whereas the piCore 10.x size is only a few MB...

Any pointers how to approach this?
Title: Re: compiled kernel + moduels way bigger than piCore version
Post by: curaga on October 30, 2018, 12:58:51 AM
Only a subset of modules is included. For x86, see our sorter script.
Title: Re: compiled kernel + moduels way bigger than piCore version
Post by: Rich on October 30, 2018, 04:49:32 AM
Hi Twist
Only a subset of modules is included. For x86, see our sorter script.
More info is here:
http://forum.tinycorelinux.net/index.php/topic,19961.msg123996.html#msg123996