linux-newbie.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Missing version line in System.map file?
@ 2017-11-25 15:51 Lee Strobel
  0 siblings, 0 replies; only message in thread
From: Lee Strobel @ 2017-11-25 15:51 UTC (permalink / raw)
  To: linux-newbie

Hi,

I have a question about the Linux kernel, which I have been trying to
find an answer to through various forums for some time now, but without
success. I'm wondering if anyone on this mailing list might be able to
help?

I've been trying to build a Linux From Scratch (LFS) system, using
SysVinit and sysklogd. However, when I tried to boot up, klogd wasn't
accepting the System.map file, printing log messages such as:

   Oct 9 17:24:17 <lee_lfs> kernel: klogd 1.5.1, log source = /proc/kmsg
started.
   Oct 9 17:24:17 <lee_lfs> kernel: Inspecting /boot/System.map
   Oct 9 17:24:17 <lee_lfs> kernel: Cannot find map file.

So, I dug into the source code for klogd a little bit, and it appears
the reason the map file wasn't being accepted was because it didn't
contain a 'version' line, which klogd was looking for, in the form:

   [address] [type] Version_XXXXX

(where XXXXX is the kernel version # in base 256).

So, I've been asking around on various forums. It seems that none of the
map files that are being produced by more recent kernels include this
line and no-one that I've spoken to on the Linux forums seems to know
why this is.

Was a change made to the Linux kernel, to remove this 'version' line
from the map file? If so, how are the newer init systems verifying that
the map file is the same version as the running kernel? Perhaps klogd
needs to be updated?

By the way, I tried adding a 'dummy' version line to my map file and
klogd accepted it fine.

Hopefully someone out there can assist.

Best regards,

Lee Strobel
Engineer/Tinkerer/Free Software Supporter ..

--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-11-25 15:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-25 15:51 Missing version line in System.map file? Lee Strobel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).