View Single Post
Posts: 5 | Thanked: 0 times | Joined on Dec 2009
#1
Hi all,

I have been trying to build custom kernel following these instructions:
Maemo Kernel Guide
Jebba compile custom kernel

After successfult compilation I was shocked when found out that new kernel modules takes ~50Mb !
Code:
du -hs /lib/modules/2.6.28-omap1-fln
48M            /lib/modules/2.6.28-omap1-fln/
The modules on the N900 takes no more than ~3Mb
Code:
du -hs /lib/modules/2.6.28-omap1
3.3M            /lib/modules/2.6.28-omap1/
Also module sizes at Jebba costom kernel modules pages http://www.freemoe.org/users/jebba/k.../2.6.28-omap1/ seems the same size as the original ones.

Issuing strip reduces module size drastically.
However file reports that booth original modules and Jebba modules are unstripped.

Is it safe to fully strip all modules? Has anyone tried?

Or should i use objcopy --strip-debug -R .modinfo -R __versions hello.ko from the Maemo Kernel Guide?

Sizes comparison:
From phone wl12xx.ko - 100K
Jebba wl12xx.ko - 100K
Just compiled wl12xx.ko - 1.5M
stripped wl12xx.ko - 68K
objcopy --strip-debug -R .modinfo -R __versions wl12xx.ko - 104K

Thanks in advance.