Hi. Odd problem. I just installed 8.0 on a machine (kernel hacking test machine). I set about testing some old modules I had around, just to see that the build env. was in order and found the following discrepency: # insmod mod_hello.o mod_hello.o: kernel-module version mismatch mod_hello.o was compiled for kernel version 2.4.18-4GB while this kernel is version 2.4.18-64GB-SMP. $ uname -r 2.4.18-64GB-SMP $ less /lib/modules/`uname -r`/build/.kversion 2.4.18-4GB Ummmm. What could be behind this discrepency, and what would be the recommended fix? 1) Change the symlink at /lib/modules/2.4.18-64GB-SMP/build? 2) change .kversion (seems rather unlikely) 3) something I haven't thought of yet FWIW, the machine only has 512 RAM, so a 64GB enabled kernel is definitely overkill here :-) Thanks. Michael -- Michael Fischer Happiness is a config option. michael@visv.net Recompile and be happy.
On Monday 16 September 2002 20.44, Michael Fischer wrote:
What could be behind this discrepency, and what would be the recommended fix?
You have one kernel-source.rpm but several possible kernels you can install. The source cannot possibly be configured for all versions at the same time.
1) Change the symlink at /lib/modules/2.4.18-64GB-SMP/build? 2) change .kversion (seems rather unlikely) 3) something I haven't thought of yet
4) cd /usr/src/linux && make mrproper && make cloneconfig && make dep After that you can compile modules against the running kernel.
FWIW, the machine only has 512 RAM, so a 64GB enabled kernel is definitely overkill here :-)
Then install k_psmp. It's also the only way to run vmware on an smp machine if you want to use suse's precompiled kernel rpms regards Anders
On Monday 16 September 2002 20.51, Rowan Reid wrote:
4) cd /usr/src/linux && make mrproper && make cloneconfig && make dep
Can you explain in just a little more detail what make mrproper and make cloneconfig does ?
make mrproper cleans up the kernel source tree and removes every old config. make cloneconfig is a SuSE hack to grab the config from the running kernel and configure the source to match. "make dep" finalizes the configuration so you can compile things against it. //Anders
On Mon, Sep 16, Anders Johansson wrote:
On Monday 16 September 2002 20.44, Michael Fischer wrote:
What could be behind this discrepency, and what would be the recommended fix?
You have one kernel-source.rpm but several possible kernels you can install. The source cannot possibly be configured for all versions at the same time.
1) Change the symlink at /lib/modules/2.4.18-64GB-SMP/build? 2) change .kversion (seems rather unlikely) 3) something I haven't thought of yet
4) cd /usr/src/linux && make mrproper && make cloneconfig && make dep
After that you can compile modules against the running kernel.
That did it nicely. Thanks for the why and the how. Makes sense. Now I just can't figure out why printk()'s don't seem to show up anywhere... (not on /dev/console, /dev/ttyS0, /dev/tty0, /dev/tty1). hmmm. Michael -- Michael Fischer Happiness is a config option. michael@visv.net Recompile and be happy.
Is the box a Pentium4? If so, 8.0 detects an SMP and installs that kernel. Changing in YaST to the default is a breeze tho! Dylan On Monday 16 September 2002 19:44, Michael Fischer wrote:
Hi.
Odd problem. I just installed 8.0 on a machine (kernel hacking test machine). I set about testing some old modules I had around, just to see that the build env. was in order and found the following discrepency:
# insmod mod_hello.o mod_hello.o: kernel-module version mismatch mod_hello.o was compiled for kernel version 2.4.18-4GB while this kernel is version 2.4.18-64GB-SMP.
$ uname -r 2.4.18-64GB-SMP
$ less /lib/modules/`uname -r`/build/.kversion 2.4.18-4GB
Ummmm.
What could be behind this discrepency, and what would be the recommended fix?
1) Change the symlink at /lib/modules/2.4.18-64GB-SMP/build? 2) change .kversion (seems rather unlikely) 3) something I haven't thought of yet
FWIW, the machine only has 512 RAM, so a 64GB enabled kernel is definitely overkill here :-)
Thanks.
Michael
participants (4)
-
Anders Johansson
-
Dylan
-
Michael Fischer
-
Rowan Reid