LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-01-2005, 02:42 AM   #1
thelonewolf
LQ Newbie
 
Registered: Jul 2005
Posts: 17

Rep: Reputation: 0
Recompiled kernel failing


Okay, this feels like another stupid question. I'm trying to get that
nVidia driver from the earlier post working. It came back with some
errors regarding the kernel, so I recompiled the kernel (I wasn't
surprised--I'm running 2.6.8-11 but the only 2.6.8 kernel from Debian
was 2.8-16). So, I recompiled the kernel and compiled it. Now, when I
try to boot, the new kernel does this:

modprobe can't find /lib/modules/2.6.8/modules.dep
pivot_root: No such file or directory
/sbin/init 432 can't open /dev/console: No such file
Kernel panic: Attemted to kill init


Now, I know some things changed with the 2.6 kernel when it comes to
doing a recompile, but I did the same thing I did last time "make"
and "make modules_install" (by the way, I inserted "make modules"
just to be sure and it did the same thing) Any ideas what I'm doing
wrong? Thanks again for your patience. I've been wanting to use
Debian a long time but never had a network card that would work, so
I'm really hoping to get X working. Oh, and apologies if this message
is jacked up. I'm writing it in lynx.


Oh, my God, I killed init. I'm a bastard.

Last edited by thelonewolf; 08-01-2005 at 02:46 AM.
 
Old 08-01-2005, 05:45 AM   #2
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Try adding
Code:
CONSOLE=/dev/tty1
to your kernel line in grub.
 
Old 08-01-2005, 04:47 PM   #3
thelonewolf
LQ Newbie
 
Registered: Jul 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by vectordrake
Try adding
Code:
CONSOLE=/dev/tty1
to your kernel line in grub.
Well, following the example of the line for the vmlinuz image/original Debian image, it has console=tty0. Should I change that to tty1?
 
Old 08-01-2005, 08:19 PM   #4
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
If you have that in the kernel line already, then this may not be the problem. But, it can't hurt to try. How familiar are you with grub's command prompt?


Heck, why not post the menu.lst (or grub.conf) if you can.
 
Old 08-02-2005, 03:31 AM   #5
thelonewolf
LQ Newbie
 
Registered: Jul 2005
Posts: 17

Original Poster
Rep: Reputation: 0
OK here, are the grub entries for the new kernel (top) and the original kernel. I don't know much about grub, so, I'm kind of guessing when I edit this. At first I thought it had to do with initrd or something, but since it starts to load fine, I don't know. It just seems to lose track of where it is.


title Debian GNU/Linux
root (hd0,1)
kernel /boot/bzImage root=/dev/hda2 ro console=tty0
initrd /boot/initrd.img
savedefault
boot

title Debian GNU/Linux, kernel 2.6.8-11-amd64-generic Default
root (hd0,1)
kernel /boot/vmlinuz root=/dev/hda2 ro console=tty0
initrd /boot/initrd.img
savedefault
boot
 
Old 08-02-2005, 06:07 AM   #6
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Did you do a
Code:
ls -l
in /boot to see whether you have any symbolic links pointing to the wrong place? Are you using the same initrd for both kernels? Did you copy the System.map over to your /boot directory too? Did you compile tty support in the kernel? Just thinking of the obvious, in case you're too close to the situation. BTW, it would be a good idea to rename the new kernels/System.map's with a logical naming scheme, so you'll know which is which.
 
Old 08-02-2005, 06:08 AM   #7
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Shoot! I just saw something!

Quote:
kernel /boot/vmlinuz root=/dev/hda2 ro console=tty0
try
Code:
kernel /boot/vmlinuz root=/dev/hda2 ro console=dev/tty0
 
Old 08-02-2005, 05:34 PM   #8
thelonewolf
LQ Newbie
 
Registered: Jul 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by vectordrake
Shoot! I just saw something!



