View previous topic :: View next topic |
Author |
Message |
cayenne l33t


Joined: 17 Oct 2002 Posts: 945 Location: New Orleans
|
Posted: Fri Sep 10, 2004 7:04 pm Post subject: When upgrading kernel:How to reuse old .config? |
|
|
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 |
|
 |
hensan l33t


Joined: 26 Jun 2003 Posts: 868 Location: Sweden
|
Posted: Fri Sep 10, 2004 7:22 pm Post subject: |
|
|
make oldconfig will take your existing config and just ask you about any new options that may have been added. |
|
Back to top |
|
 |
cayenne l33t


Joined: 17 Oct 2002 Posts: 945 Location: New Orleans
|
Posted: Fri Sep 10, 2004 7:59 pm Post subject: Thanks |
|
|
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 |
|
 |
hensan l33t


Joined: 26 Jun 2003 Posts: 868 Location: Sweden
|
Posted: Fri Sep 10, 2004 8:07 pm Post subject: |
|
|
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 |
|
 |
drescherjm Advocate

Joined: 05 Jun 2004 Posts: 2792 Location: Pittsburgh, PA, USA
|
Posted: Fri Sep 10, 2004 8:14 pm Post subject: |
|
|
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 |
|
 |
Tsonn Guru


Joined: 03 Jun 2004 Posts: 550
|
Posted: Fri Sep 10, 2004 11:33 pm Post subject: |
|
|
Wouldn't it make more sense to run 'genkernel --oldconfig'? |
|
Back to top |
|
 |
cayenne l33t


Joined: 17 Oct 2002 Posts: 945 Location: New Orleans
|
Posted: Sat Sep 11, 2004 12:29 am Post subject: thanx |
|
|
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 |
|
 |
Rainmaker Veteran


Joined: 12 Feb 2004 Posts: 1650 Location: /home/NL/ehv/
|
Posted: Sat Sep 11, 2004 12:37 am Post subject: |
|
|
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 |
|
 |
|