Debian This forum is for the discussion of Debian Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-14-2005, 01:03 PM
|
#1
|
|
LQ Newbie
Registered: Jan 2005
Distribution: Debian (usually testing)
Posts: 22
Rep:
|
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.
|
|
|
|
03-14-2005, 03:12 PM
|
#2
|
|
Member
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174
Rep:
|
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?
|
|
|
|
03-14-2005, 03:31 PM
|
#3
|
|
LQ Newbie
Registered: Jan 2005
Distribution: Debian (usually testing)
Posts: 22
Original Poster
Rep:
|
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.
|
|
|
|
03-14-2005, 07:38 PM
|
#4
|
|
Member
Registered: Jul 2004
Distribution: Debian, FreeBSD, Slamd64
Posts: 201
Rep:
|
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.
|
|
|
|
03-14-2005, 08:29 PM
|
#5
|
|
LQ Newbie
Registered: Jan 2005
Distribution: Debian (usually testing)
Posts: 22
Original Poster
Rep:
|
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.
|
|
|
|
03-14-2005, 08:52 PM
|
#6
|
|
Member
Registered: Jul 2004
Distribution: Debian, FreeBSD, Slamd64
Posts: 201
Rep:
|
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.
|
|
|
|
03-14-2005, 09:01 PM
|
#7
|
|
LQ Newbie
Registered: Jan 2005
Distribution: Debian (usually testing)
Posts: 22
Original Poster
Rep:
|
PII-350
|
|
|
|
03-14-2005, 10:17 PM
|
#8
|
|
Member
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174
Rep:
|
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
|
|
|
|
03-15-2005, 10:08 AM
|
#9
|
|
LQ Newbie
Registered: Jan 2005
Distribution: Debian (usually testing)
Posts: 22
Original Poster
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:29 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|