Gentoo Archives: gentoo-dev

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