WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: compiled kernel + moduels way bigger than piCore version  (Read 167 times)

Offline Twist

  • WikiUser
  • *
  • Posts: 7
compiled kernel + moduels way bigger than piCore version
« 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 info and combining it with the wiki info)

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?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 9874
Re: compiled kernel + moduels way bigger than piCore version
« Reply #1 on: October 30, 2018, 12:58:51 AM »
Only a subset of modules is included. For x86, see our sorter script.
The only barriers that can stop you are the ones you create yourself.

Offline Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5964
Re: compiled kernel + moduels way bigger than piCore version
« Reply #2 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