Kernel compiling: Why is my Kernel so big?

Dieter Wirz didi.wirz at gmail.com
Thu Jul 9 20:27:46 UTC 2009


Dear all -
I need a Vanilla kernel from Kernel.org....

cd /usr/src
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.28.10.tar.gz
tar xzf linux-2.6.30.1.tar.gz
ln -s /usr/src/linux-2.6.30.1 /usr/src/linux
cd /usr/src/linux
# copy Ubuntu-Config:
cp -a /boot/config-2.6.28-13-generic ./.config
make oldconfig
make-kpkg clean
make-kpkg --initrd --append-to-version=-didi1 --revision=comedi.1.0
kernel_image kernel-header
and dpkg -i ....

And I get a running System....

- BUT -

~ du /lib/modules/* -sh #Disk usage of modules
672M    /lib/modules/2.6.28.10-didi1
88M     /lib/modules/2.6.28-13-generic

And initrd is about 50M!

Instead of "make oldconfig" I tried as well "menuconfig" and different
Kernels like 2.6.30.1, but the system seems to compile almost all
modules....

Any Ideas what I am doing wrong or should I write a Bug report?

Regards
-didi

# uname -a
Linux dellurz1 2.6.30.1 #1 SMP Wed Jul 8 18:22:56 CEST 2009 i686 GNU/Linux

It is an actual 9.04 downloaded some days ago....




More information about the ubuntu-users mailing list