mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-25 20:28:21 +00:00
Some new documentation. Please read and correct.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@48 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
d38f92e42a
commit
c88b09de08
5 files changed
+160
No files matched your search
@@ -0,0 +1,73 @@
|
||||
Basic installation is uncomplicated. Run 'make all', followed by an optional
|
||||
'make install'. Everything is compiled using the Makefile in the root of
|
||||
this package. Some interesting variables:
|
||||
|
||||
* SMP
|
||||
This must be set to 1 if your kernel was compiled with SMP set to 1. There
|
||||
is a sort of magic invocation which tries to check this; it will fail if
|
||||
you do not have the correct kernel tree in /usr/src/linux. If you set it,
|
||||
a '-D__SMP__' argument will be added to all module compiles.
|
||||
* MODVER
|
||||
This must be set to 1 if your kernel was compiled with CONFIG_MODVERSIONS
|
||||
enabled. There is some magic which tries to retrieve this information
|
||||
from /usr/include/linux/config.h and /usr/include/linux/autoconf.h.
|
||||
* I2C
|
||||
If you already have Simon Vogl's i2c package installed, you may not have
|
||||
to compile the version included in this package. In that case, check
|
||||
the file i2c/MODIFICATIONS in this package to see what versions are
|
||||
OK.
|
||||
* WARN, DEBUG
|
||||
These options should only be needed if you are an active developer of
|
||||
this package.
|
||||
* MODDIR
|
||||
The directory where 'make install' installs your modules.
|
||||
* INCLUDEDIR
|
||||
The directory where 'make install' installs your include files.
|
||||
|
||||
Warning! In newer 2.1 kernels, there is support for I2C. This support is
|
||||
NOT compatible with this module! Actually, Simon Vogl's modules (which
|
||||
ARE compatible) is scheduled to replace the current support. If you
|
||||
actually use these modules, you have a problem; they can not coexist
|
||||
with Simon's modules. Theoretically, you should be able to replace
|
||||
the old modules with the new stuff in our i2c directory, recompile
|
||||
the kernel, and then compile our modules with I2C=0. If you try
|
||||
this, please share the results with us!
|
||||
|
||||
Please make sure that /usr/include/linux and /usr/include/asm are symlinks
|
||||
into the kernel tree which corresponds with the kernel version you are using
|
||||
now (or more exactly, the kernel which you will use the compiled modules
|
||||
with). If the tree and the running kernel do not match, you will either
|
||||
be unable to insert the modules at all, or you can expect strange
|
||||
behaviour (probably leading to crashes).
|
||||
|
||||
When you have compiled this package, you will be left with a lot of modules.
|
||||
It can be tricky to know which modules you need to insert. For this reason,
|
||||
I suggest you go the 'modprobe' way, as described within doc/modules.
|
||||
If you just want to run a test without installing them, try the following:
|
||||
insmod i2c/i2c-core.o
|
||||
insmod src/i2c-proc.o
|
||||
insmod src/smbus.o
|
||||
insmod src/sensors.o
|
||||
insmod src/isa.o
|
||||
insmod src/piix4.o # Or whatever SMBus controller you have
|
||||
insmod src/lm78.o # Or whatever hardware monitoring chip you have
|
||||
Now you should have new directories under /proc/sys/dev/sensors and some files
|
||||
beginning with i2c in /proc/bus.
|
||||
|
||||
If you have installed the modules, as described within doc/modules, you can
|
||||
do 'modprobe piix4 && modprobe lm78 && modprobe i2c-proc' (the last is
|
||||
optional) from any directory to reach the same situation.
|
||||
|
||||
Where version 1 of this package had the human-readable /proc/sensors file,
|
||||
this version will include a user-space program which gathers all data
|
||||
and displays it in a comparable format. Regrettably, this program is not
|
||||
yet finished. To understand the files that are present now, read doc/lm78,
|
||||
doc/lm75 etc.
|
||||
|
||||
One of the next releases of this package will have a user-space probe program,
|
||||
which tells you which chips and busses are present, and which modules you
|
||||
will have to load. At this moment, just try to load the modules; if no chip
|
||||
or bus is detected, the module will fail to insert.
|
||||
|
||||
Please examine the files in the doc subdirectory for more information, or
|
||||
try to mail us at <lm78@stimpy.netroedge.com>. Good luck!
|
||||
@@ -0,0 +1,48 @@
|
||||
This is the completely rewritten version of lm_sensors, a collection of
|
||||
modules for general SMBus access and hardware monitoring. There are quite
|
||||
a few changes compared with 1.x.y versions; read doc/version-2 for the
|
||||
most interesting ones.
|
||||
|
||||
SMBus, also known as System Management Bus, is a protocol for communicating
|
||||
through a I2C ('I squared C') bus. Many modern mainboards have a System
|
||||
Management Bus. There are a lot of devices which can be connected to a
|
||||
SMBus; the most notable are modern memory chips with EEPROM memories and
|
||||
chips for hardware monitoring.
|
||||
|
||||
Most modern mainboards incorporate some form of hardware monitoring chips.
|
||||
These chips read things like chip temperatures, fan rotation speeds and
|
||||
voltage levels. There are quite a few different chips which can be used
|
||||
by mainboard builders for approximately the same results.
|
||||
|
||||
Hardware monitoring chips are often connected to the SMBus, but often they
|
||||
can also be connected to the ISA bus. The modules in this package usually
|
||||
support both ways of accessing them.
|
||||
|
||||
Because the SMBus is just a special case of the generalized I2C bus, we
|
||||
can simulate the SMBus protocol on plain I2C busses. These busses are
|
||||
sometimes used in other parts of your computer. If a supported chips is
|
||||
attached to one of these additional busses, they can be used too.
|
||||
|
||||
Please read INSTALL before trying to compile and install these modules.
|
||||
There is a lot of additional documentation in the doc/ subdirectory.
|
||||
Amnong these is a list of supported busses and chips. Regrettably, there
|
||||
are too many mainboards to keep a list of busses and chips used on them.
|
||||
We will provide a user-space utility which probes for the presence of
|
||||
chips and busses in one of the next releases.
|
||||
|
||||
The developers of this package can be reached through the email address
|
||||
<lm78@stimpy.netroedge.com>. Do not hesitate to mail us if you have questions,
|
||||
suggestions, problems, want to contribute, or just want to report it works
|
||||
for you. But please try to read the documentation first before you ask
|
||||
any questions!
|
||||
|
||||
The latest version of this package can always be found on our homepage:
|
||||
http://www.netroedge.com/~lm78. Pre-release versions can be retrieved
|
||||
through anonymous CVS; see doc/cvs for more information.
|
||||
|
||||
This whole package is copyright (c) 1998 by Frodo Looijaard and Philip
|
||||
Edelbrock, except for (almost) everything in the i2c directory, which
|
||||
is copyright (c) 1995-1998 by Simon Vogl. See the individual files for
|
||||
more exact copyright information. This package may be distributed
|
||||
according to the GNU General Public License (GPL), as included in the
|
||||
file COPYING.
|
||||
@@ -1,5 +1,8 @@
|
||||
Many, many things. Most notably:
|
||||
|
||||
* kmalloc with GFP_KERNEL can cause a context switch! Check whether this is
|
||||
safe everywhere it is used.
|
||||
* Write doc/lm78, as well as some other docs
|
||||
* Support 10-bit addresses. At this moment, they are supported nowhere, except
|
||||
in Simon Vogl's i2c modules.
|
||||
* Change the i2c modules to keep the namespace clean (EXPORT_SYMBOL does not
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
This file documents the lm75 directories.
|
||||
|
||||
There will be one directory created for each detected LM75 chip. As LM75
|
||||
chips can only be on a SMBus, they will be called lm75-i2c-?-??, with
|
||||
the first question mark being the number of the i2c bus (see /proc/bus/i2c
|
||||
for a list of them, if i2c-proc is loaded), and the SMBus (I2C) address
|
||||
of the chip at the end. An LM75 is uniquely characterised with these
|
||||
two numbers. /proc/sys/dev/sensors/chips contains the SYSCTL values for
|
||||
all chip directories.
|
||||
|
||||
Within each LM75 directory, you can find the following files:
|
||||
* temp
|
||||
A list of three numbers. The first number is the Overtemperature Shutdown
|
||||
value, the second number is Overtemperature Shutdown value, and the third
|
||||
number is the current temperature. The first two values can be modified.
|
||||
Each value can be set and read to half-degree accuracy. All values are in
|
||||
degrees Celcius.
|
||||
An alarm is issued (usually to a connected LM78) when the temperature
|
||||
gets higher then the Overtemperature Shutdown value; it stays on until
|
||||
the temperature falls below the Hysteris value.
|
||||
If read through sysctl, this is a list of longs, each being the temperature
|
||||
times 10.
|
||||
@@ -0,0 +1,14 @@
|
||||
There have been many, many changes between version 1 and version 2 of this
|
||||
package. Some of the more important ones:
|
||||
|
||||
* Fully modular setup. This makes it much easier to support new hardware,
|
||||
and consumes less kernel memory.
|
||||
* Full support for I2C busses. This includes the VIA chipset I2C bus. If it
|
||||
is supported by Simon Vogl, it is supported by us.
|
||||
* Many things which were done in kernel space are now done in user space.
|
||||
The most obvious result is the absence of /proc/sensors. Use instead the
|
||||
supplied program.
|
||||
* No more limits on the number of chips.
|
||||
* All detected chips get their own directory under /proc/sys/dev/sensors
|
||||
* /proc/bus contains a list of all I2C/SMBus adapters found
|
||||
* All code has been completely rewritten.
|
||||
Reference in new issue
Block a user