LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-03-2008, 07:54 AM   #1
WorkingClassHero
LQ Newbie
 
Registered: Nov 2007
Posts: 10

Rep: Reputation: 0
Problems with newly compiled kernel, not recognized as such and does not work


hello,

to a new debian (testing) installation I compiled the 2.6.24 kernel. It compiled (not the debian way but via make && make modules_install) and the bzImage went to /boot/vmlinuz-2.6.24-xen
With mkinitramfs I made the initrd-2.6.24.

The problem:

update-grub only detects the old kernel (2.6.22), not my newly built. When I edit /boot/grub/menu.lst manually he complains on restart that /lib/modules/2.6.24/modules.dep is not there. Although it is there!

My boot directory looks like:

-rw-r--r-- 1 root root 80542 2008-02-03 14:46 config-2.6.22-3-686
drwxr-xr-x 2 root root 4096 2008-02-03 14:37 grub
-rw-r--r-- 1 root root 5869569 2008-02-03 14:46 initrd-2.6.24
-rw-r--r-- 1 root root 5860275 2008-02-03 14:46 initrd.img-2.6.22-3-686
-rw-r--r-- 1 root root 5457295 2008-02-03 14:46 initrd.img-2.6.22-3-686.bak
-rw-r--r-- 1 root root 810034 2008-02-03 14:46 System.map-2.6.22-3-686
-rw-r--r-- 1 root root 1359376 2007-11-12 12:56 vmlinuz-2.6.22-3-686
-rw-r--r-- 1 root root 1449176 2008-02-03 14:26 vmlinuz-2.6.24-xen

I suspected that I missed some ext3 option. But I tried both building ext3 as module and "star".

What to do? Thanks in advance!!
 
Old 02-03-2008, 12:19 PM   #2
WorkingClassHero
LQ Newbie
 
Registered: Nov 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Ok I somehow cornered the problem and found a solution (uff )
First, why did update-grub not find the new kernel image? Well after compiling the kernel with make && make modules_install it is "obviously" not enaugh to just copy the bzImage somewhere in the boot directory, no you got to type make install. Then something happens which makes update-grub recognize your kernel image.

Second, why did the kernel not find my modules? Well, actually this is something I do not understand fully *g*. It is not enough to compile ext3 support hard into the kernel, of course you have to do so with your IDE support, too. After that was done everything worked fine, without the initrd.img. So something does not work with mkinitramfs. There seems to be another command, namely mkinitrd, for making initrd s. Maybe I have chosen the wrong command, who knows. But on my machine there was no mkinitrd, even after (maybe I screwed up here) installing an initrd-tools.rpm.

Cheers
 
  


Reply



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
Newly compiled kernel won't boot nivantha Linux - Kernel 3 09-14-2006 03:02 AM
Troubleshooting Newly Compiled Kernel binarybob0001 Linux - General 2 11-20-2005 04:06 AM
keyboard won't work with newly compiled kernel dr_zayus69 Linux - Hardware 10 06-05-2005 11:23 AM
Newly compiled kernel behaves as if it was the old one? grayFalcon Linux - Software 4 06-03-2004 04:52 AM
Problem with newly compiled 2.4.22 kernel Xero720 Slackware 2 09-06-2003 12:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:17 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration