LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Kernel compilation error!! (https://www.linuxquestions.org/questions/linux-general-1/kernel-compilation-error-419146/)

vishamr2000 02-24-2006 12:12 PM

Kernel compilation error!!
 
Hi to all,

I'm using RedHat 9 (kernel 2.4.20-8) and I tried to upgrade the kernel to 2.4.32. I did the following steps for compilation:

make xconfig
make bzImage
make modules
make modules_install
make install

I got the following errors:

VFS: Cannot open root device "LABEL=/" or 00:00
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount rootfs on 00:00

Can anyone tell how to correct these errors?

Warm regards,
Visham

Darin 02-24-2006 01:07 PM

http://www.google.com/linux?q=redhat+9+kernel+upgrade

Should point you to resolving specific issues with compiling a kernel for RH9. Your particular cannot open root device error is likely due to the root filesystem type not being compiled into the new kernel. Two fixes are either to include ext2/ext3 (assuming that is the format of the root filesystem) compiled in instead of modularized into the kernel or to create an initrd image.

FYI This is the networking forum, your post would probably fit better in linux-newbie or distributions-red hat. Rather than posting an additional thread there, it would be best to wait for an admin to move this thread though.

vishamr2000 02-24-2006 10:17 PM

Hi,

many thx for the reply..

actually I thought so too..i have done kernel upgrades on RH9 using a 2.6 kernel..got no real problems.

But for the 2.4.32, i got the above errors..i also tried to change the settings in the .config file (saying 'yes' to the different filesystems (ext2,ext3,..) but still the same error..

I don't find the VFS in the .config though..Can you tell me what option I can choose to solve it?

Warm regards,
Visham

Darin 02-25-2006 04:19 PM

VFS isn't what needs to be changed in the kernel. The kernel needs to have support for whatever filesystem the root partition is on either built in, or in an initrd image. If this support is not in the kernel, then when the system tries to boot up VFS will not be able to read the root partiton and will spit out the above error.

vishamr2000 02-25-2006 08:38 PM

Hi Darin,

What do you suggest I should enable in the kernel? I enabled all the features that I know are important..am I doing anything wrong in the steps given in above msgs?

Warm regars,
Visham

HappyTux 02-25-2006 09:51 PM

Don't forget to compile in the support for the controller chipset on the motherboard you need that as well.

david_ross 02-26-2006 06:51 AM

Moved: This thread is more suitable in Linux General and has been moved accordingly to help your thread/question get the exposure it deserves.

Try using the device name rather than the label as the kernel option.

vishamr2000 02-27-2006 06:31 AM

Hi to all,

Many thx for your replies guys..

To Happy Tux:
Quote:

Don't forget to compile in the support for the controller chipset on the motherboard you need that as well
Under what option do I get that? Can you give me an example of such a controller?

To David Ross:
Quote:

Try using the device name rather than the label as the kernel option
Can you please give me an example of how to do this? I know I have to put the 'hdd' thing, but I don't know how to put it correctly.

Warm regards,
Visham

HappyTux 02-27-2006 10:48 AM

Quote:

Originally Posted by vishamr2000
Hi to all,

Many thx for your replies guys..

To Happy Tux:


Under what option do I get that? Can you give me an example of such a controller?

The first line in the output of the command below you need to select the one in this section for you motherboard.

Code:

>$ grep -i pii /boot/config-2.6.12-ck6
# CONFIG_BLK_DEV_PIIX is not set
# CONFIG_SCSI_ATA_PIIX is not set
# CONFIG_I2C_PIIX4 is not set

If you cannot figure it out can you post the name/model of your motherboard and one of us should be able to tell you the correct one to enable.
Quote:

To David Ross:


Can you please give me an example of how to do this? I know I have to put the 'hdd' thing, but I don't know how to put it correctly.

Warm regards,
Visham
He means something like root=/dev/hda1 using the partition number/drive letter of your /.


All times are GMT -5. The time now is 11:28 AM.