LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2004, 01:22 PM   #1
vishamr2000
Member
 
Registered: Aug 2004
Posts: 210

Rep: Reputation: 31
kernel compilation problem


Hi,

I am having real problems compiling my linux kerneland I'm stuck with it for months now. I sincerely hope someone can help me. I have RedHat 9.0 (linux kernel 2.4.20-8) on my machine and i want to use kernel 2.6.5. Here are the steps i took and the errors i got:

# cd /usr/src
# bzip2 -d linux-2.6.5.tar.bz2
# tar -xvf linux-2.6.5.tar

There is a folder named linux-2.4.20-8. I deleted the link to that file and made a new link to the linux-2.6.5 folder.

# ln -s newlinux-2.6.5 linux-2.6.5

# cd /usr/src/linux-2.6.5
# make xconfig
# make bzImage
# make modules
# make modules_install
# mkinitrd /boot/initrd-2.6.5.img 2.6.5

I then copied the 'bzImage' file from /usr/src/linux-2.6.5/arch/i386/boot to /boot and renamed it to bzImage-2.6.5

My grub.conf file looks as follows:


# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,1)
# kernel /boot/vmlinuz-version ro root=/dev/hda2
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,1)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi
initrd /boot/initrd-2.4.20-8.img
title Red Hat Linux (2.6.5)
root (hd0,1)
kernel /boot/bzImage-2.6.5 ro root=LABEL=/ hdc=ide-scsi
initrd /boot/initrd-2.6.5.img
title DOS
rootnoverify (hd0,0)
chainloader +1



The errors I'm getting are as follows:

Mounting root filesystem
mount: error 19 mounting ext3
.
.
.
kernel panic: no init found. Try passing init=option to kernel
 
Old 08-20-2004, 01:27 PM   #2
sibtay
Member
 
Registered: Aug 2004
Location: U.S
Distribution: Ubuntu
Posts: 145

Rep: Reputation: 15
As far as i know...i think you also need to copy the system.map file which is also found in the same directory from where you copied the kernel.
 
Old 08-22-2004, 05:35 AM   #3
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi
also upgarde ur modutils packe
get it from kernel.org

or rpms from
http://people.redhat.com/arjanv/

regards
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem during kernel compilation!! vishamr2000 Linux - General 6 11-21-2005 06:08 AM
Kernel compilation problem JJX Linux - Software 4 08-31-2005 06:50 AM
kernel compilation problem SirrusX Slackware 8 03-07-2005 08:13 AM
Kernel 2.6.8 compilation problem. Mingthefirst Debian 5 08-23-2004 02:57 PM
Kernel Compilation Problem 2.6.7 ultrix Slackware 4 08-11-2004 06:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration