Hi!
I tried to recompile 2.6.10 kernel not for the first time but always not successfully...
Please help !!
Here is what I did in detail:
1. I use debian system, with 2.4.27-1-386 kernel.
2. I copied /boot/config-2.4.27-1-386 to /usr/src/linux/ and rename it to .config
i.e.
cp /boot/config-2.4.27-1-386 /usr/src/.config
by the way in the first lines of config-2.4.27-1-386 it is said
Code:
#
# Automatically generated make config: don't edit
#
CONFIG_X86=y
# CONFIG_SBUS is not set
CONFIG_UID16=y ...
"don't edit" , could be that a problem ?
3. I run
and I didn't modified anything , just left the old settings of 2.4.27 kernel .
4. then
Code:
make bzImage
make modules
make modules_install
cp arch/i386/boot/bzImage /boot/bzImage-2.6.10
cp System.map /boot/System.map-2.6.10
ln -s /boot/System.map-2.6.10 /boot/System.map
till now all goes OK.
5.next comes my /boot/grub/menu.lst
here is a snippet from it:
Code:
title kernel 2.4.27-1-386
root (hd0,0)
kernel /vmlinuz-2.4.27-1-386 root=/dev/hda2 ro
initrd /initrd.img-2.4.27-1-386
savedefault
boot
title kernel 2.6.10
root (hd0,0)
kernel /bzImage-2.6.10 root=/dev/hda2 ro
boot
the first part is for my old 2.4.27 kernel , it just loads ok.
the second part is the one I added , and it is supposed to loadnew recompiled kernel ( 2.6.10 ) , it is almost the same as for 2.4.27
6. When I reboot the system , and load 2.6.10 kernel ( from grub menu )
I get the following error:
VFS: Cannot open root device "hda" or unknown-block (0,0).
Please append a correct "root=" boot option: kernel panic: not syncing VFS .Unable to mount root fs on unknown block