2.6.31 vermagic question.
Tim Gardner
tim.gardner at canonical.com
Mon Aug 17 14:39:11 UTC 2009
One of the rules in the debian build sets EXTRAVERSION, making it
difficult to build the Ubuntu kernel in-tree. The only supported method
for building the kernel is by using the Debian build mechanism, i.e.,
dpkg-buildpackage. However, there are short cuts to avoid building the
whole kernel. For example,
fakeroot debian/rules prepare-generic
make -C debian/build/build-generic M=`pwd`/drivers/hwmon
Further information about how to build the kernel can be found on the
wiki at:
https://wiki.ubuntu.com/KernelTeam/KernelMaintenance
rtg
Pete Graner wrote:
> Justin,
>
> I have pushed your email to the kernel-team mailing list so the team can
> help.
>
> Team, this came in via LP can you guys help out on this one?
>
> Thanks
>
> ~pete
>
> justinchudgar wrote:
>> 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.
>>
>> Also note that the kernel binary and kernel source packages are the
>> latest and greatest as provided by 'apt-get update; apt-get dist-
>> upgrade' using the Karmic repos.
>>
>> Thanks for helping.
>>
>> Justin
>
>
--
Tim Gardner tim.gardner at canonical.com
More information about the kernel-team
mailing list