LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-14-2005, 01:03 PM   #1
gnirtS
LQ Newbie
 
Registered: Jan 2005
Distribution: Debian (usually testing)
Posts: 26

Rep: Reputation: 15
Kernel panic after compiling 2.4.29 ?


Ive tried compiling linux 2.4.29 from the proper kernel.org source and although it compiles on reboot im getting the error during the boot process about unable to find /dev/console then an error PIVOT_ROOT. Kernel panic then attempts to halt init.

Im guessing this is related to the initrd?

Is there a debian kernel patch for 2.4.29 anywhere and if not how can i get rid of this error?

I cant go to 2.6 due to binary drivers for some hardware.
 
Old 03-14-2005, 03:12 PM   #2
nonzero
Member
 
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174

Rep: Reputation: 31
Chances are that make install put your new kernel in / instead of /boot and/or lilo did not configure correctly. What commands did you give to the kernel build after ./configure? e.g. make bzImage, make install, make modules_install? Did you see any error messages when make install was finished?

nz

PS Exactly why can you not use kernel 2.6?
 
Old 03-14-2005, 03:31 PM   #3
gnirtS
LQ Newbie
 
Registered: Jan 2005
Distribution: Debian (usually testing)
Posts: 26

Original Poster
Rep: Reputation: 15
the kernel is in the correct place and added correctly as i can select it from the grub boot menu and its a certain distance into init before it panics.

As its debian i used their method of doing it with make-kpgk --initrd and the dpkg install which updated grub.

No errors during kernel or module compile at all.

Exactly the same process i used for 2.4.27 off debian sources.

As for 2.6, i have binary only drivers for PCI adsl card that are 2.4 kernel only and not 2.6 so i cant switch to 2.6 without breaking that.

Last edited by gnirtS; 03-14-2005 at 03:35 PM.
 
Old 03-14-2005, 07:38 PM   #4
Clark Bent
Member
 
Registered: Jul 2004
Distribution: Debian, FreeBSD, Slamd64
Posts: 201

Rep: Reputation: 30
Interesting. Does you conf file for grub list the initrd options to pass during boot? Should be under /boot/grub and then the applicable file depending on your version of grub. Some have a grub.conf file if I am not mistaken and the others have a menu.lst file I think...haven't worked with Grub a ton.

I am a bit confused though as you mention you got the kernel sources from kernel.org, but you used dpkg and kpkg. It would seem logical that you would only use those tools if you were installing a kernel the debian way. Which in that case, you wouldn't use the sources from kernel.org. I myself don't run a 2.4 kernel anymore, so it might be you went this route because you could not find the kernel sources you needed through apt. But if you could, and could install the kernel the Debian way using apt, I bet your troubles would go away.

You could, if you wanted, change over to your old kernel source directory and copy the .config file and do a make old.

Last edited by Clark Bent; 03-14-2005 at 07:39 PM.
 
Old 03-14-2005, 08:29 PM   #5
gnirtS
LQ Newbie
 
Registered: Jan 2005
Distribution: Debian (usually testing)
Posts: 26

Original Poster
Rep: Reputation: 15
The menu.lst that grub uses shows the newly made initrd config and correct path etc.

the make-kpgk works with normal sources as well, all it does is combine the normal make options of a kernel compile into an automated script to form a .deb.

dpkg then "installs" by copying it and running grub. Ive used this before and it works - they dont require non-standard debian sources.

Debian APT doesnt seem to provide a 2.4 above 27 otherwise id have used their sources to compile from.

Ive used a known working .config from a 2.4.27 compile ive done and simply added the extra options needed in the .29 but the same error happens.

Reading around returns some info that it seems initrd is causing issues here so im attempting to get a kernel working that doesnt use it to see if that solves it.

At ~4hrs per compile though its time consuming.
 
Old 03-14-2005, 08:52 PM   #6
Clark Bent
Member
 
Registered: Jul 2004
Distribution: Debian, FreeBSD, Slamd64
Posts: 201

Rep: Reputation: 30
Four hours is blistering. Are you sure you need initrd? 99% of the kernels I have compiled in the past, I have not used a initrd.img. I have given in a few times...like on Fedora I have used initrd, but other than that I don't. Guess it all depends on your hardware.

What kind of processor? Just curious.
 
Old 03-14-2005, 09:01 PM   #7
gnirtS
LQ Newbie
 
Registered: Jan 2005
Distribution: Debian (usually testing)
Posts: 26

Original Poster
Rep: Reputation: 15
PII-350
 
Old 03-14-2005, 10:17 PM   #8
nonzero
Member
 
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174

Rep: Reputation: 31
I agree. I have only used an initrd to load a new system with a pre-compiled kernel which doesn't have the modules I've needed in one package. After you compile the new kernel if it works and you are okay. You can investigate what went wrong with your first kernel. Some help at:

http://webpages.charter.net/decibels...PartImage.html
or http://archives.devshed.com/a/ml/200...able-initrdimg

not your specific situation but may give you food for thought.

nz
 
Old 03-15-2005, 10:08 AM   #9
gnirtS
LQ Newbie
 
Registered: Jan 2005
Distribution: Debian (usually testing)
Posts: 26

Original Poster
Rep: Reputation: 15
Quick update but ive got the kernel compiled WITHOUT initrd.

For some reason despite all the needed drivers being there (and config that worked with .27 transplanted) something wasnt right.

I dont really need initrd anyway so i compiled without and it appears to be working.

Now ive established that i can start trimming unneeded stuff out of it.
 
  


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
compiling kernel 2.6.13.3: panic! Mr.Bloom Linux - General 7 10-21-2005 05:42 PM
Compiling kernel = kernel panic Tons of Fun Debian 5 07-02-2005 01:59 PM
Kernel panic after compiling - Hoarx MarioT Ubuntu 1 06-08-2005 05:14 AM
Kernel panic after compiling 2.4.26 alantang Linux - General 4 02-01-2005 02:51 PM
Compiling Pentium4 Support Gives Kernel Panic activematrix Linux - Hardware 12 05-17-2003 07:12 AM

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

All times are GMT -5. The time now is 03:24 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