Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
When upgrading kernel:How to reuse old .config?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 945
Location: New Orleans

PostPosted: Fri Sep 10, 2004 7:04 pm    Post subject: When upgrading kernel:How to reuse old .config? Reply with quote

Is there a good HOWTO on kernel upgrades describing how to 'reuse' your old config on the new kernel build?

I'm guessing it isn't really safe to just drop your previous .config file into the new directory as that some things change, etc.

Is there a way to change the new kernel's .config values that are the same as the old version's .config, and then go to make menuconfig and do changes to the new stuff as needed?

I know there are some kernel install docs out there, but, never seen anything in them about saving some steps on a UPGRADE by keeping what was in common with you previous kernel .config...

Thanks in advance,

cayenne
_________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
Back to top
View user's profile Send private message
hensan
l33t
l33t


Joined: 26 Jun 2003
Posts: 868
Location: Sweden

PostPosted: Fri Sep 10, 2004 7:22 pm    Post subject: Reply with quote

make oldconfig will take your existing config and just ask you about any new options that may have been added.
Back to top
View user's profile Send private message
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 945
Location: New Orleans

PostPosted: Fri Sep 10, 2004 7:59 pm    Post subject: Thanks Reply with quote

hensan wrote:
make oldconfig will take your existing config and just ask you about any new options that may have been added.


Thanks for the reply.
Do you do this before or after you change the link in /usr/src/linux to point to the new kernel source?

C
_________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
Back to top
View user's profile Send private message
hensan
l33t
l33t


Joined: 26 Jun 2003
Posts: 868
Location: Sweden

PostPosted: Fri Sep 10, 2004 8:07 pm    Post subject: Reply with quote

It doesn't matter, all you have to do is to drop your old .config in there and run make oldconfig. It's just so that certain stuff like the nvidia drivers can find your kernel that the symlink should point to the right kernel.
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2792
Location: Pittsburgh, PA, USA

PostPosted: Fri Sep 10, 2004 8:14 pm    Post subject: Reply with quote

If you use genkernel copy your old .config to /usr/share/genkernel/x86/kernel-config-2.6

Code:
cp /usr/src/linux/.config /usr/share/genkernel/x86/kernel-config-2.6

_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
Tsonn
Guru
Guru


Joined: 03 Jun 2004
Posts: 550

PostPosted: Fri Sep 10, 2004 11:33 pm    Post subject: Reply with quote

Wouldn't it make more sense to run 'genkernel --oldconfig'?
Back to top
View user's profile Send private message
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 945
Location: New Orleans

PostPosted: Sat Sep 11, 2004 12:29 am    Post subject: thanx Reply with quote

26199 wrote:
Wouldn't it make more sense to run 'genkernel --oldconfig'?

Thanx for the reply....I don't use genkernel....roll them all by hand old style...
:-)

I'll try the dropping in of the .config and make oldconfig suggested earlier..

Thanks again to all!!

c
_________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
Back to top
View user's profile Send private message
Rainmaker
Veteran
Veteran


Joined: 12 Feb 2004
Posts: 1650
Location: /home/NL/ehv/

PostPosted: Sat Sep 11, 2004 12:37 am    Post subject: Reply with quote

tip, if you already removed your old sources, try
Code:
gzcat /proc/config.gz > .config

In the directory. You'll have to enable "config support through proc" or something. make menuconfig also "re-uses" the values if a .config exists, but oldconfig will show you only the new options.
_________________
If you can't dazzle them with brilliance, baffle them with bullshit.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum