From owner-freebsd-stable Tue Mar 20 0:19: 7 2001 Delivered-To: freebsd-stable@freebsd.org Received: from edgemaster.zombie.org (edgemaster.creighton.edu [147.134.107.69]) by hub.freebsd.org (Postfix) with ESMTP id 1844837B734; Tue, 20 Mar 2001 00:18:57 -0800 (PST) (envelope-from smkelly@zombie.org) Received: by edgemaster.zombie.org (Postfix, from userid 1001) id 18CF5991A; Tue, 20 Mar 2001 02:18:55 -0600 (CST) Date: Tue, 20 Mar 2001 02:18:55 -0600 From: Sean Kelly To: Mike Smith Cc: Kris Kennaway , freebsd-stable@freebsd.org Subject: Re: Booting with modules Message-ID: <20010320021855.A433@edgemaster.zombie.org> References: <20010320020229.A435@edgemaster.zombie.org> <200103200807.f2K87qg15969@mass.dis.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200103200807.f2K87qg15969@mass.dis.org>; from msmith@freebsd.org on Tue, Mar 20, 2001 at 12:07:52AM -0800 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Mar 20, 2001 at 12:07:52AM -0800, Mike Smith wrote: > > No matter whether I specify miibus or not in loader.conf, it still fails to > > load if_xl.ko even though it is registered. If, however, I remove if_dc.ko > > and miibus.ko from loader.conf, then if_xl.ko will load properly. It > > seems to me that the two modules (xl and dc) don't get along, or that there > > is some sort of limit to the number of modules it wants to load. > > I don't have a quick answer for your problem (yet), but I'd just like to > clarify that there aren't any limits like this. > > I *suspect* that what's happening is that the dependancy checking code is > incorrectly not registering the if_xl module when it discovers that its > dependancy (miibus) is already loaded. > > You can verify this by reversing the load order, ie. loading if_xl first. > If this results in if_dc disappearing, then we have a smoking gun. Your smoking gun just set itself on fire and burnt to death in a test run: (2) smkelly@edgemaster:~$ cat /boot/loader.conf ... # Network #miibus_load="YES" if_xl_load="YES" # 3Com 3c900B-TPO if_dc_load="YES" # NetGear FA310TX if_ppp_load="YES" # PPP ... Yet, it still comes up with if_dc.ko loaded and no if_xl.ko. On another similar note, a few minutes ago I realized that the snd_emu10k1.ko module wasn't loading because: Preloaded elf module "snd_emu10k1.ko" at 0xc037f544. link_elf: symbol sndbuf_getbps undefined So, after the system was up I figured I'd try to reload it. I figured I needed snd_pcm.ko or something, so I kldload'd it and locked my system solid. On the reboot after that, I went back to the 'ok' prompt in loader, and decided to try 'load /modules/snd.ko'. It registered 5342532 different sound modules (all of them I think), yet doing 'lsmod' in loader showed NONE of them except the snd_emu10k1.ko from my loader.conf. Upon boot, none of them were there. So, what happened to my 'load /modules/snd.ko'? -- Sean Kelly | PGP KeyID: 77042C7B smkelly@zombie.org | http://www.zombie.org For PGP key, send e-mail with subject "send pgp key" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message