[linux-cifs-client] Re: Howto build cifs module kernel only
Steven French
sfrench at us.ibm.com
Mon Jun 26 13:42:06 GMT 2006
If you are updating an existing cifs.ko (cifs is usually built by default
as a module) in /lib/modules ... - then you should not need to update
depmod but if you want the cifs module in a different directory to be
loaded automatically it may be helpful
(http://www.netadmintools.com/html/8depmod.man.html)
Steve French
Senior Software Engineer
Linux Technology Center - IBM Austin
phone: 512-838-2294
email: sfrench at-sign us dot ibm dot com
Jérôme Warnier <jwarnier at beeznest.net>
06/26/2006 06:08 AM
To
Steven French/Austin/IBM at IBMUS
cc
linux-cifs-client at lists.samba.org
Subject
Re: Howto build cifs module kernel only
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