LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   no init, kernel-module version mismatch (https://www.linuxquestions.org/questions/linux-general-1/no-init-kernel-module-version-mismatch-237912/)

bat_boy11112233 10-02-2004 11:59 AM

no init, kernel-module version mismatch
 
Hi to all. I am very new on this forum, but soon there is my first question:

I tried to compile my own kernel on Aurox 9.4, cause i would like to activate the direct framebuffer for the matrox millenium II.
I made following things: -make xconfig
after this I configured the kernel
then I run: -make dep
- make bzImage
- make modules
- make modules install
- cp arch/i386/boot/bzImage /boot/vmlinuz
At next I called mkinitrd (under suse:mk_initrd):

mkinitrd -f --with=ext3 /boot/initrd 2.4.22-1.2188.nptl

Then I modificed the boot entry(/boot/grub/grub.conf):

title Aurox Linux
root (hd0,0)
kernel /boot/vmlinuz ro root=LABEL=/
hdc=ide-scsi rhgb
initrd /boot/initrd

And finally when I tried to boot this, I get:

Loading jbd.o : kernel-module version mismatch
/lib/jbd.o was compiled for Kernel version 2.4.22-1.2188-nptl
while this is 2.4.22-1.2188-nptl.custom.
ERROR /bin/insmod exited abnormally

Loading ext3.o : kernel-module version mismatch
/lib/ext3.o was compiled for Kernel version 2.4.22-1.2188-nptl
while this is 2.4.22-1.2188-nptl.custom.
ERROR /bin/insmod exited abnormally
Mounting /proc filesystem
Creating block devices
Creating root devices
Mounting root filesystem
mount: error 19 mounting ext3
pivot root: pivot-root (/sysroot,/sysroot/initrd) failed 2
umount /initrd/proc failed: 2
Freeing unused Kernel memory 140k freed
Kernel Panic: no init found Try to passing init=option to kernel

that`s it.:scratch:
Please, can anyone help.
Much much Thanks
p.s. sorry for my bad english, but I am only 14 years old.:Pengy:

foo_bar_foo 10-02-2004 01:29 PM

HI,
first off if you compile support for the stuff in the initrd as included in the kernel as opposed to modules
then you no longer need initrd at all !

beyond that, when you use the mkinitrd command
put the name of the new kernel (not vmlinuz but the name in /lib/modules)
of the new kernel as the last argument like
mkinitrd -f --with=ext3 /boot/initrd 2.4.22-1.2188-nptl.custom

bat_boy11112233 10-03-2004 10:05 AM

much much thanks,foo_bar_foo :)
now i got my problem: I tried : mkinitrd -f --with=ext3 /boot/initrd 2.4.22-1.2188.nptl
BUT: 2.4.22-1.2188.nptl is not my kernel version
i have 2.4.22-1.2188.nptlcustom
so i have to call: mkinitrd -f --with=ext3 /boot/initrd 2.4.22-1.2188.nptlcustom
sorry for my bad english, but i am only 14 years old ;)

trickykid 10-03-2004 10:10 AM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php


All times are GMT -5. The time now is 08:02 AM.