View Full Version : 2.6.31 kernel patch compilation help needed.

August 13th, 2009, 08:47 PM
I am trying to test a development hwmon driver for the VIA C7 CPUs that was posted on the lm-sensors.org mailing list. I extracted the 2.6.31 kernel source from the tarball in /usr/src and applied the patch.

I then did a make menuconfig, using the /boot/2.6.31-5-generic.config, to enable the driver. I built the driver module using make drivers/hwmon/via_cputemp.ko which worked as expected; except that the vermagic string does not match that of the running binary package kernel. The vermagic string from my apt installed kernel is:
vermagic: 2.6.31-5-generic SMP mod_unload modversions 586, while the string from the module I built is:
vermagic: 2.6.31-rc5 SMP mod_unload modversions 586.

Note the '-rc5' in the built from source module that is different from the running kernel. Can someone explain why the Ubuntu provided source differs from the Ubuntu provided binary; and, what, if anything, I can do to resolve this. I would greatly prefer not to rebuild the whole kernel to test one driver as I am using a netbook with a very limited processor.

Thanks for helping.