View previous topic :: View next topic |
Author |
Message |
reup Guru
Joined: 13 May 2005 Posts: 419 Location: Nederland
|
Posted: Mon Jun 13, 2005 9:28 am Post subject: revert .config and compiled kernel |
|
|
hello all
I will make this very short
lately I recompile my kernel with new change, but when trying the new kernel it does not work well
luckely, following the great explanation from gentoo install site, I have copies of the previous kernel bzimage and .config in my /boot directory so I am currently booting with a good version of my kernel.
my question is this :
what do I need to remove from the next compile that I will do, all the change that I did ?
is copying the old .config on the new one enough or should I run some command to clean the source of the kernel (some "make clean" ?)
thx
reup |
|
Back to top |
|
|
UgolinoII Tux's lil' helper
Joined: 25 Apr 2004 Posts: 119
|
Posted: Mon Jun 13, 2005 9:44 am Post subject: |
|
|
if you copy your old (working) config into /usr/src/linux/.config and recompile as normal it should be ok |
|
Back to top |
|
|
reup Guru
Joined: 13 May 2005 Posts: 419 Location: Nederland
|
Posted: Mon Jun 13, 2005 9:49 am Post subject: |
|
|
cool, thanks for the quick reply,
I'll give it a try
Reup |
|
Back to top |
|
|
nephros Advocate
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Mon Jun 13, 2005 10:12 am Post subject: |
|
|
If your old, working .config is from another kernel version than the one you are trying to (re)compile, copy it to $SRCDIR/.config and issue a "make oldconfig". This will resolve all incompatibilities between .config versions. It will prompt you for any new or undefined options the newer kernel needs, and drop unknown ones. _________________ Please put [SOLVED] in your topic if you are a moron. |
|
Back to top |
|
|
reup Guru
Joined: 13 May 2005 Posts: 419 Location: Nederland
|
Posted: Mon Jun 13, 2005 10:34 am Post subject: |
|
|
that 's it, I knew that there was some command to run, but in this case I am on the same kernel so I will just copy over my previous .config.
I'll keep under the arm the "make oldconfig"
is this oldconfig necessary if I move from a 2.6.11-gentoo-rx to rx+1 ?
reup |
|
Back to top |
|
|
nephros Advocate
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Mon Jun 13, 2005 10:56 am Post subject: |
|
|
reup wrote: | is this oldconfig necessary if I move from a 2.6.11-gentoo-rx to rx+1 ? |
Well, probably.
Can't hurt anyway. _________________ Please put [SOLVED] in your topic if you are a moron. |
|
Back to top |
|
|
|