Re: loadable modules enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



RH 7.1 out of the box does not have a .config in the kernel directory.
Make xconfig will not know what options had been used to compile the
running kernel. Modules must be compiled with the same compile options
and same compiler version as the kernel they will be loaded into.

Therefore, if you want to compile a module for RH 7.1, you must
recompile the kernel and the modules, install the new kernel and
modules, and finally re-boot with the new kernel. Change the
EXTRAVERSION in the Makefile first so you don't clobber your RH kernel,
just in case you make a mistake.

That's for modules in the kernel tree. If you have source for a module
separate from the kernel tree (such as videodevX), you need to build and
boot your own kernel/modules before building and installing the external
module.

Going through all the options on make xconfig is really painful.
Fortunately, RH provides some example configurations in the configs
sub-directory. Copy one of those to the main kernel source directory as
the file ".config", then do make xconfig.

Once you've got your own kernel running, you can build and install
modules to your heart's content without rebooting. Each time you make a
new kernel you should recompile your modules.

Bill.


Steven Noble wrote:
> 
> run \'make xconfig" ... brings up a gui version of make config.  Then
> you can add whatever features you want and leave that rest untouched.  I
> believe everything you want is under "Multimedia Devices ->
> Video4Linux."  Then set what you want to "m."  Forget about recompiling
> the kernel.  You don't have to.  just run "make dep" then "make modules"
> then switch to root (everything prior doesn't need root so don't use it)
> with "su" then "make modules_install" and your flying.  Now as root run
> depmod and all the modprobe stuff should work.  You don't even have to
> restart.





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux