LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-01-2005, 03:58 PM   #1
springshades
Member
 
Registered: Nov 2004
Location: Near Lansing, MI , USA
Distribution: Mainly just Mandriva these days.
Posts: 304

Rep: Reputation: 30
Booting Error After Recompiling Kernel


I just recompiled my kernel to get ACPI working on my Compaq Presario 721CL laptop. I'm using Mandrake 10.1.

When trying to reboot into the new kernel (booting to the old kernel still works) I'm having a pretty major problem. Does anyone know what this error message means?

jbd: version magic '2.6.8.1-12mdk 686 gcc-3.4' should be '2.6.8.1-12mdkcustom preempt K7 gcc-3.4'
insmod: error inserting '/lib/jbd.ko': errno=8
Loading ext3.ko module
ext3: version magic '2.6.8.1-12mdk 686 gcc-3.4' should be '2.6.8.1-12mdkcustom preempt K7 gcc-3.4'
insmod: error inserting '/lib/ext3.ko': errno=8

because of this im getting error 19 when trying to mount the root partition and the final error is

Kernel panic: No init found. Try passing init= option to kernel

This is not booting. Anyone know how to fix this? I changed the names of some of the files around (i added the "custom" part to the filename). This was so that I could boot either version of the kernel in case the new one didnt work. I'm not willing to change that back just yet, because if it doesn't work, then I have no way of getting in and editing anything. I'd have to start from scratch.

............. Tim .............
 
Old 05-01-2005, 04:00 PM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 53
Re: Booting Error After Recompiling Kernel

Quote:
Originally posted by springshades
I just recompiled my kernel to get ACPI working on my Compaq Presario 721CL laptop. I'm using Mandrake 10.1.

When trying to reboot into the new kernel (booting to the old kernel still works) I'm having a pretty major problem. Does anyone know what this error message means?

jbd: version magic '2.6.8.1-12mdk 686 gcc-3.4' should be '2.6.8.1-12mdkcustom preempt K7 gcc-3.4'
insmod: error inserting '/lib/jbd.ko': errno=8
Loading ext3.ko module
ext3: version magic '2.6.8.1-12mdk 686 gcc-3.4' should be '2.6.8.1-12mdkcustom preempt K7 gcc-3.4'
insmod: error inserting '/lib/ext3.ko': errno=8

because of this im getting error 19 when trying to mount the root partition and the final error is

Kernel panic: No init found. Try passing init= option to kernel

This is not booting. Anyone know how to fix this? I changed the names of some of the files around (i added the "custom" part to the filename). This was so that I could boot either version of the kernel in case the new one didnt work. I'm not willing to change that back just yet, because if it doesn't work, then I have no way of getting in and editing anything. I'd have to start from scratch.

............. Tim .............

What version of the kernel were you using before? Exactly the same one? If not then recompile the kernel without the custom things in it.
 
Old 05-02-2005, 04:14 AM   #3
springshades
Member
 
Registered: Nov 2004
Location: Near Lansing, MI , USA
Distribution: Mainly just Mandriva these days.
Posts: 304

Original Poster
Rep: Reputation: 30
The kernel is 2.6.8.1-12mdk. It's the standard one for Mandrake 10.1 Official. I recompiled the kernel to get ACPI working. The only stuff that I changed is stuff that I HAVE to leave there in order to get all of the power stuff working. I had to specify the K7/Athlon/Duron processor which allowed me to choose PowerNow. I disabled APM and picked out all the ACPI stuff. This seems like either I need to point the boot loader in the right direction (don't know how to do that) or my version of GCC is somehow wrong for the new kernel set up I have.
 
Old 05-02-2005, 04:21 AM   #4
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
Maybe something got mixed-up with the kernel version. I assume you only recompiled the kernel binary? If the version has changed, the new kernel will not be able to find the modules in the correct place. If this is the case, the solution could be to recompile and taking care of the corret version (needs to be identical with the output of 'uname -r' from your current kernel) or the compile and install the modules. It could also be that the kernel doesn't like spaces in its version.

Another possible error could be that you compiled the binary without the modules, but made some changes that required some modules to be changed as well.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when recompiling 2.4.31 Kernel for SMP and HIGHMEM mjgould Slackware 15 09-28-2005 04:11 PM
strange error messages when recompiling kernel. levicc00123 Slackware 8 12-21-2004 11:00 PM
Kernel recompiling error on SuSE 9.1 yuun Linux - Software 2 09-12-2004 10:44 PM
init error after recompiling kernel jza Linux - General 3 01-04-2004 10:03 AM
Error recompiling kernel 2.4.22 (Make bzImage) Spislander Debian 7 12-26-2003 12:03 AM


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