Hello World,
I am trying to compile Kernel 2.4.28. The compilation goes fine, no errors.
And the configuration of grub is also good. On reboot I can see the new kernel option to load on. I am using the same config.in which was present earlier.
But when I choose the newly compiled kernel, I get the following kernel panic message:
No socket drivers loaded!
Cannot open device "LABEL=/" or 00:00
Please append a correct "root=" boot option
Kernel Panic: VFS: Unable to mount root fs on 00:00
I am using the following procedure to compile and configure grub.
$ make dep
$ make clean
$ make bzImage
$ make modules
$ make modules_install
$ mkinitrd /boot/initrd-2.6.0.img 2.6.0
$ mkinitrd -k vmlinux-VERSION -i initrd-VERSION
$ cp arch/i386/boot/bzImage /boot/bzImage-KERNEL_VERSION
$ cp System.map /boot/System.map-KERNEL_VERSION
$ ln -s /boot/System.map-KERNEL_VERSION /boot/System.map
The additional line in /etc/grub.conf:
title Test Kernel (2.6.0)
root (hd0,1)
kernel /boot/bzImage-2.6.0 ro root=LABEL=/
initrd /boot/initrd-2.6.0.img
I think the steps I followed are fine. What I can guess is I am missing some module or component to compile. The kernel source is downloaded from kernel.org site.
Can someone kindly provide the insight to this problem and some fix to it?
The sole intent for kernel compilation is to modify the networking part i.e. the TCP/IP stack for testing. The change includes adding some custom info to the IP header (option field in IP header). I think this is not possible without the kernel compilation. What is your suggestion?
Thanks for the help
Regards
Devel.