diff --git a/doc/modules b/doc/modules index 964f58cd..395743d2 100644 --- a/doc/modules +++ b/doc/modules @@ -1,74 +1,15 @@ Installing Modules ================== -For 2.4+ kernels that use the new directory structure -under /lib/modules/x.y.z/ , -'make install' will install modules in the subdirectories -kernel/drivers/i2c and kernel/drivers/sensors. This puts -the modules in the same location as a kernel -'make modules_install' does so that there will not -be duplicate modules. - -For older kernels, 'make install' will install the modules -in the subdirectory misc . - -If the kernel headers for the kernel you are running are -not in /usr/src/linux, you should do -'make install LINUX=/path-to-linux-source', otherwise -the modules may get installed into the wrong -kernel version directory under /lib/modules. +'make install' will install the kernel modules modules in the +subdirectories /lib/modules/$version/kernel/drivers/i2c and +/lib/modules/$version/kernel/drivers/sensors. This puts the modules +in the same location as a kernel 'make modules_install' does so +that there will be no duplicate modules. If 'make install' fails, particularly on Mandrake kernels, -see FAQ #3.8. (fix MODPREF in the Makefile). - -After 'make install', you must do 'depmod'. - -If you have symbol errors, do 'depmod -e' to identify -the particluar modules with errors. Then see #3.9 in -the FAQ for additional assistance. +see FAQ #3.8 (fix MODPREF in the Makefile) and #3.9. For details on options that apply to most modules, see doc/chips/MODPARMS. For details on options specific to particular modules, see the documentation in doc/chips/ and doc/busses/. - - -Older documentation -------------------- - -The hardcore way is to insmod each of them by hand. This is not very -practical, though. It is better to install them in a subdirectory that -modprobe examines. /lib/modules/current/extra/misc comes to mind, or -perhaps /lib/modules/`uname -r`/extra/misc (depending on your distribution). -You need to add this path to your /etc/modules.conf (or /etc/conf.modules, -which file is used depends on your distribution): - (modules-2.0.0, modutils-2.3.x): - path[misc]=/lib/modules/current/extra/misc - (modutils-2.1.x): - path=/lib/modules/current/extra -Do always a `depmod -a' after changing either your configuration file or -changing a module in one of the module directories; you also need to do -a 'killall -HUP kerneld' if you still use kerneld (kernel 2.2.x usually -uses kmod); this command is probably not even needed for kerneld, so -don't worry about it too much). - -Now you can do 'modprobe lm78', and all dependent modules are loaded -automatically. You could, of course, add this statement (and related -statements for other drivers) somewhere in your rc files. But, most -distributions are set up to load automatically all files in the -'boot' directories on system start, so why not use this? The best -way to do this is to create directory /lib/modules/boot, and to -put *links* to the real modules in there. Why links? Well, by linking -to /lib/modules/current/whatever, this will function for any kernel -(provided /lib/modules/current is correctly set up to point to the -current kernel). So: - mkdir -p /lib/modules/boot - ln -s ../current/extra/misc/lm78.o /lib/modules/boot/lm78.o - # etc. - -It is also possible to specify default options, that you would normally -enter at the insmod command, in the configuration file. The syntax is -as follows: - options i2c-core debug=2 - -With the above, the managing of all those modules is suddenly no problem -at all! diff --git a/doc/progs b/doc/progs index 7bee8b34..ce5655f8 100644 --- a/doc/progs +++ b/doc/progs @@ -1,5 +1,5 @@ This is a list of additional programs, that may or may not be installed by -`make install', and that usually can be found in the `prog' directory of +`make install', and that can be found in the `prog' directory of this package. These programs are generally small utilities used for debugging, @@ -9,12 +9,6 @@ For more elaborate programs (for example, GUI sensor displays), see useful_addresses.html. -* doc/developers/editticket (written in shell, not installed) - Calls netscape to edit a specific support ticket. - -* doc/developers/readticket (written in shell, not installed) - Calls netscape to read a specific support ticket. - * prog/config/grab_busses.sh (written in bash and awk, not installed) This program helps you generate the `bus' statements for your configuration file. It read /proc/bus/i2c (or the file specified on the command-line), @@ -26,17 +20,15 @@ see useful_addresses.html. * prog/detect/i2cdetect (written in C, installed by 'make install') This program scans your complete I2C or SMBus adapter for connected devices. - Not all devices can be detected in this way, though; and it may hang your - bus. Syntax: - ./i2cdetect 0 - Here the '0' stands for the bus number (run i2cdetect with no arguments + Syntax: + i2cdetect 0 + Here the '0' stands for the bus number (run "i2cdetect -l" to list all installed busses). * prog/detect/sensors-detect (written in Perl, installed by 'make install') This program tries to detect the available SMBus adapters and the chips - connected to them and/or the ISA bus. It also generates modprobe lines - and module options. This program is interactive and will ask you about - all information it needs. + connected to them, as well as Super-I/O and misc chips. It also generates + modprobe lines and module options. This program is interactive. * prog/doc/doc-features.pl (written in Perl, not installed) This program is used to help us generate driver documentation; it scans @@ -52,35 +44,39 @@ see useful_addresses.html. ./doc-insmod.pl DRIVER * prog/dump/i2cdump (written in C, installed by 'make install') - This program dumps the registers of a I2C device that understands - the 'byte data' or 'word data' and block read SMBus protocols. + This program dumps the registers of an I2C device. Usual syntax: - ./i2cdump 0 0x49 b + i2cdump 0 0x4c b Here the '0' stands for the bus number (run i2cdump with no arguments to list all installed busses). '0x49' is the device address, and 'b' or 'w' stands for byte or word data. * prog/dump/i2cset (written in C, installed by 'make install') - This program is used to write the register of a I2C device. - Usual syntax: - ./i2cset bus device address data + prog/dump/i2cget (written in C, installed by 'make install') + These programs are used to write to or read from a register of an + I2C device. Usual syntax: + i2cset bus device address data + i2cget bus device address * prog/dump/isadump (written in C, installed by 'make install') - This program dumps the registers of LM78-like chips, or more - exactly, chips which use one I/O-port for its address and one as its - data register. Usual syntax: - ./isadump 0x295 0x296 + This program dumps the registers of ISA or Super-I/O chips. + Usual syntax: + isadump 0x295 0x296 + isadump -k 0x55 0x2e 0x2f -* prog/eeprom/decode-dimms.pl (written in Perl 5, installed by 'make install') - This program decodes the information generated by the `eeprom.o' module. - It will only work for the installed eeprom module from the src/ directory, - not for the old one in the i2c/drivers/ directory. +* prog/eeprom/decode-dimms.pl (perl script, installed by 'make install') + This program decodes the information found in a memory module SPD EEPROM. -* prog/eeprom/decode-vaio.pl (written in Perl 5, installed by 'make install') +* prog/eeprom/decode-vaio.pl (perl script, installed by 'make install') This program decodes the information in a Sony Vaio laptop identification eeprom at 0x57. +* prog/eeprom/ddcmon (perl script, installed by 'make install') + prog/eeprom/decode-edid.pl (perl script, installed by 'make install') + These programs decode the information found in a display EEPROM. They + require a bus driver for your video adapter, for DDC access to the display. + * prog/eepromer/eepromer (written in C, not installed) This program reads and writes eeproms. Danger: Do not use this to write your DRAM DIMM eeproms.