LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-04-2014, 08:31 PM   #1
5883
Member
 
Registered: Aug 2004
Posts: 173

Rep: Reputation: 0
How to modify linux kernel config based on existing .config


so i started "make menuconfig",
then "load alternate config file", yes it's using existing .config,
i do nothing but just exit the menuconfig and save the changes,
the new .config is different from .config.old,

how come ? i didn't make any change ?
 
Old 08-04-2014, 08:51 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
HI,
Quote:
Originally Posted by 5883 View Post
How to modify linux kernel config based on existing .config
copy your old config file to .config in the kernel source root directory.
Eg.
Code:
cp /boot/config-3.13-2-amd64 /path/to/linux-3.14/.config
If that config file is for an older kernel version you can then run "make oldconfig" and you will be prompted with questions only related to newly added kernel features. Finally you can run "make menuconfig" if you want to make any other changes.

Quote:
Originally Posted by 5883 View Post
so i started "make menuconfig",
then "load alternate config file", yes it's using existing .config,
i do nothing but just exit the menuconfig and save the changes,
the new .config is different from .config.old,

how come ? i didn't make any change ?
Sorry, I've never used this feature of menuconfig so I don't know the details of what it is actually doing. I suggest trying the method I describe above - I've had great success with it in the past.

Evo2.
 
Old 08-04-2014, 08:53 PM   #3
5883
Member
 
Registered: Aug 2004
Posts: 173

Original Poster
Rep: Reputation: 0
actually it should be make ARCH=arm menuconfig
so i'm all set now,


Quote:
Originally Posted by evo2 View Post
HI,

copy your old config file to .config in the kernel source root directory.
Eg.
Code:
cp /boot/config-3.13-2-amd64 /path/to/linux-3.14/.config
If that config file is for an older kernel version you can then run "make oldconfig" and you will be prompted with questions only related to newly added kernel features. Finally you can run "make menuconfig" if you want to make any other changes.


Sorry, I've never used this feature of menuconfig so I don't know the details of what it is actually doing. I suggest trying the method I describe above - I've had great success with it in the past.

Evo2.
 
Old 08-05-2014, 09:26 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator Response

Moved: This thread is more suitable in <Linux - Kernel> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Use shell script to modify kernel config dbrazeau Linux - Kernel 2 08-16-2013 01:10 PM
How to filter the linux kernel code based on config file. removing unnecessary code atulmt Linux - Kernel 4 06-29-2013 11:14 PM
[SOLVED] How to modify kernel config? aihaike Slackware 7 11-27-2011 09:47 PM
[SOLVED] how to save needed modules config to create .config > compiled into kernel wargus Slackware 5 04-09-2011 05:22 AM
locating linux config files and how to modify a bash kernel maelstrombob Linux - Newbie 1 11-18-2003 09:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 07:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration