root/lm-sensors/tags/V2-10-3/QUICKSTART

Revision 4174, 2.9 kB (checked in by ruik, 2 years ago)

Add some 2.6 quickstart instructions

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 LM_SENSORS QUICK INSTALLATION INSTRUCTIONS
2 ------------------------------------------
3
4 The instructions in this document will generally work if you have a standard
5 system, but not always!!
6
7 The first part of document is for 2.6 kernel series, second part is for
8 older 2.4 kernels.
9
10 Quickstart for Kernel 2.6
11 -------------------------
12
13 0) Just compile and install lm-sensors userspace tools. You can do that with:
14    'make user; make user_install'
15 1) Make sure your kernel has support for all I2C bus drivers and
16    'i2c device interface'. If you are using a distribution kernel, all is
17    already prepared, you don't need to recompile it.
18 2) Run 'sensors-detect' command, it will tell you what modules you need to load.
19 3) Load them and run 'sensors' command, you should see some results.
20 4) Find right section in /etc/sensors.conf, fix labels, limits, fan divisors
21 5) Run 'sensors -s' to apply the changes.
22
23 You may also try our installation wizard at:
24
25 http://www.lm-sensors.org/wiki/iwizard/1
26
27 We are aware that the documentation could be improved, please contact us if
28 you want to help us with that.
29    
30 Quickstart for Kernel 2.4
31 -------------------------
32
33 NOTE: PLEASE SKIM THE INSTALL DOCUMENT, OR BETTER YET READ IT CAREFULLY!
34
35 Quickstart for i2c option 1 (modules) and lm_sensors option 1 (modules).
36 This is by far the EASIEST METHOD.
37 Other methods are described in INSTALL.
38 ------------------------------------------
39
40   * Verify you are running a 2.4 kernel, 2.4.10 or later.
41
42   * Make sure you have the kernel tree corresponding to your current
43     kernel in /lib/modules/$(uname -r)/build.
44     Even if the source is there, it may not correspond to your running
45     kernel. If so, you will have to recompile your kernel.
46
47   * Verify that your i2c support in the kernel is configured as
48     modules or is disabled. If it is compiled-in, you obviously
49     cannot replace it with modules in the next step.
50
51   * Do `lsmod'. If there are any old i2c or sensors modules loaded,
52     you MUST remove them (as root) with `rmmod'.
53
54   * Download, build, and install the latest i2c package,
55     (i2c-2.9.0 or later). The i2c subsystem found in the Linux 2.4
56     kernel trees, even the latest ones, is outdated and won't work.
57     Quickstart for i2c: make; (as root) make install
58
59   * Go back to the lm_sensors directory. Do `make'.
60     The warnings about .d files at the start are harmless.
61
62   * Do (as root) `make install'.
63
64   * Verify that /usr/local/lib is listed in /etc/ld.so.conf;
65     if it isn't, add it, then run (as root) `ldconfig'.
66
67   * Run (as root) `prog/mkdev/mkdev.sh' to create the device files,
68     unless you already have them or are running devfs or udev.
69
70   * Run (as root) `prog/detect/sensors-detect' to detect your hardware,
71     put the lines it suggests into /etc/modules.conf, and run all
72     the commands it suggests (`modprobe X', `sensors -s').
73
74   * Run `sensors' to see your output.
75
76   * That's it! If you have problems, read our excellent FAQ
77     (doc/FAQ or doc/lm_sensors-FAQ.html).
Note: See TracBrowser for help on using the browser.