Changeset 4175
- Timestamp:
- 09/24/06 22:17:43 (2 years ago)
- Files:
-
- lm-sensors/trunk/doc/modules (modified) (1 diff)
- lm-sensors/trunk/doc/progs (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/doc/modules
r1353 r4175 2 2 ================== 3 3 4 For 2.4+ kernels that use the new directory structure 5 under /lib/modules/x.y.z/ , 6 'make install' will install modules in the subdirectories 7 kernel/drivers/i2c and kernel/drivers/sensors. This puts 8 the modules in the same location as a kernel 9 'make modules_install' does so that there will not 10 be duplicate modules. 11 12 For older kernels, 'make install' will install the modules 13 in the subdirectory misc . 14 15 If the kernel headers for the kernel you are running are 16 not in /usr/src/linux, you should do 17 'make install LINUX=/path-to-linux-source', otherwise 18 the modules may get installed into the wrong 19 kernel version directory under /lib/modules. 4 'make install' will install the kernel modules modules in the 5 subdirectories /lib/modules/$version/kernel/drivers/i2c and 6 /lib/modules/$version/kernel/drivers/sensors. This puts the modules 7 in the same location as a kernel 'make modules_install' does so 8 that there will be no duplicate modules. 20 9 21 10 If 'make install' fails, particularly on Mandrake kernels, 22 see FAQ #3.8. (fix MODPREF in the Makefile). 23 24 After 'make install', you must do 'depmod'. 25 26 If you have symbol errors, do 'depmod -e' to identify 27 the particluar modules with errors. Then see #3.9 in 28 the FAQ for additional assistance. 11 see FAQ #3.8 (fix MODPREF in the Makefile) and #3.9. 29 12 30 13 For details on options that apply to most modules, see 31 14 doc/chips/MODPARMS. For details on options specific to particular 32 15 modules, see the documentation in doc/chips/ and doc/busses/. 33 34 35 Older documentation36 -------------------37 38 The hardcore way is to insmod each of them by hand. This is not very39 practical, though. It is better to install them in a subdirectory that40 modprobe examines. /lib/modules/current/extra/misc comes to mind, or41 perhaps /lib/modules/`uname -r`/extra/misc (depending on your distribution).42 You need to add this path to your /etc/modules.conf (or /etc/conf.modules,43 which file is used depends on your distribution):44 (modules-2.0.0, modutils-2.3.x):45 path[misc]=/lib/modules/current/extra/misc46 (modutils-2.1.x):47 path=/lib/modules/current/extra48 Do always a `depmod -a' after changing either your configuration file or49 changing a module in one of the module directories; you also need to do50 a 'killall -HUP kerneld' if you still use kerneld (kernel 2.2.x usually51 uses kmod); this command is probably not even needed for kerneld, so52 don't worry about it too much).53 54 Now you can do 'modprobe lm78', and all dependent modules are loaded55 automatically. You could, of course, add this statement (and related56 statements for other drivers) somewhere in your rc files. But, most57 distributions are set up to load automatically all files in the58 'boot' directories on system start, so why not use this? The best59 way to do this is to create directory /lib/modules/boot, and to60 put *links* to the real modules in there. Why links? Well, by linking61 to /lib/modules/current/whatever, this will function for any kernel62 (provided /lib/modules/current is correctly set up to point to the63 current kernel). So:64 mkdir -p /lib/modules/boot65 ln -s ../current/extra/misc/lm78.o /lib/modules/boot/lm78.o66 # etc.67 68 It is also possible to specify default options, that you would normally69 enter at the insmod command, in the configuration file. The syntax is70 as follows:71 options i2c-core debug=272 73 With the above, the managing of all those modules is suddenly no problem74 at all!lm-sensors/trunk/doc/progs
r2572 r4175 1 1 This is a list of additional programs, that may or may not be installed by 2 `make install', and that usuallycan be found in the `prog' directory of2 `make install', and that can be found in the `prog' directory of 3 3 this package. 4 4 … … 9 9 see useful_addresses.html. 10 10 11 12 * doc/developers/editticket (written in shell, not installed)13 Calls netscape to edit a specific support ticket.14 15 * doc/developers/readticket (written in shell, not installed)16 Calls netscape to read a specific support ticket.17 11 18 12 * prog/config/grab_busses.sh (written in bash and awk, not installed) … … 27 21 * prog/detect/i2cdetect (written in C, installed by 'make install') 28 22 This program scans your complete I2C or SMBus adapter for connected devices. 29 Not all devices can be detected in this way, though; and it may hang your 30 bus. Syntax: 31 ./i2cdetect 0 32 Here the '0' stands for the bus number (run i2cdetect with no arguments 23 Syntax: 24 i2cdetect 0 25 Here the '0' stands for the bus number (run "i2cdetect -l" 33 26 to list all installed busses). 34 27 35 28 * prog/detect/sensors-detect (written in Perl, installed by 'make install') 36 29 This program tries to detect the available SMBus adapters and the chips 37 connected to them and/or the ISA bus. It also generates modprobe lines 38 and module options. This program is interactive and will ask you about 39 all information it needs. 30 connected to them, as well as Super-I/O and misc chips. It also generates 31 modprobe lines and module options. This program is interactive. 40 32 41 33 * prog/doc/doc-features.pl (written in Perl, not installed) … … 53 45 54 46 * prog/dump/i2cdump (written in C, installed by 'make install') 55 This program dumps the registers of a I2C device that understands 56 the 'byte data' or 'word data' and block read SMBus protocols. 47 This program dumps the registers of an I2C device. 57 48 Usual syntax: 58 ./i2cdump 0 0x49b49 i2cdump 0 0x4c b 59 50 Here the '0' stands for the bus number (run i2cdump with no arguments 60 51 to list all installed busses). … … 63 54 64 55 * prog/dump/i2cset (written in C, installed by 'make install') 65 This program is used to write the register of a I2C device. 66 Usual syntax: 67 ./i2cset bus device address data 56 prog/dump/i2cget (written in C, installed by 'make install') 57 These programs are used to write to or read from a register of an 58 I2C device. Usual syntax: 59 i2cset bus device address data 60 i2cget bus device address 68 61 69 62 * prog/dump/isadump (written in C, installed by 'make install') 70 This program dumps the registers of LM78-like chips, or more71 exactly, chips which use one I/O-port for its address and one as its72 data register. Usual syntax:73 ./isadump 0x295 0x29663 This program dumps the registers of ISA or Super-I/O chips. 64 Usual syntax: 65 isadump 0x295 0x296 66 isadump -k 0x55 0x2e 0x2f 74 67 75 * prog/eeprom/decode-dimms.pl (written in Perl 5, installed by 'make install') 76 This program decodes the information generated by the `eeprom.o' module. 77 It will only work for the installed eeprom module from the src/ directory, 78 not for the old one in the i2c/drivers/ directory. 68 * prog/eeprom/decode-dimms.pl (perl script, installed by 'make install') 69 This program decodes the information found in a memory module SPD EEPROM. 79 70 80 * prog/eeprom/decode-vaio.pl ( written in Perl 5, installed by 'make install')71 * prog/eeprom/decode-vaio.pl (perl script, installed by 'make install') 81 72 This program decodes the information in a Sony Vaio laptop 82 73 identification eeprom at 0x57. 74 75 * prog/eeprom/ddcmon (perl script, installed by 'make install') 76 prog/eeprom/decode-edid.pl (perl script, installed by 'make install') 77 These programs decode the information found in a display EEPROM. They 78 require a bus driver for your video adapter, for DDC access to the display. 83 79 84 80 * prog/eepromer/eepromer (written in C, not installed)
