Gentoo Archives: gentoo-dev

From: Collins Richey <erichey2@××××.com>
To: gentoo-dev@××××××××××.org
Subject: Re: [gentoo-dev] kernel 2.4.10 Unresolved symbols
Date: Sat, 29 Sep 2001 08:17:58
Message-Id: 20010929083123.0010e53e.erichey2@home.com
In Reply to: RE: [gentoo-dev] kernel 2.4.10 Unresolved symbols by Joe DeRosa
1 On Sat, 29 Sep 2001 09:51:19 -0400 Joe DeRosa <derosa@×××××××××.net>
2 wrote:
3
4 > Try this,
5 > Build a new bzImage and install it in your boot partition. This
6 > image
7 > must contain all you need without modules to get the basic system up
8 > and
9 > running IE all scsi/ide drivers and filesystems. Make modules, but
10 > don't
11 > do a modules_install yet.
12 > Reboot using the new kernel
13 > Then do a modules_install
14 > What is happening, and I'm not sure why is the depmod is trying to
15 > find
16 > dependencies from the old kernel module tree.
17 >
18 > This worked for me.
19 >
20 > Joe
21 >
22 > -----Original Message-----
23 > From: gentoo-dev-admin@××××××××××.org
24 > [mailto:gentoo-dev-admin@××××××××××.org] On Behalf Of Dan Nelson
25 > Sent: Saturday, September 29, 2001 1:37 AM
26 > To: gentoo-dev@××××××××××.org
27 > Subject: [gentoo-dev] kernel 2.4.10 Unresolved symbols
28 >
29 > I am compiling kernel 2.4.10 and getting the following Unresolved
30 > symbol
31 >
32 > errors while doing the make modules_install:
33 >
34 > if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.10;
35 > fi
36 > depmod: *** Unresolved symbols in
37 > /lib/modules/2.4.4-ac9/kernel/drivers/char/agp/agpgart.o
38 > depmod: contig_page_data_R4f152932
39 > depmod: pm_register_R8dbab11c
40 > depmod: pm_unregister_all_R9c0ba5b2d
41 >
42 > There are more but they are all the same. I am attempting to update
43 > to
44 > this
45 > kernel on a 1.0 rc5 box.
46 >
47
48 I don't know wheter this is your problem or not, but I've always found
49 this sequence of events to be necessary for a clean kernel/modules
50 apply
51
52 1. Put the linux source somewhere like your home directory. If you
53 untar it yourself, after it's untarred in your home directory, mv
54 linux linux-kernel_release (eg linux-2.4.10).
55
56 2. su (not strictly necessary for everything below, but I do
57 everything from root mode).
58
59 3. Rename your current modules directory to something else, eg mv
60 /lib/modules/linux-2.4.x /lib/modules/2.4.x-old. Otherwise you will
61 have problems.
62
63 4. Do the usual sequence (use a script if you have it)
64 make mrproper (I've had mixed results without this, even on
65 virgin kernel source)
66 make whatever to edit the kernel config
67 make dep
68 make clean (maybe not necessary, but do it anyway)
69 make bzImage
70 make modules
71 make modules_install
72
73 5. Now reverse the rename of you old modules (3 above). You will
74 already have a new modules directory corresponding to your new kernel.
75
76 6. Copy over your bzImage to your /boot directory with a new name
77 (don't overlay your working kernel).
78
79 7. Do the ususal grub or lilo work to make the new kernel bootable.
80
81 Unless there are problems with the kernel source itself (1 out of 30
82 times I've done this), this procedure always works for me.
83
84 Good luck. I'm waiting for the ebuilds to stabilize before I try
85 2.4.10.
86
87 --
88 Collins Richey
89 Denver Area
90 gentoo_rc6 xfce+sylpheed