LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Booting Error After Recompiling Kernel (https://www.linuxquestions.org/questions/linux-general-1/booting-error-after-recompiling-kernel-319131/)

springshades 05-01-2005 03:58 PM

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 .............

Komakino 05-01-2005 04:00 PM

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.

springshades 05-02-2005 04:14 AM

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.

abisko00 05-02-2005 04:21 AM

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.


All times are GMT -5. The time now is 10:52 AM.