2 Feb 2004 07:01
[RFC] External kernel modules
Andreas Gruenbacher <agruen <at> suse.de>
2004-02-02 06:01:21 GMT
2004-02-02 06:01:21 GMT
Hello, the kernel build system (kbuild) allows to compile modules whose sources live outside the kernel source tree by setting SUBDIRS as follows (from the module sources's directory): $ make -C /lib/modules/$(uname -r)/build modules SUBDIRS=$(pwd) people use this mechanism to compile kernel modules that are missing in their kernel sources, or have been updated/fixed in the meantime. Currently there are a number of deficiencies for building such modules: (1) symbol versioning (MODVERSIONS) is not properly supported, and (2) only the `modules' make target is supported. Problem (1) did not exist in the 2.4 kernel series. The current situation has lead authors of several external modules to implement some of the kbuild functionality in their own makefiles, which can only lead to problems later on. During the kernel compile, a list of all files that export symbols is created in .tmp_versions/ of the kernel source tree. After everything is compiled, the module versions of all these object files are resolved with modpost. When an external module is compiled, it ends up being the only file in .tmp_versions/, and so symbols in other modules would not be found. An additional problem is that resolving symbol versions requires all(Continue reading)
(((
I had some mail traffic with Andi Kleen who gave me some hints, i should define KBUILD_MODNAME and i should
enable the "DEBUGP" define
in kernel/module.c and arch/x86_64/kernel/module.c and recompiling to get some information. I mailed
him the output but he couldn't help anymore.
I attached my Makefile and the output from insmod in my logfile.
Thanks for your patience
Carsten
RSS Feed