| 1 | LM_SENSORS QUICK INSTALLATION INSTRUCTIONS |
|---|
| 2 | ------------------------------------------ |
|---|
| 3 | |
|---|
| 4 | NOTE: PLEASE SKIM THE INSTALL DOCUMENT, OR BETTER YET READ IT CAREFULLY! |
|---|
| 5 | The instructions in this document will generally work if you have a standard |
|---|
| 6 | system, but not always!! |
|---|
| 7 | |
|---|
| 8 | Quickstart for i2c option 1 (modules) and lm_sensors option 1 (modules). |
|---|
| 9 | This is by far the EASIEST METHOD. |
|---|
| 10 | Other methods are described in INSTALL. |
|---|
| 11 | ------------------------------------------ |
|---|
| 12 | |
|---|
| 13 | * Verify you are running a 2.4 kernel, 2.4.10 or later. |
|---|
| 14 | If you are running a 2.5/2.6 kernel, the ONLY thing you need to |
|---|
| 15 | do is 'make user' and 'make user_install'. Do NOT follow the rest |
|---|
| 16 | of these instructions. |
|---|
| 17 | |
|---|
| 18 | * Make sure you have the kernel tree corresponding to your current |
|---|
| 19 | kernel in /lib/modules/$(uname -r)/build. |
|---|
| 20 | Even if the source is there, it may not correspond to your running |
|---|
| 21 | kernel. If so, you will have to recompile your kernel. |
|---|
| 22 | |
|---|
| 23 | * Verify that your i2c support in the kernel is configured as |
|---|
| 24 | modules or is disabled. If it is compiled-in, you obviously |
|---|
| 25 | cannot replace it with modules in the next step. |
|---|
| 26 | |
|---|
| 27 | * Do `lsmod'. If there are any old i2c or sensors modules loaded, |
|---|
| 28 | you MUST remove them (as root) with `rmmod'. |
|---|
| 29 | |
|---|
| 30 | * Download, build, and install the latest i2c package, |
|---|
| 31 | (i2c-2.9.0 or later). The i2c subsystem found in the Linux 2.4 |
|---|
| 32 | kernel trees, even the latest ones, is outdated and won't work. |
|---|
| 33 | Quickstart for i2c: make; (as root) make install |
|---|
| 34 | |
|---|
| 35 | * Go back to the lm_sensors directory. Do `make'. |
|---|
| 36 | The warnings about .d files at the start are harmless. |
|---|
| 37 | |
|---|
| 38 | * Do (as root) `make install'. |
|---|
| 39 | |
|---|
| 40 | * Verify that /usr/local/lib is listed in /etc/ld.so.conf; |
|---|
| 41 | if it isn't, add it, then run (as root) `ldconfig'. |
|---|
| 42 | |
|---|
| 43 | * Run (as root) `prog/mkdev/mkdev.sh' to create the device files, |
|---|
| 44 | unless you already have them or are running devfs or udev. |
|---|
| 45 | |
|---|
| 46 | * Run (as root) `prog/detect/sensors-detect' to detect your hardware, |
|---|
| 47 | put the lines it suggests into /etc/modules.conf, and run all |
|---|
| 48 | the commands it suggests (`modprobe X', `sensors -s'). |
|---|
| 49 | |
|---|
| 50 | * Run `sensors' to see your output. |
|---|
| 51 | |
|---|
| 52 | * That's it! If you have problems, read our excellent FAQ |
|---|
| 53 | (doc/FAQ or doc/lm_sensors-FAQ.html). |
|---|