LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-19-2005, 03:50 AM   #1
small_boy22
Member
 
Registered: May 2005
Posts: 45

Rep: Reputation: 15
About Kernel after getting patched


Hey, yesterday i just got the 2.6.11.10 patch and i had the 2.6.11.9 source.

So i applied the patch.I have some questions to ask:

1)If i apply the patch once and by mistake apply the same patch again to the patched source will this damage the previously patched files(because they are getting patched again) ???

2)It's kinda boring to make a new .config again so i use the old.Should i copy the old .config to the patched kernel directory by keeping the name .config or should i copy it like .config.old and type "make oldconfig" so that i can have the new options ??
Meaning:

a)Copy old .config to patched kernel source dir as .config
and by typing "make menuconfig" whould i have the new kernel options available ??

b)Copy old .config to patched kernel source dir with name .config.old
and by typing "make oldconfig" whould i have the new kernel options available ??

Which is correct a or b ??
I want to add here that when i apply th kernel patch there is no Makefile to get patched !!weird..


3)Should we "make clean && make mproper" before we compile the patched kernel to be 100% certain that it will work or just re-compiling without "make clean && make mproper" things will work ???


4)After i compile it and give uname -r i get "2.6.11.9" !!!!!!!!!
But then i wrote to an option called "something* about local kernel name" 2.6.11.10 and then when i type uname -r i get "2.6.11.92.6.11.10" !!!

When i give "make menuconfig" at top left it displays "Kernel 2.6.11.9 Configuration" ...damn patches.


5)after applying the 2.6.11.10 patch the kernel source is identical to the one from "linux-2.6.11.10.tar.bz2" ???
 
Old 05-19-2005, 09:26 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Re: About Kernel after getting patched

1)If i apply the patch once and by mistake apply the same patch again to the patched source will this damage the previously patched files(because they are getting patched again) ???

Shouldn't hurt it any from my knowledge, you'd just be applying the same code on top of what you had just done.

2)It's kinda boring to make a new .config again so i use the old.Should i copy the old .config to the patched kernel directory by keeping the name .config or should i copy it like .config.old and type "make oldconfig" so that i can have the new options ??

'make oldconfig' will copy your old config to your new directory, etc.

a)Copy old .config to patched kernel source dir as .config
and by typing "make menuconfig" whould i have the new kernel options available ??

b)Copy old .config to patched kernel source dir with name .config.old
and by typing "make oldconfig" whould i have the new kernel options available ??

Which is correct a or b ??
I want to add here that when i apply th kernel patch there is no Makefile to get patched !!weird..


I don't know what your doing.. all the same code and config files should still be in your existing directory from your previous kernel.. you just applied a patch, so your literally should be using the same src directory to compile from.


3)Should we "make clean && make mproper" before we compile the patched kernel to be 100% certain that it will work or just re-compiling without "make clean && make mproper" things will work ???

You don't have to but it doesn't hurt any. You can run 'make clean' after every step when compiling.


4)After i compile it and give uname -r i get "2.6.11.9" !!!!!!!!!
But then i wrote to an option called "something* about local kernel name" 2.6.11.10 and then when i type uname -r i get "2.6.11.92.6.11.10" !!!


You probably screwed up somewhere..

When i give "make menuconfig" at top left it displays "Kernel 2.6.11.9 Configuration" ...damn patches.

You probably didn't patch it properly.. yup!


5)after applying the 2.6.11.10 patch the kernel source is identical to the one from "linux-2.6.11.10.tar.bz2" ???

Should be, that's the whole point in patching from one version to the next.. it saves time in having to download everything all over again with only applying the changes to the code..
 
Old 05-19-2005, 10:07 AM   #3
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
The thing about .config sounds too confusing to me Here's what I do:
  • - run 'make clean' and/or 'make mrproper' in the kernel source directory
    - patch the kernel (btw: patch will complain if the patch has been applied previously)
    - rename the sources directory to the new kernel version (because that's what it is now)
    - your old .config is still in the kernel source directory. To adapt it to the new sources, run 'make oldconfig', then 'make xconfig' or 'make menuconfig' to make fine adjustments. If .config is not in the source directory (because you ran 'make mrproper'), create a new one by 'make cloneconfig'.
    - check 'Makefile' is the version is entered correctly (should be done by the patch)
    - compile and install your kernel
 
Old 05-19-2005, 10:54 AM   #4
small_boy22
Member
 
Registered: May 2005
Posts: 45

Original Poster
Rep: Reputation: 15
let me tell what i did:

Saved .config to a different dir. Deleted /usr/src/linux-2.6.11.9
Then untared linux-2.6.11.9, applied the patch to it and then coppied back the .config file.
I did this because when i applied the patch if the directory /usr/src/linux-2.6.11.9 before i deleted(the old one with the compiled stuff) i couldn't make it to work properly e.g. having "Kernel 2.6.11.10 Configuration" at the left-top of my screen.This happens propably because the patch cannot find+patch the Makefile.

Thanks for the info guys ill try some more when i get home at night and see the results.


That SlackWare makes me only to read-learn-post-read-learn-read-post... etc.. loving it

Great distro for learning GNU/Linux
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
patched kernel (vmlinuz-2.4.20-8-ide) carlosnarsisa Linux - Hardware 2 01-07-2006 08:12 AM
Debian patched kernel vs official Linux Kernel gerald45 Debian 7 10-12-2005 04:45 AM
Fedora Patched kernel for Win4Lin ekp Fedora 2 03-28-2005 07:17 AM
make mrproper on patched kernel? shanenin Linux - Software 0 11-27-2004 09:48 AM
When will the mremap() kernel bug get patched? KingofBLASH Slackware 4 03-08-2004 05:53 PM


All times are GMT -5. The time now is 12:29 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration