Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] How to modify kernel config in CM11 ?

OP zwiebelchen89

28th August 2014, 10:08 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
7 posts
Join Date:Joined: Jul 2011
More
Hi,

I went completely through Cyanogenmod's "Build for hammerhead" tutorial written in their Wiki and ended up successfully with my own compiled CM11 nightly.

But now I want to add / enable a few modules in the kernel but I can't find any site / tutorial which describes how to build your own kernel config based on the one used as "standard config" in CM11 for your device (in my case, hammerhead ).

To sum up, I want to:
-"open" kernel config used for the last build
-enable a few modules
-save and recompile with the new config

If there's already any tutorial I haven't found, please give me the link.

Thanks in advance,

zwiebelchen89
29th August 2014, 04:48 PM   |  #2  
abaaaabbbb63's Avatar
Recognized Contributor
Flag Somewhere Over The Rainbow
Thanks Meter: 3,110
 
3,811 posts
Join Date:Joined: Nov 2011
More
Quote:
Originally Posted by zwiebelchen89

Hi,

I went completely through Cyanogenmod's "Build for hammerhead" tutorial written in their Wiki and ended up successfully with my own compiled CM11 nightly.

But now I want to add / enable a few modules in the kernel but I can't find any site / tutorial which describes how to build your own kernel config based on the one used as "standard config" in CM11 for your device (in my case, hammerhead ).

To sum up, I want to:
-"open" kernel config used for the last build
-enable a few modules
-save and recompile with the new config

If there's already any tutorial I haven't found, please give me the link.

Thanks in advance,

zwiebelchen89

How about this?
http://wiki.cyanogenmod.org/w/Doc:_i...ernel_building
The Following User Says Thank You to abaaaabbbb63 For This Useful Post: [ View ]
29th August 2014, 08:16 PM   |  #3  
OP Junior Member
Thanks Meter: 0
 
7 posts
Join Date:Joined: Jul 2011
More
Quote:
Originally Posted by abaaaabbbb63

How about this?
http://wiki.cyanogenmod.org/w/Doc:_i...ernel_building

I'm not completely satisfied with this instructions.

OK, my current kernel config is in the file "kernel/lge/hammerhead/arch/arm/configs/cyanogenmod_hammerhead_defconfig".

So, how to edit / create a new config based on this one ?
Everything should stay the same + a few new modules / options.
But I don't want to configure everything else what is currently already configured.

Or is this config the "default case" when starting "make menuconfig" without setting anything ?

Thanks !
Last edited by zwiebelchen89; 29th August 2014 at 08:22 PM.
29th August 2014, 08:32 PM   |  #4  
abaaaabbbb63's Avatar
Recognized Contributor
Flag Somewhere Over The Rainbow
Thanks Meter: 3,110
 
3,811 posts
Join Date:Joined: Nov 2011
More
Quote:
Originally Posted by zwiebelchen89

I'm not completely satisfied with this instructions.

OK, my current kernel config is in the file "kernel/lge/hammerhead/arch/arm/configs/cyanogenmod_hammerhead_defconfig".

So, how to edit / create a new config based on this one ?
Everything should stay the same + a few new modules / options.
But I don't want to configure everything else what is currently already configured.

Or is this config the "default case" when starting "make menuconfig" without setting anything ?

Thanks !

I actually have no idea. Maybe @Chromium knows :P
29th August 2014, 09:38 PM   |  #5  
OP Junior Member
Thanks Meter: 0
 
7 posts
Join Date:Joined: Jul 2011
More
OK, I played around a while and finally got it by myself:


Code:
#copy your existing config to your kernel directory
cp android/system/kernel/lge/hammerhead/arch/arm/configs/cyanogenmod_hammerhead_defconfig android/system/kernel/lge/hammerhead/.config

#go into kernel directory
cd android/system/kernel/lge/hammerhead/

#call make menuconfig to perform your changes
make menuconfig ARCH=arm

#copy your new config to old place
cp .config ~/android/system/kernel/lge/hammerhead/arch/arm/configs/cyanogenmod_hammerhead_defconfig

#clean up
make mrproper
Now you can continue with "brunch hammerhead" from your crott directory (normally ~/android/system).
-time brunch hammerhead
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes