Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,576 Members 38,120 Now Online
XDA Developers Android and Mobile Development Forum

[Q] How to modify kernel config in CM11 ?

Tip us?
 
zwiebelchen89
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 7
Join Date: Jul 2011
Question [Q] How to modify kernel config in CM11 ?

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
 
abaaaabbbb63
Old
#2  
abaaaabbbb63's Avatar
Recognized Contributor
Thanks Meter 2,985
Posts: 3,768
Join Date: Nov 2011
Location: Somewhere Over The Rainbow
Quote:
Originally Posted by zwiebelchen89 View Post
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: [ Click to Expand ]
 
zwiebelchen89
Old
(Last edited by zwiebelchen89; 29th August 2014 at 07:22 PM.)
#3  
Junior Member - OP
Thanks Meter 0
Posts: 7
Join Date: Jul 2011
Quote:
Originally Posted by abaaaabbbb63 View Post
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 !
 
abaaaabbbb63
Old
#4  
abaaaabbbb63's Avatar
Recognized Contributor
Thanks Meter 2,985
Posts: 3,768
Join Date: Nov 2011
Location: Somewhere Over The Rainbow
Quote:
Originally Posted by zwiebelchen89 View Post
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
 
zwiebelchen89
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 7
Join Date: Jul 2011
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes