LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-21-2006, 12:23 PM   #1
Lord of the Board
LQ Newbie
 
Registered: Sep 2006
Distribution: mandriva 2007
Posts: 28

Rep: Reputation: Disabled
version magic: old modules loaded


Hi,
on the boot screen the following lines are included:

scsi_mod: version magic '2.6.12-12mdk 686 gcc-4.0' should be '2.6.12-22mdkcustom 686 gcc-4.0'
libata: version magic '2.6.12-12mdk 686 gcc-4.0' should be '2.6.12-22mdkcustom 686 gcc-4.0'
ata_piix: version magic '2.6.12-12mdk 686 gcc-4.0' should be '2.6.12-22mdkcustom 686 gcc-4.0'
ahci: version magic '2.6.12-12mdk 686 gcc-4.0' should be '2.6.12-22mdkcustom 686 gcc-4.0'
sd_mod: version magic '2.6.12-12mdk 686 gcc-4.0' should be '2.6.12-22mdkcustom 686 gcc-4.0'

Today, I habe installed a new kernel 2.6.18 from kernel.org. Still there are these messages.

I'm not sure since when this occured but I suppose it was due to one of the following reasons:
Once I updated my kernel with urpmi kernel and assumed that version number. For installing a new driver I needed the kernel sources, that's why I compiled myself a new kernel. Maybe there something went wrong. Maybe I have not realized the difference in compliling a 2.4.xx kernel to a 2.6.xx kernel.
What should I do?
 
Old 09-22-2006, 04:45 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
My guess is that the new modules are installed in the same dir as the old ones. You have choosen less options in the new kernel, so not all were compiled. The ones causing errors are from old install. You can recompile adding the modules, that's the simpliest solution.
 
Old 09-25-2006, 09:17 AM   #3
Lord of the Board
LQ Newbie
 
Registered: Sep 2006
Distribution: mandriva 2007
Posts: 28

Original Poster
Rep: Reputation: Disabled
more info on my modules problem

Hi,
Thanks Mara. But unfortunately I still did not suceed. I assume that you are no magician, too, and it was quite hard to tell me where I missed, the little info I gave ;-)
But I screwed a bit around, so maybe I'm capable of describing my problem in more detail.

Probably I posted more info than you actually need to tell me what I've done wrong, so don't be scared by the long post.

So far I recompiled my kernel several times, with EXTRAOPTIONS, without EXTRAOPTIONS, but no success. I did not change anything from the default kernel settings yet, maybe I should proceed that way, but for the time being, I think that the real problem is a different one.

When I switch "telinit 3" my computer says it's still running the old kernel version, not 2.6.18. Therefore I looked into my boot directory and saw:

insgesamt 8608
-rw-r--r-- 1 0 0 512 Dez 1 2005 boot.0300
lrwxrwxrwx 1 0 0 19 Sep 25 14:46 config -> config-2.6.12-12mdk
-rw-r--r-- 1 0 0 71299 Sep 9 2005 config-2.6.12-12mdk
-rw-r--r-- 1 0 0 70651 Sep 9 2005 config-2.6.12-12mdksmp
-rw-r--r-- 1 0 0 256 Dez 1 2005 de-latin1.klt
drwxr-xr-x 2 0 0 4096 Dez 1 2005 grub/
-rw-r--r-- 1 0 0 194347 Dez 1 2005 initrd-2.6.12-12mdk.img
-rw-r--r-- 1 0 0 126742 Dez 1 2005 initrd-2.6.12-12mdksmp.img
lrwxrwxrwx 1 0 0 23 Dez 1 2005 initrd.img -> initrd-2.6.12-12mdk.img
lrwxrwxrwx 1 0 0 26 Dez 1 2005 initrd-smp.img -> initrd-2.6.12-12mdksmp. img
lrwxrwxrwx 1 0 0 27 Sep 25 14:46 kernel.h -> /boot/kernel.h-2.6.12-12mdk
-rw-r--r-- 1 0 0 695 Dez 1 2005 kernel.h-2.6.12-12mdk
-rw-r--r-- 1 0 0 695 Dez 1 2005 kernel.h-2.6.12-12mdksmp
-rw-r--r-- 1 0 0 1612088 Sep 6 00:24 linux-2.6.17.11
-rw-r--r-- 1 0 0 1484654 Sep 25 14:20 linux-2.6.18
-rw------- 1 0 0 309760 Sep 25 12:56 map
lrwxrwxrwx 1 0 0 15 Apr 13 22:23 message -> message-graphic
-rw-r--r-- 1 0 0 254766 Dez 1 2005 message-graphic
-rw-r--r-- 1 0 0 127 Dez 1 2005 message-text
lrwxrwxrwx 1 0 0 23 Apr 13 20:52 System.map -> System.map-2.6.12-12mdk
-rw-r--r-- 1 0 0 639316 Sep 9 2005 System.map-2.6.12-12mdk
-rw-r--r-- 1 0 0 647919 Sep 9 2005 System.map-2.6.12-12mdksmp
lrwxrwxrwx 1 0 0 20 Dez 1 2005 vmlinuz -> vmlinuz-2.6.12-12mdk
-rw-r--r-- 1 0 0 1608520 Sep 9 2005 vmlinuz-2.6.12-12mdk
-rw-r--r-- 1 0 0 1693626 Sep 9 2005 vmlinuz-2.6.12-12mdksmp
lrwxrwxrwx 1 0 0 23 Dez 1 2005 vmlinuz-smp -> vmlinuz-2.6.12-12mdksmp

