kernel source, km_submount, module version mismatch
I installed the 2.6.5-7.75 default kernel source, to recompile with CPU type athlon. Kernel and modules build and run. But when I build km_submount module, using make modules and make install, it uses CPU type i586 and reports version mismatch and thus will not load. Why? What is the cure?
On Fri, 02 Jul 2004 05:29:13 -0400, John Kelly
I installed the 2.6.5-7.75 default kernel source, to recompile with CPU type athlon. Kernel and modules build and run. But when I build km_submount module, using make modules and make install, it uses CPU type i586 and reports version mismatch and thus will not load.
Mystery solved ... Installing the kernel source package also installs an init script called running-kernel. At boot time, it copies version.h and some other files from /usr/src/linux-obj to /usr/src/linux, attempting to match /usr/src/linux to the running kernel, with the idea of letting you compile external modules without doing a kernel config. This appears to be the purpose for the existence of /usr/src/linux-obj. But of course, this is contrary to the goal of anyone configuring a custom kernel, who wants their version.h in /usr/src/linux to remain intact. The solution is to disable the running-kernel init script with: insserv -r running-kernel before rebooting.
On Sat, 03 Jul 2004 09:44:34 -0400, John Kelly
The solution is to disable the running-kernel init script with:
insserv -r running-kernel
before rebooting.
... and don't forget to make distclean, to clear out SuSE's version.h and autoconf.h., before configuring your kernel.
participants (1)
-
John Kelly