Gentoo Archives: gentoo-dev

From: AGottinger@t-online.de (Achim Gottinger)
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] kernel source for gentoo
Date: Sat, 19 May 2001 12:22:48
Message-Id: 3B06B324.11D03C37@gentoo.org
In Reply to: Re: [gentoo-dev] kernel source for gentoo by Collins Richey
1 Collins Richey wrote:
2 >
3 > On Fri, 18 May 2001 20:40:53 -0600 Collins Richey <erichey2@××××.com>
4 > wrote:
5 >
6 > > On Fri, 18 May 2001 19:08:26 +0200 AGottinger@××××××××.de (Achim
7 > > Gottinger)
8 > > wrote:
9 > >
10 > > > Collins Richey wrote:
11 > > > >
12 > > > > On Fri, 18 May 2001 01:44:52 +0200 AGottinger@××××××××.de (Achim
13 > > > Gottinger)
14 > > > > wrote:
15 > > > >
16 > > > > > Collins Richey wrote:
17 > > > > > >
18 > > > > > > On Sun, 13 May 2001 16:08:07 +0200 AGottinger@××××××××.de (Achim
19 > > > > > Gottinger)
20 > > > > > > wrote:
21 > > > > > >
22 > > > > > > > Collins Richey wrote:
23 > > > > > > > >
24 > > > >
25 > > > > > > > > The kernel you supply, for example, has no sound modules
26 > > > compiled,
27 > > > > > and
28 > > > > > > > I would like to recompile for sound support (esssolo1.o and
29 > > > > > soundcore.o
30 > > > > > > > are needed) without breaking anything else.
31 > > > > > > >
32 > > > > > > > (The default kernel contains all alsa sound modules)
33 > > > > > > >
34 > > > > > >
35 > > > > > > fyi, this doesn't do much good unless you have a sound card that
36 > > > works
37 > > > > > with
38 > > > > > > als.
39 > > > > > >
40 > > > > > > > Current kernel source poackage is broken, eigher use
41 > > > > > > > linux-source-2.4.4-rx.ebuild or
42 > > > > > > > use a default kernel and run a manual config inbetween.
43 > > > > > > >
44 > > > > > > > cd /usr/portage/sys-kernel/linux
45 > > > > > > > ebuild linux-2.4.4.5.ebuild unpack
46 > > > > > > > cd /tmp/portage/linux-2.4.4.5/work/linux
47 > > > > > > > make menuconfig
48 > > > > > > > cd /usr/portage/sys-kernel/linux
49 > > > > > > > ebuild linux-2.4.4.5.ebuild merge
50 > > > > > > >
51 > > > > > > >
52 > > > > > >
53 > > > > > > As I alluded to earlier, it isn't a really good idea to overwrite
54 > > > the
55 > > > > > > working kernel. Fortunately I saved the old kernel and modules.
56 > > > The
57 > > > > > only
58 > > > > > > change I made was to add the esssolo1 module, but the new kernel
59 > > > came
60 > > > > > up
61 > > > > > > with modules problems and no working eth0.
62 > > > > > >
63 > > > > > > I think I'll try standard kernel build procedures from the
64 > > > > > > /tmp/portage/linux-2.4.4.5/work/linux directory with all your
65 > > > patches
66 > > > > > > applied.
67 > > > > >
68 > > > > > Hi Collins,
69 > > > > >
70 > > > > > I updated the kernel packages yesterday, you can now use
71 > > > > > linux-sources-2.4.4.9
72 > > > > >
73 > > > > > If you want the default configuration copy
74 > > > > >
75 > > /usr/portage/sys-kernel/linux-sources/files/2.4.4-ac9/config.bootcomp
76 > > > to
77 > > > > > /usr/src/linux/.config before you run make {x,menu}config.
78 > > > > >
79 > > > > > This kernel package uses the following USE variables for extras
80 > > "lvm
81 > > > > > lm_sensors pcmcia-cs alsa".
82 > > > > > Add the ones you want top the USE variable in /etc/make.conf.
83 > > > > >
84 > > > > > After you have build the kernel you can build the extras modules
85 > > and
86 > > > > > utilities by installing
87 > > > > >
88 > > > > > linux-extras-2.4.4.9.ebuild.
89 > > > > >
90 > > > >
91 > > > > It doesn't work. I did the following
92 > > > >
93 > > > > cd /usr/portage/sys-kernel/linux-sources
94 > > > > ebuild linux-2.4.4.9.ebuild unpack
95 > > > > cp
96 > > > /usr/portage/sys-kernel/linux-sources/files/2.4.4-ac9/config.bootcomp
97 > > > > /usr/src/linux/.config
98 > > > > cd /tmp/portage/linux-2.4.4.9/work/linux
99 > > > > tried make xconfig (error option not found)
100 > > > > make menuconfig (added esssolo1 and corrected stuff for
101 > > > ide-scsi)
102 > > > > cd /usr/portage/sys-kernel/linux-sources
103 > > > > ebuild linux-2.4.4.9.ebuild merge
104 > > > >
105 > > > > When I booted from the new kernel, eth0 would not start. I
106 > > discovered
107 > > > that
108 > > > > the procedure had added empty /etc/modules/2.4.4-ac5 for 2.4.4-ac5
109 > > but
110 > > > no
111 > > > > /lib/modules/2.4.4-ac5. Only /etmodules/2.4.4-ac3 and
112 > > > > /lib/modules/2.4.4-ac3 contain data. Since the kernel calls itself
113 > > > -ac5,
114 > > > > modprobe, etc. will not use any of the modules.
115 > > >
116 > > > Hmm, there seems to be a bug in modultils.
117 > > > /lib/modules/[uname-r]/modules.dep is not generated correct.
118 > > >
119 > > > Remove /etc/modules/[unname -r] and /etc/modules.conf and run
120 > > > /etc/rc.d/init.d/modules. This will generate those files again.
121 > > >
122 > > > I'm working on that bug here at the moment.
123 > > >
124 > >
125 > > That may be a problem, too, but I don't think that will fix my problem.
126 > > Something went wrong with the kernel + modules ebuild. The normal output
127 > > of the kernel sequence, ie make mrproper, make xxxconfig, make deps make,
128 > > make modules and make modules_install is a bzImage (ebuild got that
129 > > right)
130 > > and a modules directory /lib/module/kernelname (ebuild did not produce
131 > > this), so the merge really failed even though it said it was complete.
132 > > It
133 > > won't do me any good to rebuild the modules.conf etc - the modules
134 > > themselves are missing in action.
135 > >
136 >
137 > FYI. I've found part of the problem with your kernel ebuild. I don't know
138 > whether the problen is yours or modutils. Here's what I did to get a
139 > working kernel
140 >
141 > cd /usr/portage/sys-kernel/linu
142 > ebuild linux-2.4.4.5.ebuild unpack
143 > cp -a /tmp/portage/linux-sources-2.4.4.9/work/linux-2.4.4-ac9 /home/collins
144 > cd /home/collins/linux-2.4.4-ac9
145 > make mrproper
146 > make menuconfig
147 > loaded
148 > /usr/portage/sys-kernel/linux-sources/files/2.4.4-ac9/config.bootcomp
149 > modified to add support for esssolo1 and altered a few SCSI settings to get
150 > my CDRW to work
151 > mv'd the /usr/modules/2.4.4-ac3 directory to another name
152 > make dep && make bzImage && make modules && make modules_install
153 > Everything successful, except at the end of make modules install
154 > the script attempted to write to /lib/modules/2.4.4-ac3 !!! and failed
155 > (even though everything else was done for 2.4.4-ac9)
156 > Created an empty 2.4.4-ac3 directory
157 > reran make modules_install
158 > The script created the mod*** entries in 2.4.4-ac3 instead of
159 > in 2.4.4-ac9 where they belong
160
161 yes that is a modutils problem. I'm currently testing a new modules
162 ini.d script that should do a workaround for that prob.
163
164 thanks for the detailed description.
165
166 bye achim~

Replies

Subject Author
Re: [gentoo-dev] kernel source for gentoo Collins Richey <erichey2@××××.com>