LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-24-2010, 11:42 PM   #1
rajiv.patil82
Member
 
Registered: Mar 2010
Posts: 101

Rep: Reputation: 16
not able to compile kernel


Hi All,

tried to compile kernel in red hat 5.4 32 bit machine but while trying below command got an error.
first download kernel from kernel.org site
then extract to /usr/src
after /usr/src try to run below command,

#make menuconfig
make: *** No rule to make target `menuconfig'. Stop.

follow below url for compiling kernel:-

http://www.cyberciti.biz/tips/compil...kernel-26.html

plz help.

Thnx in Advance.
 
Old 11-24-2010, 11:51 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Are you in the same directory as the source? It's probably in /usr/src/linux-version, where version is the version number (e.g. 2.6.33.4). Really, you should not just blindly follow instructions, because they could be incorrect.
 
Old 11-25-2010, 03:32 AM   #3
rajiv.patil82
Member
 
Registered: Mar 2010
Posts: 101

Original Poster
Rep: Reputation: 16
thank you !!!!

kernel compile succssfully able to see new kernel. but while booting,if boot from new kernel following error i have got error

REd hat version 5.1.19.6 starting
insmod: error inserting '/lib/dm-region-hash.ko -1 file exists
mount: count not find filessystem '/dev/root'
kernel panic - not sysncing: Attempted to kill init!

Last edited by rajiv.patil82; 11-25-2010 at 06:08 AM.
 
Old 11-27-2010, 01:48 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Not sure about this. Is the filesystem for your root partition built into the kernel, or are you using an initrd? In any case, can you also post the GRUB or LILO (or other bootloader) entry that you're using to boot with the new kernel. Presumably you can still boot the old kernel, right?
 
Old 11-28-2010, 11:13 PM   #5
rajiv.patil82
Member
 
Registered: Mar 2010
Posts: 101

Original Poster
Rep: Reputation: 16
yes i still boot the old kernel. but not able to boot system with new kernle.
below is my grub.conf file

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hdb10
# initrd /initrd-version.img
#boot=/dev/hdb
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-164.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-164.el5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-164.el5.im

i am not able to see my new kernle entry in grub.conf.
 
Old 12-04-2010, 01:21 AM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by rajiv.patil82 View Post
i am not able to see my new kernle entry in grub.conf.
How are you booting it then?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Compile kernel] How to compile/install the modules ? frenchn00b Linux - General 1 09-06-2009 03:18 PM
Trying to patch kernel + compile, compile is looping. kripz Linux - Kernel 1 06-16-2009 06:51 AM
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 02:37 PM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:10 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