[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: lm-sensors build, sanity check



Marc Wilson <mwilson@moonkingdom.net> writes:
MW> On Tue, Dec 11, 2001 at 10:06:13AM -0500, David Z Maze wrote:
 DZM> If you're using an older kernel or want the updated i2c drivers,
 DZM> you can also install them from the i2c-source package (in which
 DZM> case you should completely disable i2c in the kernel).
MW> 
MW> Doesn't the documentation say different?  I'm having trouble finding the
MW> reference (the lm-sensors site isn't a model of organization... kinda like
MW> my desk!), but I coulda sworn that it says the exact opposite.
MW> 
MW> Does kinda make sense... how do you expect to load a module for a facility
MW> the kernel isn't using?

I'm a bit confused about what you're asking here.  So, trying to
explain:

There are three layers you need to usefully use lm-sensors.  One is
the lm-sensors userspace programs (sensors, sensord).  The second is
the lm-sensors kernel drivers.  The third is the i2c kernel drivers.
You need compatible versions of all three.  Source for all three is
distributed from http://www2.lm-sensors.nu/~lm78/; source for the i2c
kernel drivers is also included in the Linux kernel.

Before kernel 2.4.13, the version of i2c distributed with the kernel
was too old.  So to use lm-sensors with older kernels, you need to
disable i2c in the kernel and build i2c and lm-sensors kernel modules
from source.  (So, you can build things outside the kernel tree even
if you've disabled the corresponding options in the kernel
configuration.)

According to the lm-sensors site, kernel 2.4.13 includes i2c 2.6.1,
which is compatible with lm-sensors 2.6.2.  So you have the option of
using the in-kernel i2c drivers, if you want to, in which case you
enable that option in the kernel configuration (including, in
particular, "I2C /proc interface") and build lm-sensors externally.

-- 
David Maze         dmaze@debian.org      http://people.debian.org/~dmaze/
"Theoretical politics is interesting.  Politicking should be illegal."
	-- Abra Mitchell



Reply to: