You are not logged in.

#1 2004-05-12 02:07:31

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

kernel 26, klogd and System.map26

After an upgrade to kernel2.6.6 I can see this in /var/log/kernel

May 12 02:27:53 k1 kernel: klogd 1.4.1, log source = /proc/kmsg started.
May 12 02:27:53 k1 kernel: Inspecting /boot/System.map
May 12 02:27:53 k1 kernel: Symbol table has incorrect version number. 
May 12 02:27:53 k1 kernel: Cannot find map file.
May 12 02:27:53 k1 kernel: No module symbols loaded - kernel modules not enabled. 

Currently I have two kernels and two menus in grub. After searching a bit I found this in the forums http://bbs.archlinux.org/viewtopic.php? … =klogd+map This is from the link inside:

The solution is to keep all your System.map files in /boot and rename them with the kernel version. Suppose you have multiple kernels like:
/boot/vmlinuz-2.2.14
/boot/vmlinuz-2.2.13

Then just rename your map files according to the kernel version and put them in /boot, like:
/boot/System.map-2.2.14
/boot/System.map-2.2.13

But the files are already named properly accoding to this:

-rw-r--r--  1 root root  837872 Apr 29 04:54 System.map
-rw-r--r--  1 root root  989609 May 10 09:29 System.map26
-rw-r--r--  1 root root 2276326 Apr 29 04:54 vmlinuz
-rw-r--r--  1 root root 2611954 May 10 09:29 vmlinuz26

and the message in /var/log/kernel doesn't want to disappear :-) There is only no - sign between the name and the version but could it be a problem? So there are a few options:
a) forget about it at all and live with it :-) it's not critical
b) change the name of System.map26 to System.map or link to System.map26 from System.map (and probably copy first System.map to System.map24 or something like this, not perfect...)
c) change /etc/rc.d/klogd to run with options -k /boot/System.map26 (adding another option -2 will add both raw text and symbols to /var/log/kernel which should satisfy any program that uses it - check klogd man page)
d) apply ancient secret magical formula which is.... :-)
Any ideas?

Offline

#2 2004-05-23 21:56:50

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: kernel 26, klogd and System.map26

Just to close this overpopular topic :-)

The simple solution is to make symbolic link to System.map26 like this

ln -s /boot/System.map26 System.map-2.6.6

Then klogd will be able to load symbols for the kernel

May 22 00:47:44 k1 kernel: klogd 1.4.1, log source = /proc/kmsg started.
May 22 00:47:44 k1 kernel: Inspecting /boot/System.map-2.6.6
May 22 00:47:44 k1 kernel: Loaded 33337 symbols from /boot/System.map-2.6.6.
May 22 00:47:44 k1 kernel: Symbols match kernel version 2.6.6.
May 22 00:47:44 k1 kernel: No module symbols loaded - kernel modules not enabled.

There is only one problem left - last message. The message seems to be at least partly wrong. Modules are working ok. I tried to search for information about this and found a few posts (on kerneltrap.org) but nobody knows an answer for now. So if it's working ok I'll leave it for now as it is :-)

Offline

Board footer

Powered by FluxBB