LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 12-07-2011, 01:21 AM   #1
Young_zhang
LQ Newbie
 
Registered: Nov 2011
Location: China
Distribution: centos 5.5
Posts: 21

Rep: Reputation: Disabled
Assistance with "compile kernel"


hello everyone:
I am using Centos5.5 with kernel version "2.6.18",now i meet a problem:
i download the kernel 2.6.18 source code from internet.and i compile it with version "2.6.18Young",As you known,I do the following:
make bzImage
make modules
make modules_install
rename bzImage in /boot
generate initrd file
update menu.lst
when I reboot machine and choose the new kernel,it prompt:insmod:error inserting '/lib/ext3.ko'; -1 Unknown symbol in module
how can I solve it ?
I am using vmware workstation 6.0.
thanks a lot.
 
Old 12-07-2011, 10:06 PM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
Greetingz!

Well, for starters you might want to grab the SRPMS for the kernel you are using, rather than grabbing the "vanilla" source from kernel.org.
Your "real" kernel version can be found with a 'uname -r', and probably looks like "2.6.18-238.5.1.el5" and not just 2.6.18.
This is because of bugfixes and security patches that are applied to the code.

A complete How-To on rebuilding a CentOS Kernel can be found here.
 
Old 12-08-2011, 03:35 AM   #3
Young_zhang
LQ Newbie
 
Registered: Nov 2011
Location: China
Distribution: centos 5.5
Posts: 21

Original Poster
Rep: Reputation: Disabled
thank you.
 
  


Reply



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
"No root device found.Boot has failed.sleeping forever." on rhel6 when compile kernel upo Linux - Kernel 12 08-23-2011 01:23 AM
New MPICH2 installation "interfering" with "make", cant compile fortran programs shitij90 Programming 1 07-28-2011 09:40 AM
Trying to Compile "hello world" Kernel Module (please help!) antdengineer Programming 9 12-04-2010 04:07 AM
[SOLVED] PKGBUILD wont compile x86 kernel..."CALL scripts/checksyscalls.sh" ?! linus72 Arch 1 09-29-2010 05:05 PM
Install ati-drivers fails with "Failed to compile kernel module" erpe Debian 2 06-13-2006 05:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:21 AM.

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