[Solved] module logger.ko too big

Rajada

Senior Member
Feb 21, 2013
308
71
0
25
Agartala
Hi

I compiled my own kernel for I9300 (update 10).
I disabled the logger Android:

in arch/arm/configs/m0_00_defconfig
Code:
- CONFIG_ANDROID_LOGGER=y
+ CONFIG_ANDROID_LOGGER=m
in /drivers/staging/android/Kconfig
Code:
- default n
+ default m
I get a module logger.ko that works perfectly ( with insmod /lib/modules/logger.ko )
The problem is, that module logger.ko have 3,76 MB (3 944 448 bytes)!!!

How can i compile this module with "normal size", 12 KB, more or less

Thank in advance for any help
 
Last edited:

wanam

Recognized Contributor / Developer
Jan 26, 2011
6,193
29,973
263
Toulouse
wanam.net
Hi

I compiled my own kernel for I9300 (update 10).
I disabled the logger Android:

in arch/arm/configs/m0_00_defconfig
Code:
- CONFIG_ANDROID_LOGGER=y
+ CONFIG_ANDROID_LOGGER=m
in /drivers/staging/android/Kconfig
Code:
- default n
+ default m
I get a module logger.ko that works perfectly ( with insmod /lib/modules/logger.ko )
The problem is, that module logger.ko have 3,76 MB (3 944 448 bytes)!!!

How can i compile this module with "normal size", 12 KB, more or less

Thank in advance for any help
You can strip your modules with this command:
Code:
find . -type f -name '*.ko' | xargs -n 1 /path_to_your_toolchain/bin/arm-eabi-strip --strip-unneeded
 
  • Like
Reactions: Rajada

Rajada

Senior Member
Feb 21, 2013
308
71
0
25
Agartala
You can strip your modules with this command:
Code:
find . -type f -name '*.ko' | xargs -n 1 /path_to_your_toolchain/bin/arm-eabi-strip --strip-unneeded
fast and deadly

Tested and working. Problem solved

Lots of thanks, grand master of flash
 
Last edited:
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone