Gentoo Archives: gentoo-dev

From: Dave Bresson <david.bresson@××××.edu>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] module dependency issues with new kernel
Date: Tue, 06 Feb 2001 21:16:51
Message-Id: Pine.GSO.4.32.0102062314540.18862-100000@mars.its.yale.edu
In Reply to: Re: [gentoo-dev] module dependency issues with new kernel by 320095285153-0001@t-online.de (Achim Gottinger)
1 On Wed, 7 Feb 2001, Achim Gottinger wrote:
2
3 > Dave Bresson wrote:
4 >
5 > > So i decided to switch to the new 2.4.0.11-rc3 kernel, not only because of
6 > > the few improvements, but also i just prefer to make my own, slimmed down,
7 > > more optimized kernel for my machine. Anyway, i merged the linux source
8 > > of the kernel in question from portage, and all was fine. I then did a
9 > > 'make menuconfig', then a 'make bzImage', 'make modules', and 'make
10 > > modules_install'. Now i know i didn't include or exclude anything i
11 > > shouldn't have (i've rolled my own kernel plenty of times), however when
12 > > booting with my new kernel i get "Error configuring module dependencies."
13 > > As such, the modules don't work (most importantly my ethernet driver). I
14 > > know the drivers compiled and installed in the right spot, since i can
15 > > manually do an 'insmod' for my net driver, and then restart the inet
16 > > script. So there must be some sort of configuration issue going on i
17 > > don't know about. Here a sample of some of the boot errors from
18 > > /var/log/boot:
19 > >
20 > > Calculating kernel module dependencies...
21 > > depmod: *** Unresolved symbols in
22 > > /lib/modules/2.4.1-pre8/kernel/drivers/char/pc
23 > > mcia/serial_cb.o
24 > > depmod: *** Unresolved symbols in
25 > > /lib/modules/2.4.1-pre8/kernel/drivers/char/pc
26 > > mcia/serial_cs.o
27 > > depmod: *** Unresolved symbols in
28 > > /lib/modules/2.4.1-pre8/kernel/drivers/isdn/av
29 > > mb1/avm_cs.o
30 > > depmod: *** Unresolved symbols in
31 > > /lib/modules/2.4.1-pre8/kernel/drivers/md/line
32 > > ar.o
33 > > depmod: *** Unresolved symbols in
34 > > /lib/modules/2.4.1-pre8/kernel/drivers/md/raid
35 > > 0.o
36 > >
37 > > [...]
38 > >
39 > > Auto-generating 2.4.0-ac11 modules.conf...
40 > > modprobe: Can't open dependencies file /lib/modules/2.4.0-ac11/modules.dep
41 > > (No such file or directory)
42 > >
43 > > And that about ends the errors. Well, right after that it tries to insert
44 > > the net driver, but fails. You get the drift. Anyway, it looks like from
45 > > the errors that it's still trying to load the modules my old kernel used,
46 > > but from my new kernel's mod directory (where they don't exist, since i
47 > > didn't need them for my new kernel). However, i still have the same net
48 > > module for both kernels, and even that didn't work. Something is
49 > > definitely wrong. Somewhere along the line i must've forgotten something
50 > > neccessary to configure the correct module dependencies and such. Could
51 > > this have anything to do with the discussed 'depmod -a' call from one of
52 > > the other threads on the list? Since Pete just put that in, i doubt the
53 > > ebuild script i used did this (the one i had was from this morning).
54 > > Anyway, does anyone know what might have gone wrong here?
55 > >
56 > > thanks,
57 >
58 > Hmm thats what I said to pete before the depmod he added to the kernel-ebuild
59 > does not work.
60 >
61 > Do you have /lib/modules/2.4.0-ac11/modules.dep?
62 >
63 > If so take a look into it.
64 >
65 > There muste be some wrong path's tha point to /lib/modules/2.4.1-pre8
66 >
67 > change them to .../2.4.0-ac11 and rerun
68 >
69 > depmod -a
70 >
71 > then things should worke fine again.
72 >
73
74
75 Hmm...well, i had a look at /lib/modules/2.4.0-ac11/modules.dep , and it
76 turns out that it was totally empty. That's a definite problem. So on a
77 whim, i did a 'depmod -a', and suddenly i had a modules.dep that was no
78 longer empty. I rebooted, and all was fine. Weird. Anyway, it works
79 fine now.
80
81
82
83 dave