[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Black arts
> Does anyone know a good net.resource with instructions on adapting Linux
> drivers?
> I have an ethernet card with a module compiled for kernel 2.2.5, but have
> 2.2.17. I tried building a kernel with support for module versions and
> installed the module in /lib/modules/2.2.17/net. It still gave the same
> message of kernel/module version mismatch on boot (but it *did* find the
> module, I should note).
-------------------------------------------------------------
In Loadable modules support:
[*] Set version information on all symbols for modules
CONFIG_MODVERSIONS: Usually, modules have to be recompiled whenever you
switch
to a new kernel. Saying Y here makes it possible, and safe, to use the
same
modules even after compiling a new kernel; this requires the program
modprobe.
All the software needed for module support is in the modutils package
(check
the file Documentation/Changes for location and latest version).
NOTE: if you say Y here but don't have the program genksyms (which is
also
contained in the above mentioned modutils package), then the building of
your
kernel will fail. If you are going to use modules that are generated from
non-
kernel sources, you would benefit from this option. Otherwise it's not
that
important. So, N ought to be a safe bet.
So that may help if not already enabled.
>I also have the .c and .h files, so could build them into the kernel, or
>recompile the module, IF I knew how to work these files into the linux
>.config and Makefiles.
>Any suggestions?
You don't have a make file?
If you have just .c and .h files you might be able to put something
together based on:
http://www.linksys.com/support/support.asp?spid=25#module
The above URL is how to recompile the drivers for a network card, but
can be used as a template for other simple modules.