From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=DATE_IN_PAST_12_24,DMARC_NONE, INVALID_DATE,MAILING_LIST_MULTI,NICE_REPLY_A autolearn=unavailable autolearn_force=no version=4.0.0 Received: from femail3.sdc1.sfba.home.com ([24.0.95.83]) by cvs.gentoo.org with esmtp (Exim 3.22 #1) id 1519IP-0006qG-00 for gentoo-dev@gentoo.org; Sat, 19 May 2001 10:09:37 -0600 Received: from k68pc2.home.pc ([65.6.118.16]) by femail3.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20010519160906.HNKE9215.femail3.sdc1.sfba.home.com@k68pc2.home.pc> for ; Sat, 19 May 2001 09:09:06 -0700 From: Collins Richey To: gentoo-dev@gentoo.org Subject: Re: [gentoo-dev] kernel source for gentoo Message-Id: <20010519101818.1b712248.erichey2@home.com> In-Reply-To: <20010518204053.422af17f.erichey2@home.com> References: <20010513070106.7a57bde7.erichey2@home.com> <3AFE9547.7B9189AC@gentoo.org> <20010517181422.078d0c99.erichey2@home.com> <3B046274.7BD9939C@gentoo.org> <20010518062148.2e657e18.erichey2@home.com> <3B05570A.4866E010@gentoo.org> <20010518204053.422af17f.erichey2@home.com> X-Mailer: Sylpheed version 0.4.66 (GTK+ 1.2.10; i586-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux development list List-Unsubscribe: , List-Archive: Date: Sat May 19 10:10:02 2001 X-Original-Date: Sat, 19 May 2001 10:18:18 -0600 X-Archives-Salt: fce76b81-f06b-413d-bdd6-6b20422367d5 X-Archives-Hash: 98c34f91859bb94e09cdb72636bd3d52 On Fri, 18 May 2001 20:40:53 -0600 Collins Richey wrote: > On Fri, 18 May 2001 19:08:26 +0200 AGottinger@t-online.de (Achim > Gottinger) > wrote: > > > Collins Richey wrote: > > > > > > On Fri, 18 May 2001 01:44:52 +0200 AGottinger@t-online.de (Achim > > Gottinger) > > > wrote: > > > > > > > Collins Richey wrote: > > > > > > > > > > On Sun, 13 May 2001 16:08:07 +0200 AGottinger@t-online.de (Achim > > > > Gottinger) > > > > > wrote: > > > > > > > > > > > Collins Richey wrote: > > > > > > > > > > > > > > > > > The kernel you supply, for example, has no sound modules > > compiled, > > > > and > > > > > > I would like to recompile for sound support (esssolo1.o and > > > > soundcore.o > > > > > > are needed) without breaking anything else. > > > > > > > > > > > > (The default kernel contains all alsa sound modules) > > > > > > > > > > > > > > > > fyi, this doesn't do much good unless you have a sound card that > > works > > > > with > > > > > als. > > > > > > > > > > > Current kernel source poackage is broken, eigher use > > > > > > linux-source-2.4.4-rx.ebuild or > > > > > > use a default kernel and run a manual config inbetween. > > > > > > > > > > > > cd /usr/portage/sys-kernel/linux > > > > > > ebuild linux-2.4.4.5.ebuild unpack > > > > > > cd /tmp/portage/linux-2.4.4.5/work/linux > > > > > > make menuconfig > > > > > > cd /usr/portage/sys-kernel/linux > > > > > > ebuild linux-2.4.4.5.ebuild merge > > > > > > > > > > > > > > > > > > > > > > As I alluded to earlier, it isn't a really good idea to overwrite > > the > > > > > working kernel. Fortunately I saved the old kernel and modules. > > The > > > > only > > > > > change I made was to add the esssolo1 module, but the new kernel > > came > > > > up > > > > > with modules problems and no working eth0. > > > > > > > > > > I think I'll try standard kernel build procedures from the > > > > > /tmp/portage/linux-2.4.4.5/work/linux directory with all your > > patches > > > > > applied. > > > > > > > > Hi Collins, > > > > > > > > I updated the kernel packages yesterday, you can now use > > > > linux-sources-2.4.4.9 > > > > > > > > If you want the default configuration copy > > > > > /usr/portage/sys-kernel/linux-sources/files/2.4.4-ac9/config.bootcomp > > to > > > > /usr/src/linux/.config before you run make {x,menu}config. > > > > > > > > This kernel package uses the following USE variables for extras > "lvm > > > > lm_sensors pcmcia-cs alsa". > > > > Add the ones you want top the USE variable in /etc/make.conf. > > > > > > > > After you have build the kernel you can build the extras modules > and > > > > utilities by installing > > > > > > > > linux-extras-2.4.4.9.ebuild. > > > > > > > > > > It doesn't work. I did the following > > > > > > cd /usr/portage/sys-kernel/linux-sources > > > ebuild linux-2.4.4.9.ebuild unpack > > > cp > > /usr/portage/sys-kernel/linux-sources/files/2.4.4-ac9/config.bootcomp > > > /usr/src/linux/.config > > > cd /tmp/portage/linux-2.4.4.9/work/linux > > > tried make xconfig (error option not found) > > > make menuconfig (added esssolo1 and corrected stuff for > > ide-scsi) > > > cd /usr/portage/sys-kernel/linux-sources > > > ebuild linux-2.4.4.9.ebuild merge > > > > > > When I booted from the new kernel, eth0 would not start. I > discovered > > that > > > the procedure had added empty /etc/modules/2.4.4-ac5 for 2.4.4-ac5 > but > > no > > > /lib/modules/2.4.4-ac5. Only /etmodules/2.4.4-ac3 and > > > /lib/modules/2.4.4-ac3 contain data. Since the kernel calls itself > > -ac5, > > > modprobe, etc. will not use any of the modules. > > > > Hmm, there seems to be a bug in modultils. > > /lib/modules/[uname-r]/modules.dep is not generated correct. > > > > Remove /etc/modules/[unname -r] and /etc/modules.conf and run > > /etc/rc.d/init.d/modules. This will generate those files again. > > > > I'm working on that bug here at the moment. > > > > That may be a problem, too, but I don't think that will fix my problem. > Something went wrong with the kernel + modules ebuild. The normal output > of the kernel sequence, ie make mrproper, make xxxconfig, make deps make, > make modules and make modules_install is a bzImage (ebuild got that > right) > and a modules directory /lib/module/kernelname (ebuild did not produce > this), so the merge really failed even though it said it was complete. > It > won't do me any good to rebuild the modules.conf etc - the modules > themselves are missing in action. > FYI. I've found part of the problem with your kernel ebuild. I don't know whether the problen is yours or modutils. Here's what I did to get a working kernel cd /usr/portage/sys-kernel/linu ebuild linux-2.4.4.5.ebuild unpack cp -a /tmp/portage/linux-sources-2.4.4.9/work/linux-2.4.4-ac9 /home/collins cd /home/collins/linux-2.4.4-ac9 make mrproper make menuconfig loaded /usr/portage/sys-kernel/linux-sources/files/2.4.4-ac9/config.bootcomp modified to add support for esssolo1 and altered a few SCSI settings to get my CDRW to work mv'd the /usr/modules/2.4.4-ac3 directory to another name make dep && make bzImage && make modules && make modules_install Everything successful, except at the end of make modules install the script attempted to write to /lib/modules/2.4.4-ac3 !!! and failed (even though everything else was done for 2.4.4-ac9) Created an empty 2.4.4-ac3 directory reran make modules_install The script created the mod*** entries in 2.4.4-ac3 instead of in 2.4.4-ac9 where they belong cp /lib/modules/2.4.4-ac3/* /lib/modules/2.4.4-ac9 where they belong (the actual modules were installed in 2.4.4-ac9) rm -r /lib/modules/2.4.4-ac3 (the dummy directory) mv /lib/modules/old-2.4.4-ac3 /lib/modules/2.4.4-ac3 (In case I need to boot the old image) copied the bzImage to /boot/boot mounted my other distribution partitions and did /sbin/lilo reboot - success The boot scripts did build the /etc/modules/... stuff and /etc/modules.conf eth0 came up ok, but the scsi-ide stuff I added did not come up automatically. I had to modprobe to load them. Discovered that the esssolo1 module needs soundcore as a module. modified the .config file moved the /lib/modules/2.4.4-ac3 directory, made a dummy again make dep && make bzImage && make modules && make modules_install This time the moduels_install put the mod*** files in the ac9 directory!!! rm -r /lib/modules/2.4.4-ac3 (the dummy directory) mv /lib/modules/old-2.4.4-ac3 /lib/modules/2.4.4-ac3 copied the bzImage to /boot/boot mounted my other distribution partitions and did /sbin/lilo reboot - success After modprobing, CDRW stuff ok (screcord --scanbus works) esssolo1 loaded correctly, but still not getting sound I hope this helps in your developing a robust kernel build ebuild. Thanks -- Collins Richey Denver area gentoo system