- 07/09/00 22:35:42 (13 years ago)
- 3 modified
r3479 r3484 71 71 is found below. Most important are the variables that determine where 72 72 your kernel is located (LINUX=/usr/src/linux) and where you want to 73 install your modules (MODDIR=/lib/modules/KERNELVERSION/ extra/misc) and 73 install your modules (MODDIR=/lib/modules/KERNELVERSION/misc) and 74 74 header files (LINUX_INCLUDE_DIR=/usr/local/include/linux). You can see 75 75 that the installation locations are choosen in such a way that they … … 134 134 invocation should determine this automatically, so you should not 135 135 have to bother with this. 136 MODDIR (both) default: /lib/modules/KERNELVERSION/ extra/misc) 136 MODDIR (both) default: /lib/modules/KERNELVERSION/misc) 137 137 The location where the kernel modules will be installed. 138 138 LINUX_INCLUDE_DIR (compilation option 1 only) default: /usr/local/include/linux … … 146 146 =========================================== 147 147 148 Once you have installed the kernel modules, you will have to make sure 149 they are found. 150 151 First, check whether your modutils will look in the right directory at 152 all. If you used build system 1, you will probably have to add lines 153 to /etc/conf.modules or /etc/modules.conf (use the one that exists, or 154 take your pick): 155 (modules-2.0.0): 156 path[misc]=/lib/modules/current/extra/misc 157 (modutils-2.1.x): 158 path=/lib/modules/current/extra 159 This assumes /lib/modules/current will always be linked to the correct 160 modules tree. If not, you will have to change it as appropriate for 161 your system. 162 163 You may also have to add all default paths to this file. You can get 164 a list of them by doing a `modprobe -c', before and after your changes. 165 166 Next, you will have to run `depmod -a' to have them recognised. Most 148 Run `depmod -a' to have new modules them recognised. Most 167 149 distributions run this command when you boot, so if you were cross- 168 150 compiling, you can skip this step.
r3465 r3484 59 59 # This is the directory into which the modules will be installed. 60 60 # The magic invocation will return something like this: 61 # /lib/modules/2.2.15-ac9/ extra/misc 62 MODDIR := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'`/ extra/misc 61 # /lib/modules/2.2.15-ac9/misc 62 MODDIR := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'`/misc 63 63 64 64 # This is the directory into which the header files will be installed.
r3479 r3484 10 10 * Do a `make' followed by a `make install'. The warnings about .d 11 11 files at the start are harmless. 12 * Add the line 13 path=/lib/modules/current/extra 14 to /etc/conf.modules or /etc/modules.conf (whichever one exists) 15 Depending on your version of modutils, you may have to add all 16 default paths to it too. 17 12 * Make sure you do a `depmod -a'. 18 13 * That's all (but you need client drivers from some other source to do