LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 01-24-2012, 12:12 AM   #1
Iyyappan
Member
 
Registered: Dec 2008
Location: Chennai, India
Distribution: CentOS 5, SLES 11
Posts: 91

Rep: Reputation: 4
Kernel upgrade from 2.6.18 to 3.1.6


I have tried to upgrade kernel from 2.6.18 to 3.1.6 in RHEL 5. I followed http://linuxgazette.net/111/krishnakumar.html link to do it. While compiling and installing i did not get any error. But while reboot i get an error displayed .
The error is
insmod: error inserting /lib/dm-region hash.ko.

From this i have tried many links to upgrade kernel, but i am unable to upgrade. I face the same error. I am doing some mistake, but i am not able to trace it. It would be helpful if some one provides a doc for upgrading kernel in CentOS or Red Hat.

Kindly provide some links to follow
 
Old 01-24-2012, 12:35 AM   #2
ukiuki
Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian, Ubuntu, Tinycore
Posts: 464

Rep: Reputation: 81
Are you compiling the kernel yourself ? Or are you trying to install a compiled one?
This is an helpful info for those that want to compile their own kernel:
http://kernel.org/doc/makehelp.txt
http://swift.siphos.be/linux_sea/ch07.html#idp34363984

Regards
 
Old 01-24-2012, 01:11 AM   #3
Iyyappan
Member
 
Registered: Dec 2008
Location: Chennai, India
Distribution: CentOS 5, SLES 11
Posts: 91

Original Poster
Rep: Reputation: 4
Yes i am configuring, compiling and installing from source. I have been using Linux for around 2 years, but i have never tried to upgrade kernel from source. Upgrading using rpm works fine, but i wish to upgrade from source. Will follow the links which u gave. Will update my output
 
Old 01-24-2012, 01:55 AM   #4
ukiuki
Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian, Ubuntu, Tinycore
Posts: 464

Rep: Reputation: 81
It is a tricky thing and sometimes you have to go through all it again when your kernel doesnt work, try and error thing. Remember to keep at least one good kernel installed so you can boot your machine.
I been playing with kernels for quite while. Every time i compile i save the config file for that round, if kernel doesnt boot it is because something necessary is missing. Sometimes you will recompile your kernel 3,4,5 or more times to get it well tunned, the list of things in the config file is huge and it is easy to miss something.
What i do is to edit every section at a time making sure everything is right before go to the next section.
Take your time do not rush.
This is one interesting reading about kernel: http://kmandla.wordpress.com/2010/07...2-6-34-kernel/

Make sure to include all hardware in your machine, this will give detailed info:
Code:
#lspci -v
That error your getting is about a driver, or it is a missing hardware or the wrong driver for some hardware.
http://lxr.free-electrons.com/source...-region-hash.c

Here another tread with similar problem:
http://www.linuxquestions.org/questi...kernel-801938/

Read as much as you can about kernel compiling in no time you will get it going.

Regards

Last edited by ukiuki; 01-24-2012 at 01:57 AM.
 
Old 01-24-2012, 09:07 AM   #5
sundialsvcs
Senior Member
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 3,681

Rep: Reputation: 329Reputation: 329Reputation: 329Reputation: 329
If you encounter an error inserting a kernel module, there are pretty much just two possibilities:
  1. The module isn't there.
  2. The module hasn't been recompiled with the most recent kernel. (And if so, you are very fortunate that Linux detected the mismatch.)

First, go find that file. Find every single copy of it. Be sure that you know where Linux is going to look for any modules that it wishes to load, and be absolutely certain that every one of them is "fresh."

What I normally do is this:
  1. Start a new page in your (paper...) service logbook and take detailed notes including date and time ...
  2. Pull out your check-list of how to do this, make a copy and start checking off each step with a pencil as you do them. (The checklist goes back into the notebook.)
  3. Make a backup copy of the .config file in a very safe place. This copy should not be "hidden," and it should be very clearly named and dated, and you should then use chmod 400 to explicitly write-protect it. You will never delete it. If it is "wrong," you will merely rename it and maybe set it aside, but if you ever, once attempted to do a build using it (with or without a subsequent install), you will keep it forever. (diff is a marvelous tool, indeed.)
  4. make distclean Now, make sure that every object-file and module file has thereby been scrubbed clean.
  5. Copy (don't "move") the .config file from your safe-place back into the right place with the right name.
  6. Repeat the make process. Verify that all of the files are present and accounted for.
  7. Do the kernel-install step and check it. Explicitly review the contents of the boot-loader menu file (even if you have done it hundreds of times before) and check against the content of /boot.
  8. With your Knoppix DVD at ready (and having recently exercised the recovery process using it ...), reboot.

Yes, it is a laborious, pedantic, step-by-step rote process, and carefully devised to be that way.

I see that you are changing major-versions of Linux ... from 2.xx.xx to 3.xx.xx ... therefore, special care is needed. A major-release change usually implies that some "deeper" subsystems have changed within the kernel.

Last edited by sundialsvcs; 01-24-2012 at 09:13 AM.
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to upgrade the Debian 3 kernel 2.4.18 to kernel 2.6 or bigmem- kernel chandu.bezawada Debian 6 11-12-2010 09:33 AM
apt-get upgrade does not upgrade my kernel halfpower Debian 5 12-11-2005 09:53 AM
Kernel Audit Support Unavaible error when booting after kernel upgrade abefroman Red Hat 0 07-04-2005 05:23 PM
What first upgrade kernel or upgrade slack 10.0 to current Kelean Slackware 7 01-16-2005 06:54 PM


All times are GMT -5. The time now is 12:37 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
Open Source Consulting | Domain Registration