Some explanation. Once I typed urpmi kernel and installed the 2.6.12-12mdk kernel. But then I had no sources and needed to do some compiling stuff. Therefore I installed the latter ones. They are 2.6.17.11 and then (I've tried a lot, and it did not work) 2.6.18. You see that there are many non kernel files that are linked to the urpmi kernel. Somehow they seem to interfere with installing the new kernel and that's why there's the conflict.
Next let's show you my lilo.conf:

# File generated by DrakX/drakboot
# WARNING: do not forget to run lilo after modifying this file

default="linux-2.6.18"
boot=/dev/hda
map=/boot/map
keytable=/boot/de-latin1.klt
menu-scheme=wb:bw:wb:bw
prompt
nowarn
timeout=100
message=/boot/message
image=/boot/vmlinuz
label="vmlinuz"
root=/dev/hda2
initrd=/boot/initrd.img
append="splash=silent"
vga=788
#image=/boot/linux-2.6.17.11
# label="2.6.17.11"
# root=/dev/hda2
# initrd=/boot/initrd.img
# append="splash-silent"
# vga=788
image=/boot/linux-2.6.18
label="linux-2.6.18"
root=/dev/hda2
# initrd=/boot/initrd.img
# append="splash-silent"
vga=788
other=/dev/hda1
label="windows"
table=/dev/hda


The vmlinuz section is more or less the one generated by default. In the section about "linux-2.6.18" I first had exactly the same things as in the working vmlinuz section. Then I #'ed two lines because I realized, that the initrd file is related to the old kernel (2.6.12-22mdk)
But now the new installed kernel doesn't boot anymore. It breaks with the following error:
VFS cannot open root device "302" or unknown block (3,2)
Please append a correct "root=" boot option.
So somehow I have to use an initrd.img related to the new kernel, becaus this file (imho) causes linux to load the old modules. But I don't know much about that, yet.

Now I'm very confused. I read a few manauls how to compile kernels but none of them told about initrd files. And I don't know about all the other files, too. I compiled my kernel (from kernel.org) with:
Unpacking kernel sources,Creating & checking symlink to /usr/src/linux, make menuconfig. There I left everything, I did not change any of these opttions. make && make modules_install, cp /usr/src/linux/arch/i386/boot/bzImage /boot/linux-2.6.18, then mcedit /etc/lilo.conf and lilo.

Maybe someone can give me a suggestion what to do :-)
Thanks in advance!
 
Old 09-25-2006, 04:38 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
It may be a good idea to make initrd for every new kernel you have and use them instead of the default you have. It changes things.

How to make initrd... It's simple:
mkinitrd -o outfile kernel_version
So, for example:
mkinitrd -o /boot/initrd-2.6.18 2.6.18
Then edit lilo.conf and change initrd name for 2.6.18 kernel.
 
Old 09-26-2006, 03:57 PM   #5
Lord of the Board
LQ Newbie
 
Registered: Sep 2006
Distribution: mandriva 2007
Posts: 28

Original Poster
Rep: Reputation: Disabled
Yup, that worked. Thank you!

(I typed it without the -o)
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
10.2 -> -current : no modules loaded merchtemeagle Slackware 2 04-21-2006 07:37 AM
Too Many Modules Loaded XSIWILL SUSE / openSUSE 2 02-24-2006 11:13 PM
Change Loaded Modules thadco Linux - Hardware 1 09-06-2005 08:58 PM
Kernel 2.6.5 -> no modules loaded Spheerke Debian 4 04-07-2004 10:05 PM
how do you find out what modules loaded?? osat3ch Mandriva 3 01-17-2004 11:05 AM


All times are GMT -5. The time now is 10:37 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration