LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-20-2004, 06:38 PM   #1
strato
LQ Newbie
 
Registered: Nov 2004
Posts: 5

Rep: Reputation: 0
Exclamation HELP: RedHat Kernel 2.6.9 Compile Problem. Please help me.


I have compile RedHat Linux Kernel 2.6.9 five times but all failed!
Can anybody help me?

My OS: RedHat Linux9 (Kernel 2.4.20-8) -- It works properly.
I use GRUB to load system.
I installed the new kernel (2.6.9) following the instructions in kernel-2.6.9 README file.

====================As following:
cd /root/linux-2.6.9
make O=/root/kernel menuconfig
make O=/root/kernel
sudo make O=/root/kernel modules_install install

================Then I configed my kernel (I selected ACPI, APM, and All Kinds of File System Support)
make gconfig

================Then I compile the kernel ...
make
make modules_install

README file tell me to copy the new kernel image (e.g. .../linux/arch/i386/boot/bzImage after compilation) to the place where my regular bootable kernel is found.
BUT I couldn't find bzImage in my current system. So I copy bzImage to /boot. I don't know how to config it.

===========I find that my /boot/grub/grub.conf has been modified as the following:
default=2
timeout=5
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.6.9)
root (hd0,2)
kernel /boot/vmlinuz-2.6.9 ro root=LABEL=/dev/hda3
initrd /boot/initrd-2.6.9.img
title Red Hat Linux (2.4.20-8)
root (hd0,2)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /boot/initrd-2.4.20-8.img
title WinXP
rootnoverify (hd0,0)
chainloader +1

I have confirmed /boot/vmlinuz-2.6.9 and /boot/initrd-2.6.9.img in proper position. So I REBOOT my computer properly. Then I encount the following messages and system HALT!
====================================
...
mkrootdev = label /dev/hda3 not found
Mounting root filesystem
mout: error 2 mounting ext3
pivotroot: pivot root (/sysroot, /sysroot/initrd) failed:2
umount /initrd/proc failed: 2
Freeing unused kernel memory: 244k freed
Kernel panic - not syncing: No init found. Try passing init = option to kernel

====================================
God! I have readed README file carefully about 10 times. I have tried over 5 times but all failed! What's the problem? And how can I deal with it? Please help me. Thank you!

Favorites (CHN)
MSN Messenger: fullback@21cn.com
 
Old 11-20-2004, 10:27 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
the first one should read
root=LABEL=/
just like the second one does
not
root=LABEL=/dev/hda3
 
  


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
HELP: RedHat Kernel 2.6.9 Compile Problem. Please help me. strato Red Hat 2 11-23-2004 03:20 AM
How to compile 2.6 kernel on RedHat Ninja_212 Red Hat 1 03-08-2004 02:18 AM
how to compile the redhat kernel mmoohh Linux - Newbie 5 10-21-2003 07:26 PM
How can I compile a new kernel for Redhat 9? Sgaileach1 Linux - Software 6 07-28-2003 08:40 PM
RedHat 7.1 - Kernel Compile aford Linux - Newbie 18 03-13-2002 01:52 PM

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

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