Gentoo Archives: gentoo-dev

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

Replies

Subject Author
Re: [gentoo-dev] module dependency issues with new kernel 320095285153-0001@t-online.de (Achim Gottinger)
Re: [gentoo-dev] module dependency issues with new kernel Dave Bresson <david.bresson@××××.edu>