Changeset 100
- Timestamp:
- 12/21/98 23:41:59 (10 years ago)
- Files:
-
- lm-sensors/trunk/INSTALL (modified) (4 diffs)
- lm-sensors/trunk/README (modified) (2 diffs)
- lm-sensors/trunk/prog/sensors/main.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/INSTALL
r89 r100 1 Please read this file thoroughly before you try to install and run things. It 2 will safe you many headaches. Installation is not really difficult, but there 3 are a few pitfalls. 4 5 COMPILATION AND INSTALLATION 6 ============================ 7 1 8 Basic installation is uncomplicated. Run 'make all', followed by an optional 2 9 'make install'. Everything is compiled using the Makefile in the root of … … 39 46 actually use these modules, you have a problem; they can not coexist 40 47 with Simon's modules. Theoretically, you should be able to replace 41 the old modules with the new stuff in our i2c directory, recompile42 the kernel, and then compile our modules with I2C=0. If you try48 the old modules in the kernel tree with the new stuff in our i2c directory, 49 recompile the kernel, and then compile our modules with I2C=0. If you try 43 50 this, please share the results with us! 44 51 … … 49 56 be unable to insert the modules at all, or you can expect strange 50 57 behaviour (probably leading to crashes). 58 59 60 TESTING AND RUNNING 61 =================== 51 62 52 63 When you have compiled this package, you will be left with a lot of modules. … … 65 76 66 77 If you have installed the modules, as described within doc/modules, you can 67 do 'modprobe piix4 && modprobe lm78 && modprobe i2c-proc' (the last is 68 optional) from any directory to reach the same situation. 78 do 'modprobe isa && modprobe piix4 && modprobe lm78 && modprobe i2c-proc' 79 (the last is optional) from any directory to reach the same situation. 80 81 This package also contains a library of functions which can be used to 82 access sensor data in a more programmer-friendly way. It will be built as 83 both a shared and a static library, and installed in your LIB directory 84 (normally /usr/local/lib). It needs a configuration file, which is usually 85 called 'sensors.conf', and can be placed in /etc, /usr/lib/sensors, 86 /usr/local/lib/sensors, /usr/lib, or /usr/local/lib. [NOTE: No real 87 standard config file is written yet. A very simple example can be found in 88 the prog/sensors directory.] 69 89 70 90 Where version 1 of this package had the human-readable /proc/sensors file, 71 this version will include a user-space program which gathers all data 72 and displays it in a comparable format. Regrettably, this program is not 73 yet finished. To understand the files that are present now, read doc/lm78, 74 doc/lm75 etc. 91 this version includes a user-space program which gathers all data 92 and displays it in a comparable format. This program is called 'sensors'. 93 Everybody can use it to read sensors values; only root can use it to 94 set minimum and maximum values [NOTE: not yet implemented] 95 96 If you want to run 'sensors' without installing the package, you must 97 use the following command to make it able to find its shared library: 98 (bash) export LD_LIBRARY_PATH=/WHEREVER/lm_sensors-2.X.Y/lib:$LD_LIBRARY_PATH 99 (tcsh) setenv LD_LIBRARYPATH /WHEREVER/lm_sensors-2.X.Y/lib:$LD_LIBRARY_PATH 100 Replace /WHEREVER/lm_sensors-2.X.Y with the base directory of the package 101 source code. 75 102 76 103 One of the next releases of this package will have a user-space probe program, 77 104 which tells you which chips and busses are present, and which modules you 78 105 will have to load. At this moment, just try to load the modules; if no chip 79 or bus is detected, the module will fail to insert. 106 or bus is detected, the module will fail to insert. [NOTE: not true for 107 the bit-lp.o and bit-elv.o drivers. Don't try them without expecting 108 fake devices] 80 109 81 Please examine the files in the doc subdirectory for more information, or 82 try to mail us at <lm78@stimpy.netroedge.com>. Good luck! 110 Please examine the files in the doc subdirectory for more information, 111 especially about individual driver. You can always mail us at 112 <lm78@stimpy.netroedge.com>. Alternatively, consider useing the (free) 113 support site at http://www.netroedge.com/~lm78/support.html. Good luck! lm-sensors/trunk/README
r57 r100 3 3 a few changes compared with 1.x.y versions; read doc/version-2 for the 4 4 most interesting ones. 5 6 5 7 6 WARNING! This is a BETA release. It is not compatible with any programs … … 13 12 good and bad, regarding this package with us at <lm78@stimpy.netroedge.com>. 14 13 14 WARNING! If you downloaded this package through our CVS archive, you walk 15 the cutting edge. Things may not even compile! On the other hand, you will 16 be the first to profit from new drivers and other changes. Have fun! 17 15 18 As a rule of thumb: if you have a PIIX4 with LM78/79 and LM75 chips, things 16 19 should run without problem. The GL518 driver is completely untested. All 17 20 supporting modules in the src directory should work without problem. If 18 21 you have a VIA chipset, we would like to hear whether you can access the 19 SMBus with it - this is not very well tested either. If you have a Winbond20 chip, use the LM78/LM75 drivers until a specific Winbond driver is written.22 SMBus with it - this is not very well tested either. The new Winbond driver 23 should basically work, though not all functionality may be present yet. 21 24 If you have a LM80, you are out of luck at this moment. 22 25 lm-sensors/trunk/prog/sensors/main.c
r99 r100 118 118 int main (int argc, char *argv[]) 119 119 { 120 int c ;120 int c,res; 121 121 122 122 struct option long_opts[] = { … … 149 149 } 150 150 open_config_file(); 151 exit(0);152 }153 151 154 155 156 /* 157 if ((res = sensors_init(stdin))) { 152 if ((res = sensors_init(config_file))) { 158 153 if (res == SENSORS_ERR_PROC) 159 154 fprintf(stderr, … … 164 159 exit(1); 165 160 } 166 for (i = 0; i < sensors_proc_bus_count; i++)167 printf("%d: %s %s\n",sensors_proc_bus[i].number,168 sensors_proc_bus[i].adapter,sensors_proc_bus[i].algorithm);169 161 } 170 171 */
