LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   kernel compile - grub configuration help (https://www.linuxquestions.org/questions/linux-software-2/kernel-compile-grub-configuration-help-310807/)

redduck666 04-07-2005 02:09 PM

kernel compile - grub configuration help
 
Code:

title          Debian GNU/Linux, kernel 2.6.10-1-386
root            (hd0,4)
kernel          /boot/vmlinuz-2.6.10-1-386 root=/dev/hda5 ro noapic
initrd          /boot/initrd.img-2.6.10-1-386
savedefault
boot

this is how the current version of my /boot/grub/menu.lst looks, and i'm trying to compile new kernel.

i untared kernel source i pulled down from kernel.org and than did make menuconfig, after that make bzImage than make modules and make modules_install. i concluded with cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.11.6 and cp System.map /boot/System.map-2.6.11.6.

kernel sources were unpacked to /kernel/linux-2.6.11.6/ and i performed everything there.



Code:

title          Debian GNU/Linux, kernel 2.6.10-1-386
root            (hd0,4)
kernel          /kernel/linux-2.6.11.6/vmlinux root=/dev/hda5 ro noapic
initrd          ?????????
savedefault
boot

is the above "kernel" location correct? what should i put as "initrd" location (instead of ?????????)?


any help appriciated

mjrich 04-07-2005 03:44 PM

No, your kernel line should point to where you copied it to, i.e. /boot/vmlinuz-2.6.11.6

You can create a new initrd image using mkinitrd, and point to that (man mkinitrd).

Cheers,

mj

redduck666 04-07-2005 10:44 PM

thank you very much, will give a try to things you suggested.

hope you regulars from his forum don't midn if a update thie thread 8-10 hours from now, to get more help if i again fail to make ew kernel work.

reddazz 04-07-2005 11:03 PM

It doesn't matter what you do as long as its within the rules of LQ. :)

redduck666 04-09-2005 05:55 AM

i created initrd image using mkinitrd. but when i try to boot it gives me an error:

Code:

modprobe: fatal: could not load /lib/modules/2.6.11.6/modules.dep
(the above error is repeated shitload of times)
pivot_root: no such file or directory
/sbin/init: 431:can not open dev/console no such file or directory
(in error it is written dev/console and not /dev/console)

kernel panic not syncing attempted to kill init!

depmod -a, doesn't fix the problem.

Code:

title          custom kernel comiled by redduck666
root            (hd0,4)
kernel          /boot/vmlinuz-2.6.11.6 root=/dev/hda5 ro
initrd          /boot/initrd.img
savedefault
boot

this is the relevant part of my /boot/grub/menu.lst

i used mkinitrd -o /boot/initrd.img

any help appreciated

harken 04-09-2005 06:18 AM

Have you enabled CRAMFS support in your kernel? It is required for initrd to function.
Also, maybe you should try a 'mkinitrd -o /boot/initrd.img-2.6.11.6 2.6.11.6'. The sequence 2.6.11.6 is repeated twice to avoid confusions if you have more than one kernel source on your machine.

redduck666 04-09-2005 03:32 PM

Quote:

Also, maybe you should try a 'mkinitrd -o /boot/initrd.img-2.6.11.6 2.6.11.6'.
my hero

thanks


All times are GMT -5. The time now is 07:09 PM.