[linux-cifs-client] Re: Howto build cifs module kernel only
Jérôme Warnier
jwarnier at beeznest.net
Mon Jun 26 11:08:09 GMT 2006
Le dimanche 25 juin 2006 à 23:09 -0500, Steven French a écrit :
> > I would like to build a new version of the cifs module kernel without
> > rebuilding the whole kernel. How am I supposed to do that?
> > My experience level is: experienced UNIX/Linux sysadmin ready to look or
> > patch makefiles, but which don't know in which makefile to look for in
> > the Linux sources.
> >
> > More specifically, I would be happy to use the Linux headers package
> > related to my kernel to rebuild the new cifs module on my Debian Sarge
> > (kernel 2.6.8 if it matters).
> >
> > Thanks
>
> 1) download new cifs (e.g. to ~/cifs-2.6-for-old-kernels)
> 2) cd to the root of your kernel headers (e.g.
> /usr/src/linux-2.6.8-something)
> 3) make M=~/cifs-2.6-for-old-kernels/fs/cifs
> 4) if the build worked as expected then "/sbin/insmod
> ~/cifs-2.6-for-old-kernels/fs/cifs/cifs.ko" (probably have to be root)
> 5) if you want to make this automatic you can copy the new cifs.ko to
> /lib/modules/<kernel version>/kernel/fs/cifs/cifs.ko after first saving
> your existing version of that file
And what about running depmod? Isn't it required?
I wrote an article with all this in here:
http://glasnost.beeznest.org/articles/340
Many thanks
--
Jérôme Warnier <jwarnier at beeznest.net>
BeezNest
More information about the linux-cifs-client
mailing list