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