From owner-freebsd-stable Sun May 6 15:19:36 2001 Delivered-To: freebsd-stable@freebsd.org Received: from tomts14-srv.bellnexxia.net (tomts14.bellnexxia.net [209.226.175.35]) by hub.freebsd.org (Postfix) with ESMTP id 3E35037B423 for ; Sun, 6 May 2001 15:19:32 -0700 (PDT) (envelope-from matt@gsicomp.on.ca) Received: from xena.gsicomp.on.ca ([64.228.153.241]) by tomts14-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010506221931.IFQH28559.tomts14-srv.bellnexxia.net@xena.gsicomp.on.ca>; Sun, 6 May 2001 18:19:31 -0400 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.1/8.11.1) with SMTP id f46MGtN34403; Sun, 6 May 2001 18:16:56 -0400 (EDT) (envelope-from matt@gsicomp.on.ca) Message-ID: <001701c0d679$de3b77c0$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "David W. Chapman Jr." , References: <002101c0d667$b0a7b3d0$1200a8c0@gsicomp.on.ca> <003701c0d66e$32ee5280$931576d8@inethouston.net> Subject: Re: Broken module loading and kernel dependencies Date: Sun, 6 May 2001 18:14:06 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I did not have to statically compile pppoe support in the kernel. Here are > the modules I loaded > > ng_pppoe > ng_ppp > ng_socket > ng_ether > netgraph > > it all seemed to work good. Did you kldload all of these from the command prompt? The problem seems to crop up when one (or more) modules which are dependancies for others are loaded statically in the kernel, and the others are loaded dynamically. The dynamic loader doesn't see that the module is already present, and tries to load it again. (For PPPoE, the problem manifests when you only have 'options netgraph' in your kernel. This forces ppp to try and load the other ng_* modules dynamically and things fall apart.) > If I did kldload if_rl it would pick up the kingston but not the realtek, if > I loaded if_dc it would pick up the kingston and then I would try to load > if_rl and it would tell me its already loaded and wouldn't pick up the > realtek, but I could not get both nic's to work until I compiled them into > the kernel. I imagine this is because of 'device miibus', a dependency of both. -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message