try
Code:
kernel /boot/vmlinuz root=/dev/hda2 ro console=dev/tty0
I'll try that out, but why wouldn't it have failed on the other one also, since the original kernel doesn't have
Code:
dev
? As for initrd, yeah it is using that same one which is what I'm thinking of. I don't recall, in other kernels, doing anything different for initrd, but that may have been back when I was using LILO (I've been using Gentoo, so no need to recompile). How do I get an initrd image just for the recompiled kernel? By the way, I want to thank you for all your help on this.
 
Old 08-02-2005, 05:55 PM   #9
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
So, you've been spoiled by Gentoo and its pampering and you wanna wrestle with the Deb (I gave up when Woody got old and Sid got broken, like his toys). I wish you luck in your adventure.

Now, for the initrd...I only make them when I'm trying to get the framebuffer spash to work (which I often give up on for months at a time - been updating kernels as fast as Andrew Morton) and I've followed the directions. The man page will be more help than I will. I didn't have it on my system (seemed to have installed it with --strip), but I found it really fast on Google.

http://linuxcommand.org/man_pages/mkinitrd8.html

There's one.

Another thought. The init problem often pops up when you've compiled your root filesystem in the kernel as a module (or not at all). Did you compile the filesystem your root partition is on into the kernel?
 
Old 08-02-2005, 07:39 PM   #10
thelonewolf
LQ Newbie
 
Registered: Jul 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by vectordrake
So, you've been spoiled by Gentoo and its pampering and you wanna wrestle with the Deb (I gave up when Woody got old and Sid got broken, like his toys). I wish you luck in your adventure.

Now, for the initrd...I only make them when I'm trying to get the framebuffer spash to work (which I often give up on for months at a time - been updating kernels as fast as Andrew Morton) and I've followed the directions. The man page will be more help than I will. I didn't have it on my system (seemed to have installed it with --strip), but I found it really fast on Google.

http://linuxcommand.org/man_pages/mkinitrd8.html

There's one.

Another thought. The init problem often pops up when you've compiled your root filesystem in the kernel as a module (or not at all). Did you compile the filesystem your root partition is on into the kernel?
SUCCESS!! I ran mkinitrd and my kernel finally booted. I guess I'll have to keep that in mind. Thanks again for all your help, I really appreciate it. Next step is to get the 32-bit stuff to work. One challange after another (don't get me wrong--I actually enjoy this). Yeah, I've been wanting to play with Deb for a while, but until now, I couldn't get my network stuff right. Now, it works, so I get to play a little. Actually, I do have one "oh by the way" for you. Is there a config file for the sound card? Maybe I can figure out why it can't find it (look at my FC config file for same). The right driver is loaded, but I can't get it to find the sound card. Just wondering, Thanks.

Last edited by thelonewolf; 08-02-2005 at 07:45 PM.
 
Old 08-02-2005, 10:10 PM   #11
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Glad you got it working. I thought of that because every time I upgrade the kernel (about once every month or two), I lose the framebuffer splash, which causes me to make the initrd again.

As far as a config for the sound, I don't know what to say. The Gentoo equiv of a config would be in /etc/modules.d/ I don't have a Debian or derivative installed to be sure of what to look for atm (you should try PC-BSD, its cool), but its gotta be something like that.

I wonder if the permissions got reset with the kernel upgrade. Remember Debian doesn't like to allow the regular user access to anything unless approved, including the sound server.
 
  


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
recompiled kernel, no bootsplash microsoft/linux Debian 18 02-06-2005 06:54 AM
recompiled kernel 2.6.3-13 what does this mean? rbonafied Mandriva 8 06-07-2004 12:00 PM
Why Won't Recompiled Kernel Work? duerra Linux - Newbie 17 01-16-2004 05:42 PM
recompiled kernel not in use taoweijia Linux - Newbie 1 01-09-2004 08:33 AM
recompiled kernel and no vmlinuz.old or kernel module for Nvidia Bruce Hill Slackware 13 12-11-2003 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:10 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration