LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-07-2005, 02:09 PM   #1
redduck666
Member
 
Registered: Dec 2004
Posts: 32

Rep: Reputation: 15
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
 
Old 04-07-2005, 03:44 PM   #2
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
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
 
Old 04-07-2005, 10:44 PM   #3
redduck666
Member
 
Registered: Dec 2004
Posts: 32

Original Poster
Rep: Reputation: 15
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.
 
Old 04-07-2005, 11:03 PM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
It doesn't matter what you do as long as its within the rules of LQ.
 
Old 04-09-2005, 05:55 AM   #5
redduck666
Member
 
Registered: Dec 2004
Posts: 32

Original Poster
Rep: Reputation: 15
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

Last edited by redduck666; 04-09-2005 at 05:57 AM.
 
Old 04-09-2005, 06:18 AM   #6
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
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.
 
Old 04-09-2005, 03:32 PM   #7
redduck666
Member
 
Registered: Dec 2004
Posts: 32

Original Poster
Rep: Reputation: 15
Quote:
Also, maybe you should try a 'mkinitrd -o /boot/initrd.img-2.6.11.6 2.6.11.6'.
my hero

thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Panic: grub configuration issue(?) rickthemick Linux - General 3 11-17-2004 06:43 PM
How to change the GRUB configuration file with kernel 2.6.7 Bassam Linux - Software 2 06-22-2004 02:44 AM
Problem with Grub configuration (updated kernel) Patrique Linux - Software 4 06-05-2004 07:56 AM
GRUB splashimage configuration / update GRUB rudL Linux - Software 1 05-10-2004 07:16 AM
kernel 2.6.3 compile ends in grub error 13: unsupported executable format(?) browny_amiga Linux - General 4 03-06-2004 02:33 PM


All times are GMT -5. The time now is 10:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration