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

Re: Using lm-sensors

Thanks for the info. So is the relation between lm-sensors and lm-sensors-source that the latter provides drivers used by the former (sort of like alsa, where you need to build the driver, but the utilities can be obtained by binary package)?

Or is lm-sensors simply a packaging artifact that doesn't work, and that I should remove before attempting to install the package I make from lm-source?

Thanks for the tip on disabling i2c in the kernel--sounds as if it will save a lot of confusion.

My current thinking about the proper steps:
apt-get remove lm-sensors
apt-get install lm-sensors-source i2c-source
untar, establish links and environment variables to get those two modules where I actually
                 have my kernel  modules
make-kpkg clean
disable i2c in kernel configuration
make-kpkg --revision=rb.2 build_image  #not sure this or next target is right
make-kpkg build_modules  # I'm not in Debian right now to check
                                       # but you get the idea
dpkg -i <kernel.deb>
dpkg -i <modules.deb> # with appropriate directory renaming since I already built this gen kernel.

Hmm, I don't think we have the usability issues quite licked.

At 03:16 PM 8/19/01 -0400, David Z Maze wrote:
Ross Boylan <RossBoylan@stanfordalumni.org> writes:
RB> I'm trying to use lm-sensors, so far with no luck.  The Readme.Debian
RB> is a bit unclear to me.  It says:
RB> To use lm-sensors, you need the lm-sensors module package and an i2c module
RB> package installed. You will probably need to build the modules packages
RB> from source, using the lm-sensors-source and i2c-source packages. If you
RB> have a 2.4 kernel or a recent 2.2 kernel, you can instead use the kernel's
RB> new built-in i2c support -- just enable it in the kernel config.

Oops.  That's a mistake that needs to be fixed in the lm-sensors
README.Debian: with current lm-sensors-source (2.6.0 or later), you
must use the separately bundled i2c package.

RB> Questions:
RB> I have a 2.4 kernel with i2c enabled.
RB> Should I be able to apt-get install lm-sensors and have it work?
RB> How do I know if I need to build from source?

I don't believe there are pre-built i2c or lm-sensors modules for any
of the standard Debian kernels.  (And there isn't really a good way to
build said modules right now, either, which is somewhat irritating.)
This means that you pretty much need to build both lm-sensors and i2c
from source (apt-get install lm-sensors-source i2c-source, unpack the
tarballs in /usr/src, and run 'make-kpkg modules', essentially; see
the kernel-package or lm-sensors-source documentation for more
information).  You'll need to disable the i2c support in the kernel,
since the standalone package is newer and things get confused if you
have both enabled.

RB> Load `i2c-amd756' (say NO if built into your kernel)? (YES/no):
RB> modprobe: Can't locate module i2c-amd756

This means that you're missing the kernel-specific lm-sensors package
(e.g. kernel-sensors-2.4.7), which would be built from lm-sensors-source.

RB> wheat:/usr/local/rootlog# modprobe i2c-proc
RB> modprobe: Can't locate module i2c-proc

This comes from i2c-2.4.7 on my system (built from i2c-source); I
don't believe it is provided by the kernel i2c support.

Reply to: