Module Dependency

Bryan D. Brown yellowdog-general@lists.terrasoftsolutions.com
Tue Oct 29 16:00:01 2002


Stefan, thanks for the response.

Well, I think I found part of the problem, in that the file 
/etc/yaboot.conf simply is not there. The files in the /boot 
directory appear to be as you specified.

I should mention that I am running YDL 2.3 on an old world mac 
(PowerMac 9500/150).

Bryan





At 13:56 -0800 on 2002-10-29 Bryan D. Brown wrote:
  >
  > [root@server root]# depmod -a
  > depmod: Can't open /lib/modules/2.4.18-0.8a/modules.dep for writing
  >
  > I went ahead and looked and the 2.4.18-0.8a is not there, but rather
  > the directory for 2.4.19-4a.

For some reason, it looks like you boot kernel 2.4.18-0.8a, but the
installed modules are actually for 2.4.19-4a.  Since you have the
modules installed for this one, you probably have the 2.4.19-4a kernel
as well, but the symlinks and/or the yaboot.conf file are wrong.
Under this assumption, here is my take at fixing the problem (which is
by the way kind of a wild guess).

Check /etc/yaboot.conf and see what is the image that you boot by
default.  You should see something like this:

     default=<some string>

and later on:

     image=/boot/vmlinux
             label=<some string>
             root=/dev/hda14

or

     image=/boot/vmlinux-2.4.18-0.8a
             label=<some string>
             root=/dev/hda14

In the first case (the image being /boot/vmlinux), which is the most
probable, make sure that you have the files

   vmlinux-2.4.19-4a
   System.map-2.4.19-4a

as well as the following symbolic links:

   vmlinux     pointing to vmlinux-2.4.19-4a
   System.map  pointing to System.map-2.4.19-4a

In the very unlikely case that you do not have those files
(vmlinux-2.4.19-4a and System.map-2.4.19-4a that is), install the
kernel-2.4.19-4a.rpm from the (YDL 2.3) Install CD and then create the
symlinks.

Once you have this configuration in place, reboot and you should be
back in business.

In the second case, i.e., when you have
image=/boot/vmlinux-2.4.18-0.8a for your default label in
/etc/yaboot.conf, replace this line with

     image=/boot/vmlinux-2.4.19-4a

and then run

     ybin -v

and then reboot.

Of course, make sure that the files vmlinux-2.4.19-4a and
System.map-2.4.19-4a are present in /boot, as above.

Hope this helps,
Stefan

-- 
If it was so, it might be; and if it were so, it would be; but as
it isn't, it ain't. That's logic.
     --Lewis Carroll, Through the Looking-Glass
_______________________________________________
yellowdog-general mailing list
yellowdog-general@lists.terrasoftsolutions.com
http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general