Tommo |
08-27-2009 09:58 AM |
Kernel configuration fail
Hi.
I am trying to build a vanilla kernel (2.6.26.2). I run Debian stable and my current kernel (shipped with debian) is 2.6.26-2-686.
I'm a big fan of the Gentoo handbook (x86) so I just followed that:
Code:
# pwd
/usr/src/linux
# make menuconfig
# make && make modules_install
# cp arch/x86/boot/bzImage /boot/kernel-2.6.26.2-debian
My /boot/grub/menu.lst:
Code:
# Kernel shipped with debian
title Debian GNU/Linux, kernel 2.6.26-2-686
root (hd0,0)
kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/sda1 ro quiet
initrd /boot/initrd.img-2.6.26-2-686
# New Vanilla kernel
title Debian GNU/Linux, kernel 2.6.26.2 (Vanilla)
root (hd0,0)
kernel /boot/kernel-2.6.26.2-debian root=/dev/sda1
I built my filesystem support, etc, into the kernel so I shouldn't need an initial ramdisk (the Gentoo handbook doesn't add one in the grub configuration stage anyway).
But when I try to boot from the new kernel, I get:
Code:
kernel panic - not syncing : VFS: Unable to mount root fs on unknown-block(0,0)
..
VFS: Cannot open root device "sda1" on unknown-block(0,0)
This suggests my "root=" is wrong in my menu.lst. This cannot be the case since the other kernel has the same argument and works fine. I mustn't have built everything I need into the kernel when configuring it.
My disk layout:
Code:
Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00080451
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3993 32073741 83 Linux
/dev/sda3 3994 9726 46050322+ 5 Extended
/dev/sda5 3994 4243 2008093+ 82 Linux swap / Solaris
/dev/sda6 4244 9726 44042166 83 Linux
Any ideas?
|