On Sun, 14 Mar 1999, ^Mr^ wrote:
> i've done both ... the compile seemed okay , but when i reboot , i see
> something like finding module dependencies ...
> /lib/modules/2.0.36/appletalk.o: some error ..
> when i do a depmod -a ... i'll get a
> insmod:/lib/modules/2.0.36/appletalk.o :
> unresolved symbol ..

        Actually it's the same problem.  depmod is run at boot time
normally.  I'm not so sure if this is necesary.  I mean you do something
like:
# make modules
# make modules_install
# depmod -a
        Than you can comment out the depmod -a line.  It is found in
/etc/rc.d/rc.sysinit for RH (and Caldera I believe) and I guess it is in
/etc/rc.S for SW.
        The reason for that line is exaplained in the depmod man page.
The way I see it, this is a useful thing to have it when you make the
first steps in the Linux world.  After some time, this is just taking up
time at boot time.  So if you remeber the above sequence (to run depmod
just after installing) you don't need to have it at boot time.
        Now, back at your problem.  `make modules_install` updates the
files in /lib/modules/<kernel_version>.  This means it doesn't remove the
old modules.  So you have modules that are useless for your particular
system.  This way you will save some space as well.  To make sure, first
move that directory recursively, than install the modules.  If all goes
well, you can remove the modules installed by the distribution as well as
their 'general purpose' kernel.  Because you will use (normally) only your
customized kernels from now on.  But keep for a while the old kernel and
modles just in case.
        Another thing to mention.  The above things are needed when
compiling the same kernel and module version with that initial
distribution kernel.  If you install the sources for another kernel (older
or newer) you don't need to to move the contents of /lib/modules/<kernel
version>.  Also remember that if you compile a different version of the
kernel (different from the one that is already running) you will have to
give depmod the version.  For example if you have kernel 2.0.30 and you
just compiled 2.0.36 than `depmod -a` will have effect for
/lib/modules/2.0.30 which is useless.  So you'll have to run `depmod -a
2.0.36` in order to make /lib/modules/2.0.36/modules.dep.
 
> ps ... after i see IPX loaded , i don't see the appletalk getting loaded
> anymore ... at least that  seems to work ..

        If you don't use IPX, than do the same thing as appletalk - the
solution works the same.

        Raider
--
                ``Liberate tu-temet ex inferis''

Reply via email to