Gentoo Archives: gentoo-dev

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

Replies

Subject Author
Re: [gentoo-dev] kernel source for gentoo AGottinger@t-online.de (Achim Gottinger)