LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-28-2007, 01:37 AM   #1
bj_googler
LQ Newbie
 
Registered: Jun 2007
Posts: 4

Rep: Reputation: 0
About upgrade 2.6.20 kernel


Now, I want to upgrade my linux kernel by source code named linux-2.6.20.tar.gz,i according to the README to install it,the step such as make menuconfig,make ,make install and so on,and no errors have happened,but the kernel upgrade failed,and use cmd uname -r ,the kernel remains 2.6.18 which before upgraded,who can tell me how to upgrade kernel through the source code,thank you!
 
Old 06-28-2007, 02:55 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
All the instructions are in the README file. Extract the source code, run 'make menuconfig' (or some other method of configuring), do the changes you need to, run 'make' to compile the code. After this copy the kernel/needed files to your /boot and configure your bootloader to include them in the boot list. Then either set the new kernel as the default one or select it from your bootloader next time you reboot. Do not remove any older kernels before you've tested that this new kernel works fully; if it doesn't, it's good to have at least one older, working kernel so that you are able to boot.

The files you need to copy to /boot depend on what you've compiled into the kernel. For example if you use ext3 filesystem and support for it is not built into the kernel, you'll need more than just bzImage.
 
Old 06-28-2007, 03:18 AM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
Which bootloader are you using? Grub or lilo?
If the new kernel is already in the /boot directory, then it's just a bootloader configuration problem. /etc/lilo.conf is for lilo.
 
Old 06-28-2007, 07:06 AM   #4
bj_googler
LQ Newbie
 
Registered: Jun 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Thank b0uncer and whansard very much!Thanks for your help!
Yes,I can upgrade the kernel from 2.6.18 to 2.6.20,but when i want to upgrade the kernel to 2.6.21.5,and the same method like 2.6.18_to_2.6.20,no errors have happened,but i reboot it and i saw the information like 'Kernel panic - not syncing : Attempted to kill init! ',why did this happen?what is the reason for this?and what can i do to solve this problem?Thank you!
 
Old 06-28-2007, 07:29 AM   #5
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
there's lots of things you can leave out of the kernel that can do that.
 
Old 06-28-2007, 07:40 AM   #6
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
That's true. One common is filesystem support; for example if the filesystem is in ext3 format but kernel has only modular support for ext3, it may not be able to load it before root filesystem is mounted, which leads to a dead end. For this problem the solution is to use initrd, which provides the capability to load a RAM disk by the boot loader, to which it can then mount the filesystem and keep going. That's just one example.

I suggest you look at the configuration of (one of) your working kernel(s) and compare that to the configuration of your new kernel which doesn't boot. If you have or can extract the .config files (maybe trough /proc, if it's enabled in the old kernels) for the older kernels too, you can 'diff' them and then start inspecting closer the things that differ (mainly those that are missing from the new kernel). If the solution isn't obvious after that or you're unsure, you can try the things one by one until you find out what it is about.

Last edited by b0uncer; 06-28-2007 at 07:41 AM.
 
Old 06-28-2007, 08:56 PM   #7
bj_googler
LQ Newbie
 
Registered: Jun 2007
Posts: 4

Original Poster
Rep: Reputation: 0
OK,Thank you very much!
but now problem is : where is the 'make menuconfig' file? i try my best to find the file but no reason,please tell me ,Thank you !
 
Old 06-29-2007, 02:57 AM   #8
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
Quote:
Originally Posted by bj_googler
OK,Thank you very much!
but now problem is : where is the 'make menuconfig' file? i try my best to find the file but no reason,please tell me ,Thank you !

That isn't a file. you type 'make menuconfig' in the top directory of the kernel source to get run a kernel configuration utility. make gconfig and make xconfig are others you can only run in X
 
Old 06-29-2007, 03:12 AM   #9
bj_googler
LQ Newbie
 
Registered: Jun 2007
Posts: 4

Original Poster
Rep: Reputation: 0
To whansard :first,thank you for your help!
yes,i know the 'make menuconfig' is a command,and i want to know after input 'make menuconfig'and exit the face of the menuconfig,where is my config files which i select in the menuconfig,if i get it and i can copy it to my new kernel upgrade,then the new kernel have the same configure like old's,maybe the errors will be disappeared,good luck!

thank you very much!
 
Old 06-29-2007, 04:02 AM   #10
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
ok. the setup is saved to .config. the leading period makes it a hidden file. ls -al will show them. If you copy a config to a different kernel, you should first run 'make oldconfig', and oldconfig will have you put in values for the things that are different or nonexistant in the newer kernel.
 
  


Reply

Tags
kernel, source



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
Kernel Audit Support Unavaible error when booting after kernel upgrade abefroman Red Hat 2 03-21-2013 08:32 AM
apt-get upgrade does not upgrade my kernel halfpower Debian 5 12-11-2005 09:53 AM
What first upgrade kernel or upgrade slack 10.0 to current Kelean Slackware 7 01-16-2005 06:54 PM
Kernel upgrade: Unable to handle kernel paging request deviantintegral Debian 4 07-14-2004 04:59 PM

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

All times are GMT -5. The time now is 06:17 PM.

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