[nmglug] kernel modules,

Karl Hegbloom karlheg at laclinux.com
Sat May 7 10:52:15 PDT 2005


On Sat, 2005-05-07 at 11:10 -0600, Andres Paglayan wrote:
> Finally I have it running,
> had to download the source from other place, for any estrange reason the 
> Debian source wasn't working,

With the Debian source, you need the 'kernel-tree' package that matches
your running kernel, as well as the module source package, and
'kernel-package'.  After you install them, you "cd /usr/src", and then
unpack them right there.  The modules will unpack into "modules/NAME",
and the kernel into "kernel-source-VERSION/".

Next, "cd" into the kernel souce, and "cp /root/config-VERSION .config",
then "make-kpkg clean".  VERSION is the part after the Linux version
numbers in "uname -r".  Now run:

 make-kpkg --initrd --append-to-version=VERSION configure modules_image

That causes it to run "make oldconfig" and set up the kernel source so
that it's configured the same as your running kernel.  It then compiles
the module source, and creates a .deb package of the compiled module.
Install that, and you're all set.

Karl.






More information about the nmglug mailing list