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=2.0 required=5.0 tests=DATE_IN_PAST_12_24, DMARC_REJECT,FREEMAIL_FROM,INVALID_DATE,MAILING_LIST_MULTI autolearn=no autolearn_force=no version=4.0.0 Received: from smtp-send.myrealbox.com ([192.108.102.143]) by cvs.gentoo.org with esmtp (Exim 3.30 #1) id 15qzQD-0002u3-00 for gentoo-dev@cvs.gentoo.org; Tue, 09 Oct 2001 10:07:57 -0600 Received: from aeoo [64.32.225.42] by myrealbox.com with NIMS ModWeb Module; Tue, 09 Oct 2001 16:08:29 +0000 From: Gold is Heavy To: gentoo-dev@cvs.gentoo.org, X-Mailer: NIMS ModWeb Module X-Sender: aeoo MIME-Version: 1.0 Message-ID: <1002643709.4f1a5ffbaeoo@myrealbox.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: [gentoo-dev] kernel 2.4.10-r2: works without a problem -- depmod fixed Sender: gentoo-dev-admin@cvs.gentoo.org Errors-To: gentoo-dev-admin@cvs.gentoo.org X-BeenThere: gentoo-dev@cvs.gentoo.org X-Mailman-Version: 2.0 Precedence: bulk Reply-To: gentoo-dev@cvs.gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux development list List-Unsubscribe: , List-Archive: Date: Tue Oct 9 10:08:01 2001 X-Original-Date: Tue, 09 Oct 2001 16:08:29 +0000 X-Archives-Salt: 94b128dd-741a-4bb1-8d30-487dc66c9c14 X-Archives-Hash: 87f31117e38f944bd997abf29273abc8 Hi Gentoo Hackers, This is a follow up re: depmod problems I've been having. I emerged the newer 2.4.10-r2 ebuild package, and compiled the kernel. After that, depmod problems became worse. I did make menuconfig, and went through every single option, and recompiled the kernel again. I did this many times: NO result. I tried using my older .config file, also NO result. Then, I remembered Donny's suggestion to try "rm /usr/src/linux/.config"! First of all, as soon as I did that, I noticed that my menus looked *significantly* different! Maybe I am crazy, but I really think even the wording on some options changed. I thought that it was a good sign. And indeed, the kernel compiled with a few warnings here and there, and no modules at all were compiled (just as I want). So, I followed the doc, make dep; make clean; make bzImage; make modules; make modules_install; mv /boot/bzImage /boot/bzImage.old; cp /usr/src/linux/i386/boot/bzImage /boot, and... still no go! Then I wondered, wait a second. No modules were compiled, and I thought modules_install most likely doesn't erase anything. So, I checked /lib/modules, and indeed, it was full of junk. So I gently erased everything there ;). Then make modules_install again, to see if it wants to install anything... nothing. Ok, no more depmod problems :) Lesson learned: 1. *Never* use .config file that comes with the kernel sources. Always delete it and start from scratch, to guarantee that only relevant and compatible options are used. 2. Prior to 'make modules_install' it's a good idea to delete any old modules there, preferrably ALL modules. That means if I have any custom made modules, I should NOT keep them in /lib/modules! I should keep them in something like, /lib/site/modules or /local/lib/modules or something like t hat, and there should be a script to automatically symlink everything from the custom modules dir to /lib/modules. So my revised kernel compile procedure would look something like this: 1. Delete /usr/src/linux/.config (or otherwise make absolutely sure that it's safe to use) 2. make menuconfig; make dep; make clean; make modules 3. rm -rf /lib/modules/2.4.10 4. make modules_install 5. Run a script to symlink any custom made modules to the /lib/modules dir. I will probably recompile the kernel later with some modules, just to verify that everything is working properly. When, and if, I do that, I will post a follow up. Related question: I noticed that there are kernel-headers and kernel-source ebuild packages. So, when upgrading to a newer kernel, is it necessary to also install kernel-headers package, or is kernel-source alone sufficient? --Leo