Date: Tue, 20 Mar 2001 02:18:55 -0600 From: Sean Kelly <smkelly@zombie.org> To: Mike Smith <msmith@freebsd.org> Cc: Kris Kennaway <kris@obsecurity.org>, freebsd-stable@freebsd.org Subject: Re: Booting with modules Message-ID: <20010320021855.A433@edgemaster.zombie.org> In-Reply-To: <200103200807.f2K87qg15969@mass.dis.org>; from msmith@freebsd.org on Tue, Mar 20, 2001 at 12:07:52AM -0800 References: <20010320020229.A435@edgemaster.zombie.org> <200103200807.f2K87qg15969@mass.dis.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010320021855.A433>
